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++ WORLD TRAVEL PLANNER CODE

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

World Travel Planner code, Bank Account Transactions code, Day of the Week code, Letter Design code, EXCEL Laboratories Receipt Generator code, Clock Time Conversion code, Game: Guess the Number code

Institution
Course

Content preview

BS (IT), SEMESTER #01, CP LAB ASSIGNMENT#02
NAME: UROOJ ASGHAR KHAN
ENROLLMENT NO.: 02-135242-006



CP LAB ASSIGNMENT #02
Task 1: World Travel Planner
Assume that you are developing for a World Travel Planner program in C++ that
caters to globetrotters. The program should assist users in planning their
international travels by allowing them to convert distances from miles to
kilometers. Users will input the distance in miles, and the program will output
the converted distance in kilometers, considering the international metric system
commonly used in many countries. 1 mile = 1.60934 kilometers.


SOLUTION:




Task 2: Bank Account Transactions

Asad is managing his bank account and intends to carry out two
transactions. Initially, he plans to withdraw Rs. 2000 in cash, followed
by a deposit of Rs. 10,000 into his account. Your task is to create a
simple C++ program to facilitate these transactions. Display the account
balance after each transaction. Write a C++ program to realize the
specified scenario.




PAGE#01
DATE:19-SEP-2024

, BS (IT), SEMESTER #01, CP LAB ASSIGNMENT#02
NAME: UROOJ ASGHAR KHAN
ENROLLMENT NO.: 02-135242-006


Solution:




Task 3: Day of the week


Write a program that takes a date as input and prints the day of the week
that date falls on. Your program should take three input parameters: m
(month), d (day), and y (year). For m, use 1 for January, 2 for February,
and so forth.
Output will be 0 for Sunday, 1 for Monday, and so forth.
Use the following formulas, for the Gregorian calendar:




Solution:


PAGE#02
DATE:19-SEP-2024

Written for

Course

Document information

Uploaded on
January 18, 2026
Number of pages
8
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

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