EXERCISE No. 2 Mary Jane would like to invest her money amounting to 100,000 at the bank. Before investing her money, she would like to determine which type of account she will choose. The amount of interest that her money earns depends on which type of account the money is in. The bank has 6 different types of accounts and they earn interest as follows: ACCOUNT TYPE INTEREST EARNED Personal financial 1.5% Personal homeowner 2.0% Personal gold 2.5% Small business 3.0% Big business 3.5% Gold business 4.0% Mary Jane as a programmer would like to make a program that computes automatically the interest earned of her money in each type of account. QUESTIONS 1. What are the data needed for the solution of the program to produce the desired output? ______________________________________________________________________________ ______________________________________________________________________________ ______________________________________________________________________________ 2. What statements in the program that determines interest earned of each type of account? ______________________________________________________________________________ 3. What was the condition applied to satisfy the requirement? ______________________________________________________________________________ 4. What have you observed in using nested if statement in this program? ______________________________________________________________________________ EXERCISE No.3 A student took four quizzes in a term and would like to compute their average. He also would like to know what will be the remarks. Follow the range of grades and its equivalent remarks, and then fill-up the table below: 100-95 - Excellent 94-90 - Very Satisfactory 89-85 - Satisfactory 84-80 - Fine 79-75 - Fair 74 and below - Poor REQUIREMENTS 1. Write the corresponding algorithm a. Narrative b. Pseudocode 2. Create the equivalent flowchart based on the algorithm of the given problem 3. Construct the program and record your screen display result
EXERCISE No. 2
Mary Jane would like to invest her money amounting to 100,000 at the bank. Before investing her money, she
would like to determine which type of account she will choose. The amount of interest that her money
earns depends on which type of account the money is in. The bank has 6 different types of accounts and
they earn interest as follows:
ACCOUNT TYPE | INTEREST EARNED |
Personal financial | 1.5% |
Personal homeowner | 2.0% |
Personal gold | 2.5% |
Small business | 3.0% |
Big business | 3.5% |
Gold business | 4.0% |
Mary Jane as a programmer would like to make a program that computes automatically the interest earned
of her money in each type of account.
QUESTIONS
1. What are the data needed for the solution of the program to produce the desired output?
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
2. What statements in the program that determines interest earned of each type of account?
______________________________________________________________________________
3. What was the condition applied to satisfy the requirement?
______________________________________________________________________________
4. What have you observed in using nested if statement in this program?
______________________________________________________________________________
EXERCISE No.3
A student took four quizzes in a term and would like to compute their average. He also would like
to know what will be the remarks. Follow the range of grades and its equivalent remarks, and then fill-up
the table below:
100-95 - Excellent |
94-90 - Very Satisfactory |
89-85 - Satisfactory |
84-80 - Fine |
79-75 - Fair |
74 and below - Poor |
REQUIREMENTS
1. Write the corresponding
a. Narrative
b. Pseudocode
2. Create the equivalent flowchart based on the algorithm of the given problem
3. Construct the program and record your screen display result
Step by step
Solved in 2 steps with 2 images