sophkeis9025 sophkeis9025
  • 04-07-2017
  • Computers and Technology
contestada

Write a program that computes and displays a 15 percent tip when the

Respuesta :

kaevras
kaevras kaevras
  • 04-07-2017
Your question wasn't very clear, but I think I understand what you want. Additionally, you should really state what language you're working with. Here it is in C#, and shouldn't be too much of a hassle to translate in to other languages.


Console.Write("Enter payment: ");

float payment;

if (float.TryParse(Console.ReadLine(), out payment))
    Console.WriteLine((Math.Floor(payment * 100) / 100) * 0.15, + " at 15% tip.");
else
    Console.WriteLine("Invalid input.");
Answer Link

Otras preguntas

a person who studies word origins and meanings would most likely be a
A transformer has a primary coil with 600 turns and a secondary coil with 300 turns. If the output voltage is 320 volts, what is the input voltage?A. 8 volts
a person who studies word origins and meanings would most likely be a
Given the inequalities y > 5x-8 and y >3x+4, find the point that satisfies both inequalities
One way to show that a statement is NOT a good definition is to find a _____ converse.conditional.counterexample.biconditional.
. What are three factors that could contribute to a source not being credible?
I = {1, 2} List all possible subsets of the given set.
a person who studies word origins and meanings would most likely be a
1. Why are there active volcanoes along the Pacific coast in Washington and Oregon but not along the East coast of the United States?
Round 13 513 to the nearest thousand