Hey guys,
I finished the first part of my assignment, but I'm stuck on this last part of it. I would very grateful for some help. Thanks in advance. P.S the part I'm going to show is what I'm struggling with.
For this assignment you will be writing a program that calculates information about a sequence of tracks on an album.
Write C++ code that does the following:
•Displays a welcome message with your name in it.
•Prompts for and reads the lengths in minutes and seconds of 12 tracks of an album.
•Stores the length of each track in seconds in an array.
(Note: total seconds can be computed by multiplying the minutes by 60 and adding the seconds.)
•Computes and displays the following:–The shortest track on the album and its length.–The longest track on the album and its length.–The total running time of the entire album.–The average length of a track on the album.
•In the output all times should be in the standard minutes and seconds format with a colon in between. This should be done by a void function with the following prototype:
void displayTime(int totalSeconds);
The number of minutes can be calculated using the / and % operators. Note that if the number of seconds is less than 10, this function must display an extra zero after the colon. For example, a track with a total length of 185 seconds should have its length displayed as 3:05.
Please note that this is not a homework site. We won't do your homework for you. The purpose of homework is that you learn by doing. However we are always willing to help solve problems you encountered, correct mistakes you made in your code and answer your questions.
We didn't see your attempts to solve this problem yourself and so we cannot correct mistakes you didn't made and answer questions you didn't ask. To get help you should do something yourself and get real problems with something. If your problem is "I don't understand a thing", then you should go back to basics and study again.