Question: Please do in Java and put comments because i am trying to understand how its done! Use your first name instead of Fn NSU offers

Please do in Java and put comments because i am trying to understand how its done! Please do in Java and put comments because i am trying to

Use your first name instead of Fn NSU offers a streaming service of the NSU activities. For a month charges for streaming are calculated as follows: - First 30 hours are charged at 1$ per hour. - Next 30 hours are charged at 0.75$ per hour. - Next 30 hours are charged at 0.50$ per hour. - Next 10 hours are charged at 0.25$ per hour. - If the streaming is more than 100 hours they are charged a flat rate of 75$ per month. - Write a program called NSUStreamChargeFn to calculate the monthly charge for streaming where the input is number of hours streamed. - Just write the function which returns the price. Some examples are given below: Case 1: Say for example if the number of hours streamed for a month is 25 hours total charge for the month =$25.00 Case 2: If number of hours streamed for a month is 70hrs. First 30 hours at $1.00=30.00$ Next 30 hrs at 0.75$=22.50$ Next 10 hours at 0.50$=5.00$ So if 70 hours total charge for the month =57.50$ Case 3: Total streaming hours for a month is 110hrs. Charge for the month =$75.00

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!