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

I have a test tomorrow on cells any tips on how i can get a good score
Which expressions are equivalent to 5 +(-3)(6x-5)? Choose all answers that apply: A : 18x– 20 B : 3x - 3 C: None of the above Please help
Albinism is due to deficiency of A. tyrosinase B. amylase C. acetyl cholinesterase D. carbonic anhydrase
3 - ¿qué hacían? Complete the sentences, describing the activities in the picture. Use the imperfect tense.
that what are the elements and principles of art​
Can someone help me please :( read the paragraph and answer the question any help is needed
A museum sets up a display of fluorescent minerals. Which best describes how electromagnetic waves can be used to enhance the display? A. Infrared light shining
Check the devices that are external peripheral devices:
5 (2a +7b) Plss help I will give brainliest!!
What two variables are used most often in 2-variable equations?