Assignment Week2: CMSC 115 The Test Plan for each project includes the Pseudocode, Flowchart, Goals and Objectives, Functional Requirements, and Test Matrix including Actual Output column. Below the

Your name

Note 5 tasks in bold for each project:

Pseudocode

Flowchart

Goals & Objectives

Functional Requirements

Test Matrix

CMSC 115 Assignment 1 – Chapter 1

Project 1

Pseudocode:

Declare double total, totalCost, gratuity, gratuityRate

Output “Enter total and gratuity rate such as 5 for 5%”

Get user input of total and gratuity rate

Assign gratuity = total * (gratuityRate / 100)

Assign totalCost = total + gratuity

Output the gratuity amount and the totalCost

NOTE: All 5 tasks are normally done BEFORE we begin to write any code, as important planning and documentation. They help us to think about the steps we will need. There is no exact pseudocode format, but we will hold closely with this example as a guide – just steps in English.

After our first Test Plan in Week 2, we will begin to add screenshots to verify our Test Matrix. This is the one step we would normally do AFTER writing our program. It’s not required for our first Test Plan.

Flowchart:

Assignment Week2: CMSC 115 The Test Plan for each project includes the Pseudocode, Flowchart, Goals and Objectives, Functional Requirements, and Test Matrix including Actual Output column.  Below the 1

or START

Program goals and objectives: The program will calculate the gratuity and total cost of a meal/service by having the use input both the gratuity rate as well as the total of a meal/service.

Program functional requirements:

  1. The user will be prompted to enter in the total of their meal/service and the gratuity rate as a percentage that they wish to tip at

  2. Program will calculate the gratuity by multiplying the total by the gratuity rate divided by 100

  3. Program will calculate the total cost by adding the total and the gratuity together

  4. Program will output the total cost as well as the gratuity

Test Matrix

Test case

Input

Expected Result

Actual Result

Outcome

1

10 for total

15% for gratuity rate

$1.5 for gratuity

$11.5 for total

$1.5 for gratuity

$11.5 for total

Pass

2

20 for total

20% for gratuity rate

$4 for gratuity

$24 for total

$4 for gratuity

$24 for total

Pass

3

100 for total

10% for gratuity rate

$10 for gratuity

$110 for total

$10 for gratuity

$110 for total

Pass

Here we normally show each of the 3 screenshots with the “Actual Result” indicated on each. This verifies the Pass or Fail. Our Test Plan 1 will not require this.

You are not required to include Java code, but you may if you wish.