Programming Problem
Create pseudocode and flowchart that generates an average of three grading system
such as prelim, midterm and final period and display the result on the screen.
Pseudocode
Declare Integer prelim, midterm, finals
Declare Real average
Output "Average Grade Solver"
Output "Give Prelim Grade"
Input prelim
Output "Give Midterm Grade"
Input midterm
Output "Give Final Grade"
Input finals
Assign average = (prelim+midterm+finals)/3
Output "The General Average Grade is " & Tofixed(average,2) & "."
Algorithm
Step 1: Start
Step 2: Declare variables prelim, midterm, finals, average
Step 3: Input Prelim Grade says prelim
Input Midterm Grade says midterm
Input Final Grade says finals
Step 4: average = (prelim+midterm+finals)/3
Step 5: Display average
Step 6: Stop
Create pseudocode and flowchart that generates an average of three grading system
such as prelim, midterm and final period and display the result on the screen.
Pseudocode
Declare Integer prelim, midterm, finals
Declare Real average
Output "Average Grade Solver"
Output "Give Prelim Grade"
Input prelim
Output "Give Midterm Grade"
Input midterm
Output "Give Final Grade"
Input finals
Assign average = (prelim+midterm+finals)/3
Output "The General Average Grade is " & Tofixed(average,2) & "."
Algorithm
Step 1: Start
Step 2: Declare variables prelim, midterm, finals, average
Step 3: Input Prelim Grade says prelim
Input Midterm Grade says midterm
Input Final Grade says finals
Step 4: average = (prelim+midterm+finals)/3
Step 5: Display average
Step 6: Stop
Flowchart of Average Grade Solver
No comments:
Post a Comment