NIT5150 Advanced Object Oriented Programming 1 : Solution Essays

Question:

Assignment 1 – Practical Programming Project

Task
Create a C# application that calculate and displays membership fees for N customers who registered for membership from a gym club based in Sydney, Australia. Declared a constant variable M to be equal to the largest digit of your student id number (e.g. if your student id is s3025423 then M should be equal to 5). Assume M=4, if the largest digit of your student id number is less than 4. The standard charges of membership are shown below

Length of Membership

Rate (including tax)

1-8 weeks

$40.0 per week

8-16 weeks

$35.5 per week

More than 16 weeks

$25.0 per week.

Specific Requirements

The application should ask the user to enter the customer name, the number of months for membership, and yes or no to indicate whether the customer receives a special offer or not. The special offer will give customers a 20% discount of the membership no matter how many weeks they register.

Assume that the number of week to be entered is an integer type with the range between 1 and 30. An error message should be issued if a user enters a value beyond this range and the re-entering is required.

The program makes a calculation of membership and displays the result as shown in the below figure. The program should be kept running with entering next set of input data.

After all M sets of input data are entered from the keyboard, your program will display a summary table such as below:

You program will also identify and display the information that includes the customer spending most, the customer spending least as well as counts of display how many members with the number of months are less than 8 weeks and greater than/equal 8 weeks as above.

The application should be user-friendly by displaying appropriate welcome, exit and error message. Your program should be run as normal without changing any source code except setting M with a different value.

Assessment Criteria

Your assignment will be marked based on the specified functionalities, use of loops and If statements, the use of classes and objects, input and output functionality, user-friendly features and report presentation.

 

Answer:

Program executing sequence     

In this program the uses can calculate the gym membership fees according to the given weeks. In initial data, a range of weeks is assigned with a specific fees and program will calculate the total fees and discount rate. However, the below figure show the steps of execution of gym membership fees calculation.

 

 

Bibliography

 [1]”White Box Testing with Object Oriented programming”, International Journal of Recent Trends in Engineering and Research, vol. 3, no. 11, pp. 156-160, 2017.

[2]D. Clark, Beginning C# Object-Oriented Programming. Berkeley, CA: Apress, 2013

Place your order
(550 words)

Approximate price: $22

Homework help cost calculator

600 words
We'll send you the complete homework by September 11, 2018 at 10:52 AM
Total price:
$26
The price is based on these factors:
Academic level
Number of pages
Urgency
Basic features
  • Free title page and bibliography
  • Unlimited revisions
  • Plagiarism-free guarantee
  • Money-back guarantee
  • 24/7 customer support
On-demand options
  • Writer’s samples
  • Part-by-part delivery
  • 4 hour deadline
  • Copies of used sources
  • Expert Proofreading
Paper format
  • 300 words per page
  • 12 pt Arial/Times New Roman
  • Double line spacing
  • Any citation style (APA, MLA, Chicago/Turabian, Harvard)

Our guarantees

Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.

Money-back guarantee

You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.

Read more

Zero-plagiarism guarantee

Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.

Read more

Free-revision policy

Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.

Read more

Privacy policy

Your email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.

Read more

Fair-cooperation guarantee

By sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.

Read more
× How can I help you?