Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In Matlab please 1. The Beaufort Scale is used to characterize the strength of winds. The scale (given in the table below) uses integer values
In Matlab please
1. The Beaufort Scale is used to characterize the strength of winds. The scale (given in the table below) uses integer values and goes from a force of 0, which is no wind, up to 12, which is a hurricane. Beaufort number Classification 0 no wind 1 light air 2 light breeze gentle breeze moderate breeze 5 fresh breeze 6 strong breeze 7 moderate gale 8 fresh gale 9 strong gale 10 whole gale 11 storm 12 hurricane (a) Use a switch statement to print a message regarding the type of wind that force represents. (b) Include another switch statement to classify the type of wind using five categories (no wind, breeze, gale, storm, and hurricane) 2. Write a script that calculates the cost of renting a car according to the following price schedule: Sedan SUV Duration of rental Daily cost (per day) additional mile Free miles Cost of an Cost of an Free miles Daily cost (per day) additional mile 1-6 days $79 80 $0.69 $81 80 $0.71 7-29 days $69 100 $0.59 $74 100 $0.61 30 or more days 859 120 $0.19 $61 120 $0.51 Specify variables for the type of car, the number of days, and the number of miles driven, then use your code to compute the cost for the following rentals: (a) Sedan, 10 days, 768 miles (6) SUV, 32 days, 1056 miles (c) Sedan, 3 days, 511 milesStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started