Introduction To Programming
10-152-310

Learning Plan 3 : Math and Operators

Student

  • Name:
  • Section:
  • Email:

Steps

  • Open this file in your browser and Microsoft Visual Studio
  • Add your name, section, and email
  • Read the following problem statement and complete all 5 steps in the development process.

Problem Statement

Write a program that calculates several possible tips to give to a waiter at a restaurant. Ask the user to enter the total cost of the meal and then calculate a tip at 10%, 12.5%, 15%, 17.5%, and 20%. Write the original cost of the meal to the page. Write all the possible tips and the new final cost to the page.

The Program Planning Lists

In the following pre tag, write the three planning lists based on the verbs and nouns you see in the problem statement.

        The List of Input Variables:
        
        The List of Output Variables:
        
        The Process Checklist:
        

JavaScript Output:

Sample Output:

        Cost of meal: 50
        Tip%	Tip	Final Cost
        10	5	$55
        12.5	6.25	$56.25
        15	7.5	$57.5
        17.5	8.75	$58.75
        20	10	60

3.3 Project - Part 4 Output: