Answered step by step
Verified Expert Solution
Question
1 Approved Answer
c++ please A file named Description.txt contains unknown number of metal sheets dimensions and description (maximum no. of records is 30). Each line in the
c++ please
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. Write a function named Bus Statistics(), that takes as parameter a two-dimensional array named bus of size 4x5. By referring to the given Figure, the rows in the array bus represent the bus routes and the columns represent the days that the buses run. The numbers in the slots of the array show the number of passengers that were on a given route on a given day. The function will perform the following: Mon Tue Wed 1. For each route, print the total number of 2 3 4 passengers. 8 12 7 2. For each route, find and print the largest number of passengers. 1 5 7 3 1 3. For all routes and all days, find and print 2 the largest number of passengers. 20 15 18 31 14 10 1 3 Routes 3 6 9 0 8 11 Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started