NIT5150 Advanced Object Oriented Programming Assignment Help

NIT5150 Advanced Object Oriented Programming Assignment Help

NIT5150 Advanced Object Oriented Programming Assignment Help

Program Description

I have created a Sports Membership Calculator. It is to find out the membership fee of customers in a sports centre based in Victoria, Australia. It will take the details of N number of customers and in my application, the N is set to the largest integer in student id, if the number is less than 4, then it will be set as 4. My system will set this value as a constant. Then it will read the customer’s name that is entered by the user, number of months for which the user wants the subscription and yes or no to indicate whether the customer receives a special offer or not. If the number of months is not between 1 and 60, then it will show a message and asks the user to input the data again. And it only accepts the integers. The Special offer data input can only be yes or no. Otherwise, it will ask the user to input the data again. If all three data are given correctly, it will calculate the total charge applied for that customer. And if the customer has any special offer, then it deducts 15% of total amount irrespective of the “number of months”.

number of months

The above figure showed the input screen. It will repeat N times (Here, N=highest number of my Student ID). After the completion, the program will display the result in a tabular format. It contains Name, Months, Special Offer and Charge. After the tabular column, it will display the most fees-paying customer and the least fees-paying customers. If all are paying the same fee, then there is no such concept of least-paying and most-paying customers. The system will display “All paying the same fee” with the amount. Then the system also shows the number of customers who are registered with less than 6 months and greater than 6 months.

All paying the same fee

The system validates the number of month entry. It will accept only integers between 1 and 60 otherwise it will ask the user to input the value again. The input for the special offer must be “Yes or No”, otherwise a message will show stating that the entered choice is wrong and asks the user to enter the correct choice. And in both the cases, the system will read data from the user again for the same.

The system validates the number of month entry

Test Cases

Test Case

Expected Output

Output Get

Result

Giving the Correct inputs

Showing the summary of membership fee

Showing the summary of membership fee

Pass

Enter a decimal value for number of months

Validation and read again

Validation and read again

Pass

Enter a value greater than 60 for number of months

Validation and read again

Validation and read again

Pass

Enter a value less than 1 for number of months

Validation and read again

Validation and read again

Pass

Enter a string rather than Yes or No

Validation and read again

Validation and read again

Pass