Write an OCTAVE code that calculates the tip based on amount of bills, using the following rules and the variable ‘bill’:
• bill is less than 15 ₺, Tip is 1,50 ₺
• bill is between 15 ₺ and 70 ₺, Tip is %15
• bill is above 70 ₺, Tip is % 19
a)Draw the flowchart of the solution
b)Write the Octave code
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here