Question
Programming Logic and Design, Comprehensive Program Life Cycle (Industry way) 1. Analyzing the problem 2. Design the Flowchart logic 3. Write the Code 4. Test
Programming Logic and Design, Comprehensive
Program Life Cycle (Industry way) 1. Analyzing the problem 2. Design the Flowchart logic 3. Write the Code 4. Test and debug the program Using step #1 & #2 of the PDLC, design the logic for a program that calculates the service charge customers owe for writing a bad check. The main program should contain three modules.
The service charge is computed as $20 basic fee plus 2 percent of the check amount. Displays the total charge the user will pay for writing a bad check.
DO NOT use IF's or Loop's.
Use syntax that goes inside an I/Osymbol.
Good attention to declaring variables, prompting the user for inputting data, as well as displaying output.
Example of a problem and listing your variables:
The problem:
Design a logic to compute the average of Mr. Doe final grade after taking three exams. Use the four PDLC steps which the instructor has indicated.
studname ....... studname means the name of the student
smj ....... smj means the student major
fgrade ....... fgrade means the final grade. The fgrade is
calculated as (test1 + test2 + test3) / 3
test1 ....... test number 1
test2 ....... test number 2
test3 ....... test number 3
Develop your data file (if needed).
A. Go down each variable listed and ask yourself Does someone input variable value or Do I have to calculate/determine it?
a) If they provide it to you, then show it in the data file.
if you have to calculate it, then do not show it in the data file.
Draw a data file: Beginning in Chapter 1 through Chapter 3, the data file must goes across
Example of a data file: Date File
studname smj test1 test2 test3 Ted doe Computer Sci 75.00 80.00 90.00
Step #2 Develop the Flowchart
start Declarations string name num balance start Declarations output "Please enter customer's string name num balance output "Please enter customer's name" input name output "Please enter balance due " input balance name input name output "Please enter balance due input balance
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started