Question: YOU NEED TO DO THIS IN JAVA, PLEASE TYPE IT OUT SO I CAN COPY THE CODE! PLEASE EDIT THE ALREADY EXISTING CODE I HAVE

 YOU NEED TO DO THIS IN JAVA, PLEASE TYPE IT OUT

YOU NEED TO DO THIS IN JAVA, PLEASE TYPE IT OUT SO I CAN COPY THE CODE! PLEASE EDIT THE ALREADY EXISTING CODE I HAVE HERE!

import java.util.Scanner; // Scanner is in the java.util package

public class Main { public static void main(String[] args) { // Create a Scanner object Scanner input = new Scanner(System.in); // Prompt the user to enter meal charge System.out.print("Enter Meal Charge: "); double mealcharge = input.nextDouble();

// Compute tip double tax = mealcharge * 0.0675;

mealcharge = mealcharge + tax; // adding tax to bill

// Compute tip double tip = mealcharge * 0.15;

// Display result System.out.println("The Tax for the meal " + tax + " tip is " + tip);

input.close(); } }

1. Restaurant Bill Write a program that computes the tax and tip on a restaurant bill for a patron with a $44.50 meal charge. The tax should be 6.75 percent of the meal cost. The tip should be 15 percent of the total after adding the tax. Display the meal cost, tax amount, tip amount, and total bill on the screen

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!