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)