Ask a New Question

Question

Write a program   that reads the subtotal and the gratuity rate in this order, then computes the gratuity and total.

For example, if the user enters "10" for subtotal and "15" (%) for gratuity rate, the program   displays "1.5" as gratuity and "11.5" as total.

Display only the numerical results in each line and nothing else.
12 years ago

Answers

nagraju
84.523
10 years ago

Related Questions

write a program that reads ten numbers, computes their average and find out how many numbers are abo... Write a C++ program that reads the Capacity (in gallons)of an automobile fuel tank, and Miles per... Write a C++ program that reads the population of town A and its growth rate as well as the popula... Write a program that reads from the student user: his name as string (%s), his id as integer and hi... Write a program that reads a five digit integer number from the keyboard, and then constructs the l... write a c++ program which reads student name,ID ,mid,final for single course and for ten students an... Write a program that reads in two people‘s age and then names, and then output who is older. 1. Write a program that reads the name, age and salary of 10 persons and perform the following opera... Write a program that reads n integers from the keyboard and calculates their sum using do-while loop Write a program that reads an unspecified number of integers, determines how many positive and negat...
Ask a New Question
Archives Contact Us Privacy Policy Terms of Use