Draw a flowchart and write pseudocode for each of the following scenarios for the ABC College: a. The current annual matriculation fee is $12,000.00 and it is expected to increase by 5% each year. Show the matriculation fee for the next 10 years. b. Revise (a) so that the user can enter the rate of increase, instead of having it set at 5%. c. Revise (a) so that the user enters the rate of increase for the first year and it then increases by 0.3% each subsequent year.
Task 1
Draw a flowchart and write pseudocode for each of the following scenarios for the ABC
College:
a. The current annual matriculation fee is $12,000.00 and it is expected to increase
by 5% each year. Show the matriculation fee for the next 10 years.
b. Revise (a) so that the user can enter the rate of increase, instead of having it set
at 5%.
c. Revise (a) so that the user enters the rate of increase for the first year and it then
increases by 0.3% each subsequent year.
Task 2
A. Draw a flowchart and write pseudocode that describes the process of guessing a
number between 1 and 100 inclusive. After each guess, the player is told that the
guess is lower or higher than the number. The process continues until the player
guesses the correct number.
B. Modify your flowchart and pseudocode of A so that the player is only allowed five
(5) guesses before revealing the correct number.
Task 3
Page 1 of 5
Foundation Programming
Assessment 1
Flowcharting & Pseudocoding Project
Design a flowchart and write a pseudocode to compute pay for employees. The program
asks the user to enter the employee’s names until a sentinel value is entered. The
program also asks for the employee’s hourly rate and hours worked to compute and
display the corresponding gross pay.
Use the table below to compute net pay and the withholding tax amount.
Weekly Gross Pay ($) Withholding Rate (%)
0.00 – 400.00 10
400.01 – 600.00 12
600.01 – 800.00 14
800.01 and more 17
After the last employee has been entered, display the sum of all the hours worked, the
total gross payroll, the total withholding for all employees, and the net payroll.
Task 4
Given the flowchart below, what will be the final value of variable A if the following
values for variable X are entered by the user:
a. 7
b. 10
Show the values of all variables as you perform hand tracing.
Assuming the user entered 4 for variable X, determine what would happen if after
executing the process C = C + 1, the next step is directed to the process R = X % C instead
of testing the condition IF C <= X?
Support your answer.
Write an equivalent pseudocode of the flowchart.
Page 2 of 5
Foundation Programming
Assessment 1
Flowcharting & Pseudocoding Project
Page 3 of 5
Foundation Programming
Assessment 1
Flowcharting & Pseudocoding Project
Task 5
Given the pseudocode below. What will be shown as the final values of variable x,
y and z if the following were entered respectively?
a. x = 3, y = 4, z = 5
b. x = 9, y = 7, z = 4
Show how you arrived at your final answers by showing the values of the
variables as a result of hand tracing.
BEGIN
DECLARE x = 0, y = 0, z =0
INPUT x, y, z
IF x > y
IF x > z
x = x + z
x = z – x
z = z – x
ELSE
IF y > z
y = y + z
y = z – y
z = z – x
x = y * z
y = x * z
z = x * y
DISPLAY x, y, z
END
Task 6
Page 4 of 5
Foundation Programming
Assessment 1
Flowcharting & Pseudocoding Project
This pseudocode segment is intended to compute and display the average grade of three
tests for any number of students.
The program executes until the user enters a negative value for the first test score.
Debug the pseudocode by rewriting it to achieve its intended purpose.
start
Declarations
num test1
num test2
num test3
num average
housekeeping()
while test1 >= 0
mainLoop()
endwhile
endOfJob()
stop
housekeeping()
output "Enter score for test 1 or a negative number to quit"
return
mainLoop()
output "Enter score for test 2"
input test2
average = (test1 + test2 + test3) / 3
output "Average is ", average
output "Enter score for test 1 or a negative number to quit"
input tesst1
return
endOfJob()
output "End of program"
return
Trending now
This is a popular solution!
Step by step
Solved in 6 steps with 3 images