Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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! image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

What are Measures in OLAP Cubes?

Answered: 1 week ago

Question

How do OLAP Databases provide for Drilling Down into data?

Answered: 1 week ago

Question

How are OLAP Cubes different from Production Relational Databases?

Answered: 1 week ago