Answered step by step
Verified Expert Solution
Question
1 Approved Answer
java Assignment worth 30 points You will be ereating a small tip calculator program. Prompe the user to enter the subtotal, and tip amount (as
java
Assignment worth 30 points You will be ereating a small tip calculator program. Prompe the user to enter the subtotal, and tip amount (as a percentage). Then, calculate and display the tip amouat, and grand total. Sample outpot is listed following the directions. ComputeTip.java - Variables; double variable named subtotal double variable named tipPercentage double variable named tipAlmount double variable named grandTotal Scanner object for user inpot - tipPercentage needs to be divided by 100 in order to be used in the calculations i.e. user inputs 20 for the \%. 80 you need to divide 20 by 100 to get 0.20 Complete the program and upload the java solution file to Moodle: - ComputeTip.java Sample Run: Thank you for dining with us. Please enter your subtotal: 19.95 Please enter the t Ip percentage: 20 *w.Final Bi11*... Subtotal: \$19.95 Tip: $3.99 Grand Total: $23.94 Assigasaent Grading Shect Step 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