Download presentation
Presentation is loading. Please wait.
Published byMarylou Hudson Modified over 9 years ago
1
P ROBLEM SOLVING Design program using pseudocode and flowchart
2
E XERCISE 5- SEQUENCE AND SELECTION STRUCTURE Suppose a company decides to raise the salaries of its employees according to the following table: Employee-statusYears –of- service Percent-raise Full-timeLess than 5 years4.0 Full-time5 years and more5.0 Given the problem above, design the solution using pseudocode and flowchart.
3
E XERCISE 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.0Little or no damage 5.0 <=n < 5.5Some damage 5.5 <= n < 6.5Serious damage 6.5 <= n < 7.5Disaster HigherCatastrophe Given the problem above, design the solution using pseudocode and flowchart.
4
E XERCISE 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.
5
E XERCISE 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.
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.