Write a C++ program that generates 7 random numbers indicating the number of cars crossing a bridge each day ( - crosses wedding programs
Write a C + + program that generates random numbers 7 will include the number of cars over a bridge every day (1 random number assigned for each day [Monday through Friday]), calculated the average daily number of vehicles crossing the bridge, the minimum and maximum number of vehicles crossing the bridge in one day and thus the number of cars in descending order. The program should display a menu with the following options.
1.Generate random numbers 7 and stores it in a matrix
2.Calculate average number of cars on the bridge
3.Calculate minimum and maximum number of cars in one day
4.Sort the number of cars on the bridge, in descending order
5.Exit
Example: Assume that the option) are created in the following sections.
33 10 97 89 20 1 67
Show option d) must
97 89 67 33 20 10 1
Sun Mon Tue Wed Thu Fri Sat Mar
The entire program must operate in a loop, so the user can generate numbers that you calculate the average, minimum and maximum number of cars outside the office during the day, and sorting the user chooses exit points untilthe
Saturday, December 19, 2009
Crosses Wedding Programs Write A C++ Program That Generates 7 Random Numbers Indicating The Number Of Cars Crossing A Bridge Each Day (
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment