• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 2 out of 8 pages
Exam (elaborations)

C# Practice Exam

Document preview thumbnail
Preview 2 out of 8 pages

This is a practice exam for C# to be created in Visual Studio. This practice exam explores foundational coding in Visual Studio using a Windows Form Application.

Content preview

Visual Studio – Assignment 3
Create a C# windows forms application project called Airline Booking. This program allows
the user to book an airline ticket. The user will enter Departure city, Destination city,
departure date, return date, number of passengers. The program will then calculate the total
cost based on the number of passengers, cost, payment info. When user clicks Save, it should
display all the information along with the booking successful message and create and write
the information to a file. See below for details
Control Type Text How should this field work?

. Label The screen should have a title

. Picturebox Logo for your airline company

. Label Departure city

. Combo List (for Should display the following 3 User should be able to
the departure cities Toronto select the city by clicking
city) Winnipeg on the city name
Vancouver

. Label Destination city

. Combo List (for Should display the following 3 User should be able to
the destination cities Toronto select the city by clicking
city) Winnipeg on the city name
Vancouver

. Label Departure Date

. Label Return Date

. MonthCalendar User should be able to select a
(for the date
departure date.
You will need to
research how to use it)
. MonthCalendar User should be able to select a
(for the return date
date. You will
need to research

, how to use it)
. Label Number of Passengers

. TextBox User should be able to enter
the number of passengers


1
. Button Calculate Clicking on this button
should calculate the
total cost = cost of 1
ticket * the number of
passengers and assign it
to the total cost amount
label (see table below
for cost of 1 ticket
based on the travel
cities)
. Label Total Cost

. Label Should display the total cost amount

Document information

Uploaded on
August 27, 2024
Number of pages
8
Written in
2022/2023
Type
Exam (elaborations)
Contains
Only questions
CA$5.99

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

Sold
0
Followers
0
Items
2
Last sold
-



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