0% found this document useful (0 votes)
29 views4 pages

CMPG122 Practical Assignment 9-2024

Practical assignment on c#

Uploaded by

koketsomolete880
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)
29 views4 pages

CMPG122 Practical Assignment 9-2024

Practical assignment on c#

Uploaded by

koketsomolete880
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
You are on page 1/ 4

Practical 9

Chapter 5: Loops, Files and Random Numbers

Submission guidelines:

• Keep the HCI principles in mind when designing your GUI.


• Make sure to use “save all” when you save your project.
• Make sure that you provide the name,number and your
student number for each program, e.g.
Prac1.1_Books_12345678
• After completing all projects, combine ALL projects in the
same folder.
• Zip only the ONE folder before you submit the practical on eFundi.

Task
Create a Windows form application (.NET Framework) called SurnameNamePrac9.

DBN is a local sports complex that offers various sports facilities for different sporting
codes. The manager has been struggling to keep track of bookings made over the
phone. As a software developer, you have been requested to create a simple
application that will allow users to book the facilities. Users will have the option to book
either indoor, outdoor, or all facilities. The application should include the following
features:

1. View Offered Sports Facilities: A button that allows users to view the sports
facilities by navigating to a file containing the information and displaying it in a
listbox. Hint: Use the OpenFileDialog control.
2. Book Facilities: A button that opens a pop-up groupbox containing booking
information details.
3. User Input Controls: Textboxes and radio buttons that allow users to enter and
select their preferred facility options.
4. Book Button: Stores the user's input in a file and allows the user to select the
preferred file location. Hint: Use the SaveFileDialog control and set defaultExt to
txt. Finally, it displays a MessageBox confirming the booking.
5. New Booking: A button that clears the booking groupbox for a new booking.
6. Cancel Button: Removes the booking groupbox and displays only the sports
facilities information.
7. Exit Button: Closes the application.

Use the following screenshots to guide you during this practical assessment.

NB: use the file and background picture provided on resources, Practical 9
material folder.
When the user clicks the button above the listbox, they must navigate to the
path which contains the sports facilities information and open the file and read
the file contents as indicated in the following figures:
When the user clicks to book the facilities, the GroupBox with booking controls should appear
as follows:

The user can fill in the booking information and click the book button which will open a file save
menu allowing the user to select preferred file name and location, this file stored the booking
information:
After successfully saving the file, the user should get a confirmation message on a
MessageBox:

Also note that using comments is crucial, as is HCI compliance and the correct
use of naming conventions for controls.
Remember to save, zip and upload your project folder under the practical
assignment on efundi.

You might also like