0% found this document useful (0 votes)
3 views

Programming roadmap 1

The document outlines a series of programming tasks focused on basic input and output operations, loops, and grade calculations for students. It includes exercises for printing repeated outputs, generating multiplication tables, determining pass/fail status based on marks, and calculating averages and grade distributions for a specified number of students. The tasks emphasize the use of for and while loops without the use of arrays.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

Programming roadmap 1

The document outlines a series of programming tasks focused on basic input and output operations, loops, and grade calculations for students. It includes exercises for printing repeated outputs, generating multiplication tables, determining pass/fail status based on marks, and calculating averages and grade distributions for a specified number of students. The tasks emphasize the use of for and while loops without the use of arrays.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Concepts Covered: Input, Output, Counter, Total, Average, Percentage,Highest, Lowest

Note: (This series of questions do not use Arrays)

1- Write code that outputs the word ‘Hello’ 5 times

2- Write code that prints the value of the loop control variable. Write a for loop that runs 7 times,
each time the value of the loop control value should be output.

3- Write code that outputs the table of 2 in the following format


2x1=2
2x2=4
…..
2 x 10 = 20

To achieve this you are to use a for loop that runs 10 times.

4- Modify the code you wrote in Q3 to now output any table that the user desires.
Take input from the user and print table accordingly.
So if user types 5 , print table of 5 e.g. 5 x 1 = 5 , 5 x 2 = 10 ….. 5 x 10 = 50
If user types 3, print table of 3 e.g. 3 x 1 = 3 , 3 x 2 = 6 …… 3 x 10 = 30

To achieve this you are to use a for loop that runs 10 times.

5- Implement Q3 and Q4 using a while loop.

6- Write code for a class of 6 students. You are required to


- Input marks of each student
- Output “passed “ or “failed” for each student that took the exam

The passing marks for the exam are 50 and above.

7- Write code for a class of 8 students. You are required to


- Input marks of each student
- Output how many students passed or failed the exam

The passing marks for the exam are 50 and above.

8- Write code for a class of 8 students. You are required to


- Input marks of each student
- Output the average marks scored by the class

9 - Write code for a class of 8 students. You are required to


- Input marks of each student
- Output the highest and the lowest marks scored in the exam

10 - Write code for a class of 25 students. You are required to


- Input marks of each student
- Output number of students who scored A,B,C,D,E grades
- Output the highest and lowest marks scored in each grade category (e.g. highest B
grade score was 78 and lowest B grade score was 71 , highest A grade score was 94
and lowest A grade score was 83)
- Output average marks of students who scored more than C grade
- Output percentage of students that scored than C grade

Grade Breakdown :- (Grade A: 81-100)


(Grade B: 71 - 80)
(Grade C: 61 - 70)
(Grade D: 51- 60)
(Grade E: 50 and Below)

Recommended Practice:
Practice similar questions from past papers of old syllabus computer studies 7010
The last or 2nd last question in each paper is related to programming

You might also like