Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Could somebody please help me with this C++ program problem A manufacturer needs a program to determine the total cost of producing some number of

Could somebody please help me with this C++ program problem

image text in transcribedimage text in transcribed

A manufacturer needs a program to determine the total cost of producing some number of different types of cylindrical machine parts. The cost for one machine part is the cost of one square centimeter of the materials times the number of square centimeters in the total surface area of the container. The machine parts are open on one end, so the total surface area is the surface area of the base plus the surface area of the cylinder. Each part type has the following data to describe it: the name of the part the cost of the materials required the radius of the base the height of the cylinder Your program should define four vectors to hold the data for several parts (name, cost, radius, and height). These vectors will be parallel structures which together hold all of the information for multiple parts For example, after your v are defined and populated, their contents might look like this, where the ectors same position in each vector holds the data for one part. So Short123 costs 1.25 per sq. cm and has a base with radius 2.0 cm and a height of 2.0 cm vector

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Intelligent Databases Technologies And Applications

Authors: Zongmin Ma

1st Edition

1599041219, 978-1599041216

Students also viewed these Databases questions

Question

Are you getting real respect? Or is it fear and contempt?

Answered: 1 week ago

Question

3. You can gain power by making others feel important.

Answered: 1 week ago