NIT5150 Assignment 1: Membership Fee Calculator in C# - Project

Verified

Added on  2023/01/03

|4
|285
|89
Practical Assignment
AI Summary
This assignment solution presents a C# application designed to calculate membership fees for customers at a sports center in Victoria, Australia. The project utilizes object-oriented programming (OOP) concepts such as classes, objects, and methods to manage customer data and calculate fees based on membership duration. The application takes user inputs for customer name and membership duration, then applies the appropriate pricing structure. The solution uses arrays of objects to store customer information and incorporates features like sorting using the IComparable interface. The code demonstrates the use of loops, conditional statements, and input/output operations to provide a functional and user-friendly application. The project addresses the requirements of the NIT5150 course, focusing on core programming principles and their practical application in a real-world scenario.
Document Page
Running head: NIT5150 – ADVANCED OBJECT ORIENTED PROGRAMMING
NIT5150 – Advanced Object Oriented Programming
Name of the Student
Name of the University
Authors note
tabler-icon-diamond-filled.svg

Paraphrase This Document

Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
Document Page
2NIT5150 – ADVANCED OBJECT ORIENTED PROGRAMMING
For this project the main concepts that are used in the program were the classes,
methods and loops (if loop). As there are multiple options that needs to be checked in the
program there was extensive use of the application so that the count of days, applicability
of the discount on the pay is correctly calculated as provided by the user. In addition to that,
in order to store the data about the customers in the program, the array of objects is used.
Similar to the primitive types, we created the array of values or objects in which each of the
members inside the array is based on the member class of the program. We used the already
available classes and it also enables the developers to create own class. Similar to array, the
array list is sequential collection of class objects that are of same type. The arraylist is used in
order to store the collection objects, but it is frequently used in storing variables of the same
type that are stored at contiguous locations.
In addition to that, the array of the objects is sorted by using the inbuilt Sort ()
function. This sort function helps in sorting elements in the array list using the IComparable
interface implementation by checking each element stored in the member arraylist.
Document Page
3NIT5150 – ADVANCED OBJECT ORIENTED PROGRAMMING
Document Page
4NIT5150 – ADVANCED OBJECT ORIENTED PROGRAMMING
chevron_up_icon
1 out of 4
circle_padding
hide_on_mobile
zoom_out_icon
[object Object]