Question: C++ code please .. direct answer without comments please . A file named Description.txt contains unknown number of metal sheets dimensions and description (maximum no.

C++ code please ..

direct answer without comments please

C++ code please .. direct answer without comments please . A file

. A file named Description.txt contains unknown number of metal sheets dimensions and description (maximum no. of records is 30). Each line in the file consists of Metal sheet name (string), width (float), length (float) and height (float). Write a program that reads the dimensions and add the volume only to an array. The volume is equal to width x length x height. Your program should calculate and display the following (see screen output): The number of Metal sheets in the file. The average volume for all metal sheets. The smallest volume. Number of metal sheets with above average volumes. Description.txt (Input file) ALUM1 1.25 2.25 .50 ALUM2 2.54 3.66 .93 ALUM3 1.4 .3 .2 ALUM4 3.1 5.1 .74 Screen Output There are 4 metal sheets. The average volume = 5.45 The smallest volume 0.08 There are 2 sheets with above-average volume

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!