Question: 5. Write program in a matlab script file that asks the user to input the number of kWh used in a given month and prints

 5. Write program in a matlab script file that asks the

5. Write program in a matlab script file that asks the user to input the number of kWh used in a given month and prints out a message that states the charge for the usage in dollars. Assume the charge per KWh is 6.6 cents. Explore the fprintf command to be able to print the message in a format that includes the usage as well as the matlab-calculated charge in standard monetary format (e.g. 'Your charge for 200 KWh is $13.20') 6. Write a program in a matlab script file that computes the average of the second column of any 2-D matrix (of any size greater than 2 x 2), and display the result in a message to the user. Use the built-in sum and size functions to help do this

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!