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

Array Practice Questions

The document outlines five programming problems related to a college exam system, grocery billing, quiz scoring, music playlist management, and online auction bidding. Each problem includes a statement, input example, and expected output. The solutions involve basic data handling and calculations to display results based on user input.
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)
6 views2 pages

Array Practice Questions

The document outlines five programming problems related to a college exam system, grocery billing, quiz scoring, music playlist management, and online auction bidding. Each problem includes a statement, input example, and expected output. The solutions involve basic data handling and calculations to display results based on user input.
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

1.

Marks Entry System

Problem Statement:
In a college exam system, a teacher enters marks of 5 students into the system. You need to
display all the marks as entered.

Input:

Enter 5 student marks:


45 67 89 55 77

Output:

Marks entered: 45 67 89 55 77

2. Total Grocery Bill Calculator

Problem Statement:
A customer buys multiple grocery items. The billing system stores the price of each item in
an array. Calculate the total amount to be paid.

Input:

Enter prices of 4 items:


100 250 75 150

Output:

Total Bill: ₹575

3. Finding Top Performer in a Quiz

Problem Statement:
After an online quiz, student scores are stored in an array. Write a program to find the
highest score among all students.

Input:

Scores: 45 78 66 89 34

Output:

Top Score: 89
4. Rewind Playlist

Problem Statement:
A music app shows songs in reverse order when the "rewind" button is pressed. Given a list
of songs, print them in reverse.

Input:

Songs: A B C D

Output:

Rewind Order: D C B A

5. Second Highest Bidder

Problem Statement:
In an online auction, the top 2 bidders are rewarded. Write a program to find the second
highest bid from the list.

Input:

Bids: 5000 10000 7500 6000

Output:

Second Highest Bid: 7500

You might also like