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

Parallel to y=x-3 and passing through (4,5)
France lost its territories in India and North America as a consequence of what? Trade increasing in Indochina. Expansion of the Dutch into North America. Loss
What could you use in an artwork to show that a bright light is shining on a reflective object?
Find the annual simple interest rate. I=$17, P=$500, t=2 years
A location; the place where two lines cross or intersect
Cancer is a disorder in which some cells lose the ability to control which of the following? A. their size B. Their weight C. their mass D. their growth rate
Can someone that know spanish help me please!!?? 1. Choose the word that can NOT complete the sentence. Tengo _____ . quince años feliz frío hambre 2. Decide wh
The pacific islands formed by coral reefs are called
what is 0.195 rounded to the nearest hundredth
What does it mean when the result of solving a linear equation is x = 0?