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

As part of a servey, 200 girls were asked to name their favorite sport. the results showed that 18 of the girls named bowling as their favorite sport. what perc
how do I work 12 x ( 6 +3 ²)
Given two areas with equal sunlight and available water. Area I has a high amount of atmospheric carbon dioxide while Area II has a low amount of atmospheric c
How old do you have to be to work at dunhams?
What is the value of x in the figure above? ^^
All BUT one of these occur during metaphase I of meiosis. Which of these would NOT occur during the metaphase I phase of meiosis? A) independent assortment of
Which locations on the map are low-pressure areas?
White skin a recessive trait, So if a white person had children with a black person, would ALL of their children be black? No matter if the Black person was the
HHEELLPP MMEE!!!!!!!!!!!
The division of a eukaryotic cell's cytoplasm is called