Q1: Write a pseudocode that inputs the student name and test1, test2, and test3 marks and produces an output of the student name, all his/her marks and the average as well.
DECLARE STNAME: STRING
DECLARE TEST1, TEST2, TEST3: INTEGER
DECLARE AVG: REAL
OUTPUT “ENTER STUDENT NAME:”
INPUT STNAME
OUTPUT “ENTER TEST1 MARKS:”
INPUT TEST1
OUTPUT “ENTER TEST2 MARKS:”
INPUT TEST2
OUTPUT “ENTER TEST3 MARKS:”
INPUT TEST3
AVG ← (TEST1+ TEST2+TEST3)/3
OUTPUT “”
OUTPUT “=======RESULT=======”
OUTPUT “STUDENT NAME:”, STNAME
OUTPUT “TEST1 MARKS:”, TEST1
OUTPUT “TEST2 MARKS:”, TEST2
OUTPUT “TEST3 MARKS:”, TEST3
OUTPUT “AVG MARKS:”, AVG
OUTPUT “==============”
Apply the code in the pseudocode editor given below.
Instructions:
- Press the Maximize button to change it to full screen.
- Delete sample code file from right side
- Create new file with name of Qno1 and start writing Pseudocode
Construct all the questions given in the interactive book. - “<-” use it to put arrows in for the assignment.
- There are three areas: “files”, “editor”, “Console”
Create same python code here :
Press “Mark as Complete” to finish the lecture
