29. Write a program in a script file that calculates the cost of renting a car according to the following price schedule: The program asks the user to enter the type of car (sedan or SUV), the number of days, and the number of miles driven. The program then displays the cost (rounded to cents) for the rent. Run the program three times for the following cases: (a) Sedan, 10 days, 769 miles. (b) SUV, 32 days, 4,056 miles. (c) Sedan, 3 days, 511 miles.

Respuesta :

Answer:The price for renting a car at a car rental company is according to the following schedule: Write a MATLAB program in a script file that calculates the cost of renting a car based on the shown price schedule. The program must ask the user to enter the type of car (Sedan or SUV), the number of days, and the number of miles driven. The program then displays the cost (rounded to cents) for the rent in a sentence that reads: "The cost of the rent is XXX $." where XXX is the cost value in $. Run the program three times for the following cases: Sedan, 10 days, 769 miles. SUV, 32 days, 4, 056 miles. Sedan, 3 days, 511 miles. Use fprintf () to display the text and data. The data should be displayed in f format with two decimal digits.

Explanation:

4.30 mWhat
ajudar me por fovor porfovor​
On what date did sergeant weldon mccoy barr record in his diary the signing of the armistice that ended wwi?
An effective argumentOuses anger to prove one idea is better than anotherOuses emotions to prove one idea is better than anotherOuses evidence to prove one idea
Click this link to view O'NET's Work Context section for Cargo and Freight Agents. Note that common contexts arelisted toward the top, and less common contexts
Using fertilizer on crops actually reduces the amount of oxygen in the water.Using fertilizer on crops actually reduces the amount of oxygen in the water.
What were chocolate chip cookies originally made to be served with?O A.teaO B.coffeeO c. puddingO D.ice cream
Rewrite the expression with a rational exponent as a radical expression. five to the three fourths power all raised to the two thirds power the cube root of
What is the relationship between voltage and current?O Direct as voltage goes up current goes downO Indirect as voltage goes up current goes upIndirect as volta