NIT5150 – Advanced Object Oriented Programming Victoria University
1
Assignment 1 – Practical Programming Project
Due date: Refer to Assignment Submission Box on VU Collaborate
Weighting: 20% of total assessment
Coverage: This assessment item is based on course content in weeks 1- 4
Objectives
This assessment is designed to assess your understanding of variables, constants, types,
operators, input/output, loops, if statements, classes, objects and functions.
Task
Create a C# application that calculate and displays membership fees for N customers who
egistered for membership from a sport center based in Victoria, 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
s XXXXXXXXXXthen 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-12 months $10.0 per month
12-24 months $7.5 per month
More than 24 months $5.0 per month
Specific Requirements
• The application should ask the user to enter the customer name, the number of months
for membership, and ‘Y’ or ‘N’ to indicate whether the customer receives a special offer
or not. The special offer will give customers a 10% discount of the membership no
matter how many months they register.
• Assume that the number of months to be entered is an integer type with the range
etween 1 and 120. An e
or message should be issued if a user enters a value
eyond this range and the re-entering is required.
• The program makes a calculation of membership and displays the result as shown in the
elow figure. The program should be kept running with entering next set of input data.
• When the programing starts, you need to display your name, student ID and the
co
esponding M value on screen.
NIT5150 – Advanced Object Oriented Programming Victoria University
2
• After all M sets of input data are entered from the keyboard, your program will also
display the information that includes the customer spending most, the customer
spending least as well as a simple bar chart to display how many members with the
number of months are less than 12 months and greater than/equal 12 months as
shown in the below figure.
• The application should be user-friendly by displaying appropriate welcome, exit and
NIT5150 – Advanced Object Oriented Programming Victoria University
3
e
or message. Your program should be run as normal without changing any source
code except setting M with a different value.
Submission Requirements
You are required to submit two files:
1. Your application project packed as a single zip file.
2. A user manual document to show how your program works, provide screenshot and test
cases. Assignment Cover Sheet with your name and student ID should be added at the
eginning as a cover page. Document should be submitted in Word format.
NIT5150 – Advanced Object Oriented Programming Victoria University
4
(The document and the project should be submitted separately. Do not zip the document)
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.
For late submission is -5% each day.
Objectives
Task
Specific Requirements
Submission Requirements
Assessment Criteria
Microsoft Word - Assignment1_Specification.docx
NIT5150 – Advanced Object Oriented Programming Victoria University
1
Assignment 1 – Practical Programming Project
Due date: Refer to Assignment Submission Box on VU Collaborate
Weighting: 20% of total assessment
Coverage: This assessment item is based on course content in weeks 1‐ 4
Objectives
This assessment is designed to assess your understanding of variables, constants, types,
operators, input/output, loops, if statements, classes, objects and functions.
Task
Victory Roses is a wholesale rose plant nursery selling rose plants to retail nurseries and
garden centers. Mainly they grow and produce 2 types of rose plants. The two types are
‘standard’ and ‘bush’. Standard rose plants are generally more expensive than bush varieties,
since they need to be treated and trained to form the long stem plant. If the quantity of rose
plants purchased are higher, then the price is lower.
Table below shows bush type rose plant prices. Standard type plants are 20% more than a bush
plant.
Number of Plants Price of a bush plant (including tax)
20 or more up to 50 plants $15.0 per plant
50 or more up to 100 plants $12.50 per plant
100 or more plants $10.00 per plant
Create a C# application that calculate and displays rose plant sales for N customers who
egistered for online plant purchases.
Note: Set N as a constant variable, which you can easily change. Initially set it to a value to be
equal to the largest digit of your student id number (e.g. if your student id is s3025423 then N
should be equal to 5). Assume N=4, if the largest digit of your student id number is less than 4.
Specific Requirements
The application should ask the user to enter the customer name, the type of the rose
plant, and the number of plants to order. If the rose plant type is standard, then the
price is 20% more i
espective of the number of plants.
The minimum order should be at least 20 plants, and the largest order is 200. An
e
or message should be issued if a user enters a value beyond this range and re‐
entering the plant quantity is required.
The program makes a calculation of the order and displays the result as shown in the
figure below. The program should kept on running with entering next set of input data.
NIT5150 – Advanced Object Oriented Programming Victoria University
2
After all N sets of input data are entered from the keyboard, your program will also
display the information that includes the customer spending most, the customer
spending least as well as a simple bar chart to display how many customers place small
orders and how many placed large orders with the number. Small order is less than 35
plants. The output should look as shown in the figure below.
The application should be user‐friendly by displaying appropriate welcome, exit and
e
or messages. Your program should run as normal without changing any source
code except setting N with a different value.
NIT5150 – Advanced Object Oriented Programming Victoria University
3
Submission Requirements
You are required to submit two files:
1. Your application project packed as a single zip file.
2. A user manual document to show how your program works, provide screenshot and test
cases. Assignment Cover Sheet with your name and student ID should be added at the
eginning as a cover page. Document should be submitted in Word format.
(The document and the project should be submitted separately. DO NOT zip the document)
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.
For late submission is ‐5% each day.