Class bin Write the files required to realize a class to describe a cylindrical dust bin'. The class will identify the f

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Class bin Write the files required to realize a class to describe a cylindrical dust bin'. The class will identify the f

Post by answerhappygod »

Class Bin Write The Files Required To Realize A Class To Describe A Cylindrical Dust Bin The Class Will Identify The F 1
Class Bin Write The Files Required To Realize A Class To Describe A Cylindrical Dust Bin The Class Will Identify The F 1 (47.45 KiB) Viewed 48 times
Class bin Write the files required to realize a class to describe a cylindrical dust bin'. The class will identify the following attributes: A string for the material that the bin is made from SUBMISSION GUIDELINES: Any files you have to submit must be added to a compressed archive (zip, rar, 7). The archive must be named using the following convention and your details name-sumame-regno-coursecode workno For example, if giorgos andreou with regno 20211234 is submitting work number 3 for course CSC135A then the file must be named: giorgos-andreou-20211234-csc1352-23 It is your responsibility to make sure you submit the correct files and NOT any shortcuts to files or folders. An int to hold the height of the bin expressed in mm. A double to hold the 'diameter of the bin expressed in cm Create the H file that will declare the data attributes and get functions, the set functions, the all-default argument constructor and the print function. Create the CPP file to implement the bodies of the functions. For the data attributes you must observe the following: The default for material is "plastic". Acceptable values are plastic", "aluminium", or The default for height is 280; acceptable values are from 150 to 1200 The default for diameter is 28.8; acceptable values are from 20.2 to 60.6 The print function output is shown in the following (where if you see an attribute in <and > it means that you are supposed to output the value of the attribute) <material bin (H:Sheight=mm; D: <diameter>cm) For example, the bin with using the default values would be: plastic bin (H.280mm, D:28.8cm) "ceramic In addition to any other function also define a function called Volume that will calculate and return the volume of the bin (the volume of a cylinder is given by the formula v = ne' where mis the well-known trigonometrical constantlyou can use 3.14159), r is the radius of the base of the bin and his the height of the bin. The prototype of the function will be double volume:
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply