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

The behavior of the sheep develops the allegory that one must be independent to achieve one's Personal Legend. Which quotation from The Alchemist best supports
Helppppppppp plssssss
Él nos cada céntimo. (devolver)
Chief Complaint (CC): A 60-year-old obese man presents to the emergency department complaining of severe pain in his lower jaw and shortness of breath that deve
Explain How sunlight is the primary source of energy for you life
Which graph shows the greatest integer function?
[tex]-2(bx - 5) = 16[/tex]
Which one of these is a compound
How does Lincoln express the idea that the Civil War is a fight over whether a country that promises equality for all can survive? Select the correct text in th
Help with this please! I really confuse and don’t understand.