0% found this document useful (0 votes)
12 views5 pages

Problem Solving with Flowcharts and Pseudocode

The document provides three programming exercises involving sequence and selection structures. The first asks the reader to design a program using pseudocode and flowchart to calculate employee salary raises based on employee status and years of service. The second asks to characterize earthquakes based on their Richter scale number. The third asks to write a program to convert numbers of nickels and dimes into a total number of cents. All three exercises ask the reader to design the solutions using pseudocode and flowcharts.

Uploaded by

Ananthan Ramesh
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views5 pages

Problem Solving with Flowcharts and Pseudocode

The document provides three programming exercises involving sequence and selection structures. The first asks the reader to design a program using pseudocode and flowchart to calculate employee salary raises based on employee status and years of service. The second asks to characterize earthquakes based on their Richter scale number. The third asks to write a program to convert numbers of nickels and dimes into a total number of cents. All three exercises ask the reader to design the solutions using pseudocode and flowcharts.

Uploaded by

Ananthan Ramesh
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd

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.

You might also like