Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Chapter 2 Java Fundamentals 13. Restaurant Bil Write a program that computes the tax and tip on a restaurant bill. The program should asl the

image text in transcribed
Chapter 2 Java Fundamentals 13. Restaurant Bil Write a program that computes the tax and tip on a restaurant bill. The program should asl the user to enter the charge for the meal. The tax should be 6.75 percent of the meal charge The tip should be 20 percent of the total after adding the tax. Display the meal charge, tax amount, tip amount, and total bill on the screen. 14. Male and Female Percentages Write a program that asks the user for the number of males and the number of females regis- tered in a class. The program should display the percentage of males and females in the class. Hint: Suppose there are 8 males and 12 females in a class. There are 20 students in the class. The percentage of males can be calculated as 8+20 04, or 40%. The percentage of females can be calculated as 12 + 20-a 0.6, or 60%

Step by Step Solution

There are 3 Steps involved in it

Step: 1

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

Database Concepts

Authors: David Kroenke

4th Edition

0136086535, 9780136086536

More Books

Students also viewed these Databases questions