Answered step by step
Verified Expert Solution
Question
1 Approved Answer
You have been hired by a file hosting streaming service to write a program that will calculate the cost of a user to store and
You have been hired by a file hosting streaming service to write a program that will calculate the cost of a user to store and stream audio files. The streaming platform hosts two types of audio files: MPEGLayer MP and Waveform Audio WAV These files can be streamed in three different sound qualities, where WAV files can also be streamed in Mono or Stereo. Your source code must use menudriven logic to allow for the user to enter the following audio file information: the file type, the bitrate of sound quality, and the sound type for WAV files After entering the audio file information, the user must enter the duration of the file in minutes and seconds. On this streaming service, files have a maximum duration of total minutes per file. Once the file information and the duration of the stream have been entered, the file size must be calculated in Megabytes MB based on the file information and duration. For metrics purposes, the cost per minute of the stream as well as the cost per MB of the stream must be calculated. Calculate the total cost of the stream including tax and display a bill for the stream of the file. See theSample Output. Thestreaming service tax rate is Usenamed constants declared in your program using the 'const double naming conventionto hold the cost per minute bitrate of each of audio quality types, the base subtotal of the stream based on duration in total minutes and seconds and the streaming service tax rate. Use the constants in your calculations and wherever else they are appropriate in your program.Use the following table to calculate bitrates for streams based on File Types, Sound Type where applicable and Sound Quality. Each bitrate must be stored in anamed constantin your source file based on the instructions above:NOTE MP Files on this platform do not have 'Sound Type' attributes, only WAV files.Use the following table to calculate the subtotal based on the duration of the stream in total minutes and seconds.NOTE: Each base subtotal must be stored in a named constant per the instructions above.Steps:You have been hired by a file hosting streaming service to write a program that will calculate the cost of a user to store and stream audio files. The streaming platform hosts two types of audio files: MPEGLayer MP and Waveform Audio WAV These files can be streamed in three different sound qualities, where WAV files can also be streamed in Mono or Stereo. Your source code must use menudriven logic to allow for the user to enter the following audio file information: the file type, the bitrate of sound quality, and the sound type for WAV files After entering the audio file information, the user must enter the duration of the file in minutes and seconds. On this streaming service, files have a maximum duration of total minutes per file. Once the file information and the duration of the stream have been entered, the file size must be calculated in Megabytes MB based on the file information and duration. For metrics purposes, the cost per minute of the stream as well as the cost per MB of the stream must be calculated. Calculate the total cost of the stream including tax and display a bill for the stream of the file. See theSample Output. Thestreaming service tax rate is Usenamed constants declared in your program using the 'const double naming conventionto hold the cost per minute bitrate of each of audio quality types, the base subtotal of the stream based on duration in total minutes and seconds and the streaming service tax rate. Use the constants in your calculations and wherever else they are appropriate in your program.Use the following table to calculate bitrates for streams based on File Types, Sound Type where applicable and Sound Quality. Each bitrate must be stored in anamed constantin your source file based on the instructions above:NOTE MP Files on this platform do not have 'Sound Type' attributes, only WAV files.Use the following table to calculate the subtotal based on the duration of the stream in total minutes and seconds.NOTE: Each base subtotal must be stored in a named constant per the instructions above.Steps:You have been hired by a file hosting streaming service to write a program that will calculate the cost of a user to store and stream audio files. The streaming platform hosts two types of audio files: MPEGLayer MP and Waveform Audio WAV These files can be streamed in three different sound qualities, where WAV files can also be streamed in Mono or Stereo. Your source code must use menudriven logic to allow for the user to enter the following audio file information: the file type, the bitrate of sound quality, and the sound type for WAV files After entering the audio file information, the user must enter the duration of the file in minutes and seconds. On this streaming service, files have a maximum duration of total minutes per file. Once the file information and the duration of the stream have been entered, the file size must be calculated in Megabytes MB based on the file information and duration. For metrics purposes, the cost per minute of the stream as well as the cost per MB of the stream must be calculated. Calculate the total cost of the stream including tax and display a bill for the stream of the file. See theSample Output. Thestreaming service tax rate is Usenamed constants declared in your program using the 'const double naming conventionto hold the cost per minute bitrate of each of audio quality types, the base subtotal of the stream based on duration in total minutes and seconds and the streaming service tax rate. Use the constants in your calculations and wherever else they are appropriate in your program.Use the following table to calculate bitrates for streams based on File Types, Sound Type where applicable and Sound Quality. Each bitrate must be stored in anamed constantin your source file based on the instructions above:NOTE MP Files on this platform do not have 'Sound Type' attributes, only WAV files.Use the following table to calculate the subtotal based on the duration of the stream in total minutes and seconds.NOTE: Each base subtotal must be stored in a named constant per the instructions above.
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