Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

C++ TICKET RESERVATION SYSTEM CODE

Rating
-
Sold
-
Pages
6
Grade
A
Uploaded on
18-01-2026
Written in
2024/2025

Character Classification CODE, Shopping Cart CODE , Age Analysis CODE, Ticket Reservation System CODE, Find the Weekday CODE , Medical Diagnosis System CODE

Institution
Course

Content preview

BS(IT) SEMESTER#01
CP LAB ASSIGNMENT # 3
UROOJ ASGHAR KHAN
ENROLLMENT # 02-135242-006


Task 1: Character Classification



Write a C++ program that checks whether a given character is a vowel, consonant, or a digit.
The program should prompt the user to enter a character and then display a message indicating
the classification.
Sample Output:




SOLUTION:




Output:




Task 2: Shopping Cart

You are developing an online shopping application for a retail store. The store wants to offer
discounts to customers based on their total purchase amount. If the total purchase amount
exceeds 15000 Rupees, a 10% discount will be applied to the customer's order.
PAGE#01
DATE:26/9/2024

, BS(IT) SEMESTER#01
CP LAB ASSIGNMENT # 3
UROOJ ASGHAR KHAN
ENROLLMENT # 02-135242-006


Write a C++ program that prompts the user to enter the total purchase amount. Based on the
entered amount, apply the appropriate discount using if-else statements and display the
discounted amount to the customer.

Sample Output:




Solution:




Output:




Task 3: Age Analysis


Assume that three friends are planning to do zip line adventure. Where age will be evaluated first
to send the younger one first. Write a C++ program where compare age of 3 friends. Find the
PAGE#02
DATE:26/9/2024

Written for

Course

Document information

Uploaded on
January 18, 2026
Number of pages
6
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$8.99
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
uroojkhan1

Also available in package deal

Get to know the seller

Seller avatar
uroojkhan1 Bahria university
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
3 months
Number of followers
0
Documents
13
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions