Question: Please I want the program to be written in matlab. Help me out please.. Write a program that takes a number as input from the

Please I want the program to be written in matlab.

Help me out please..Please I want the program to be written in matlab. Help me

Write a program that takes a number as input from the user. Then it calculate and returns the total electricity bill based on the followings: For first 50 units (i.e., 1-50) Rs. $0.50/unit For next 100 units (i.e., 51-150) Rs. $0.75/unit For next 100 units (i.e., 151-250) Rs. $1.20/unit For unit above 250 Rs. $1.50/unit An additional surcharge of 20% is added to the bill If the input is not a positive number, your program must output a sensible message and finish. So, for instance, here is the calculation you need to do for 750 unit:50*$0.50+100*$1.20+500*$1.50 + surcharge

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!