0% found this document useful (0 votes)
8 views2 pages

Practice Questions: The Average Marks Total Marks

The document contains a series of programming practice questions focused on inputting and processing data for students, houses, and items. It includes tasks such as finding the youngest student's age, calculating average marks, and determining the total bill for items. Each question specifies the type of loop to be used for data input and processing.

Uploaded by

rrishithak29
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views2 pages

Practice Questions: The Average Marks Total Marks

The document contains a series of programming practice questions focused on inputting and processing data for students, houses, and items. It includes tasks such as finding the youngest student's age, calculating average marks, and determining the total bill for items. Each question specifies the type of loop to be used for data input and processing.

Uploaded by

rrishithak29
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Practice questions

Q1) Input ages of 5 students. Find and output the youngest student’s age (use for loop).

Q2) Input marks for 7 students (use while loop). Find and output

 the average marks


 total marks

Q3) Input names of 5 students

Find and output name of the last student.

Q4) Input rents of 8 houses. Find and output the

 lowest rent
 highest rent
 average

rentQ5)

 Prompt the user to enter how many students there are in a class.
 Input marks of all the students
 Output the total

marksHint:

INPUT students

FOR count =1 to students


 Output total height
 Maximum height
 Minimum height
 Average height

Q7) Input prices of 6 items. Use while loop.

 Find and output the total bill


 Find and output how many prices were greater than $100
 Find and output the percentage of items that were greater than $100

Q8) Input prices of 6 items .Find and output the total bill (use REPEAT LOOP)

You might also like