PROBLEM SOLVING
Design program using pseudocode and flowchart
EXERCISE 5- SEQUENCE AND SELECTION
STRUCTURE
A company decides to raise the salaries of its
employees according to the following table:
Employee-status
Years of-service
Percent-raise
Full-time
Less than 5 years
4.0
Full-time
5 years and more
5.0
Part time
Less than 5 years
2.0
Part time
5 years and more
3.0
Given the problem above, design the solution using
pseudocode and flowchart.
EXERCISE 6
The National Earthquake Information center has
asked you to write a program implementing the
following decision table to characterize an
earthquake based on its Richter scale number.
Richter scale number (n)
Characterization
n < 5.0
Little or no damage
5.0 <=n < 5.5
Some damage
5.5 <= n < 6.5
Serious damage
6.5 <= n < 7.5
Disaster
Higher
Catastrophe
Given the problem above, design the solution using
pseudocode and flowchart.
EXERCISE 7
Write a program to convert an input number of
nickels and dime into a total number of cents. For
example, if the user inputs 3 and 7 for the number
of nickels and dimes, respectively, the screen
display at the end of the run would be :
Enter number of nickels and dimes 3 7
3 nickels and 7 dimes = 85 cents.
Hints: value for nickel = 5, dimes =10
Given the problem above, design the solution using
pseudocode and flowchart.
EXERCISE 8
At the Orange College, tuition charges are RM 50
per credit, with a maximum of RM750 no matter
how many credits are taken. Thus, a student taking
12 credits would pay RM600, whereas a student
taking 21 credits would pay the maximum charge of
RM750.
Write a psedocode and draw a flowchart in which
the number of credits is input and the tuition charge
is output.