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.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

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

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 6 steps with 3 images

Blurred answer
Knowledge Booster
Concept of Flowchart
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education