Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1: A gratuity (also called a tip) is a sum of money customarily given by a client or customer to a service worker in addition

1: A gratuity (also called a tip) is a sum of money customarily given by a client or customer to a service worker in addition to the basic price. It is common for certain countries especially in the West. You are asked to make a MATLAB' s program to calculate the tip based on amount of bills, using the following rules;
• bill less than $10, tip is $ 1.80

• bill is between $10 and $60, tip is 18%

• bill is above $60, tip is 20%

a) Draw a flowchart for the problem.
b) Write the MATLAB 's code for the problem that will also ask the user for the input and fmally will display the tip's amount.

2: Write a MATLAB' s code for converting centimeter unit (input x) to different units including inch, feet, meter, and wilindcx, You must use switch-case commands.

3: Write a MATLAB 's program that will use a while loop to find the smallest number divisible by both 3 and 5, with the square of the number greater than 33254

Step by Step Solution

3.51 Rating (158 Votes )

There are 3 Steps involved in it

Step: 1

1 a Flowchart b Matlab Code Get the value of bill from user bill inputEnter ... 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

Introduction to Financial Accounting

Authors: Charles Horngren, Gary Sundem, John Elliott, Donna Philbrick

11th edition

978-0133251111, 013325111X, 0133251039, 978-0133251036

More Books

Students also viewed these Programming questions