Brookdale Community College Tip Calculator Computer Science Task
Description
Write a program that reads the subtotal and the gratuity rate, then computes the gratuity and total. For example, if the user enters 10 for subtotal and 15 for a 15% gratuity rate, the program calculates $1.50 as the gratuity and $11.50 as the total.
You must format the gratuity and total amounts using The following Numberformat example technique picture linked, otherwise the assignment will not count
What Sample Runs Should Look Like:
Enter the subtotal and a gratuity rate: 10 15
The gratuity is $1.50 and total is $11.50
Enter the subtotal and a gratuity rate: 100 10
The gratuity is $10.00 and total is $110.00
Enter the subtotal and a gratuity rate: 150 15
The gratuity is $22.50 and total is $172.50
Have a similar assignment? "Place an order for your assignment and have exceptional work written by our team of experts, guaranteeing you A results."