关键词 > CSIT111
CSIT111– Programming Fundamental 2022
发布时间:2022-01-15
Hello, dear friend, you can consult us at any time if you have any questions, add WeChat: daixieit
ASSIGNMENT 1 – PART 1
CSIT111– Programming Fundamental
Session 1 - January to March 2022
INSTRUCTIONS TO CANDIDATES
1. The assignment consists of two parts. This is the part 1 of the assignment.
2. Part 2 is Moodle quiz. Should be done in class.
3. The name of the program must be YourName_A1.java (Only one file)
4. Total mark of Assignment 1 is 7 marks; 3 marks for Part II.
Your program, should begin with
// Full Name:
// Part time or Full Time
// Tutorial Group
// Declaration: …… tell me if it is your own work … . and whether you have // passed your program to your friends.
Objective
The following features should be explored in your design
- use of meaningful identifiers
- user friendly
- formatted outputs
- explore the use of constants
- some basic programming styles for alignment of statements
- comment statements
- etc
Task (4 marks)
An iPhone company approached you to design a system allowing them to put their iPhones for online order. They want the system to be friendly and easier to use. They propose to you their idea.
Task 1
When user enters to the system, you allow user to enter the iPhone for online purchase. The following shows the 1st display when user starts the system:
User enters the iPhones one by one:
User now enters some delivery info:
Task 2
Now user enter the quantities and the costs for each iPhone. The following shows the interactions and displays:
You can see that after user enters the information, a summary table is automatically generated.
Task 3
Oh! No! User discovers that the 1st two iPhones should be swapped. No problem, your system can also cater for that (testing is not required; just include some statements to swap the info of the 1st and 2nd iPhones).
The following shows a summary table after the swaps:
Task 4
Now customers can place their orders online. The following shows some of the interactions and display:
Immediately after the order, the system will generate a summary report of orders:
Task – Part 5
At the end of the purchase, the system also displays the balance report in stock:
As we are still in a early stage of design, you should assume that your program should do Task 1 followed by Task 2, followed by Task 3 and etc. Upon executing your program, all the above screen shots captured should be in the same window, one after the other. Data validation is not required.
IMPORTANT
The name of your program must be exactly YourName_A1.java and make sure that this file can be compiled and can be executed. Upload ONLY this file to Moodle. ALL ZIP
FILE SUBMISSION WILL BE REJECTED
No re-submission will be allowed after grading.
In the above file, remember to put down your name and the following declaration (some similar contents):
// Tell me if it is your own work, and whether you have passed your
// program to your friends etc etc. and willing to accept whatever
// penalty given to you.
- Wrong file name -0.2 mark
- No declaration, no name, etc -0.2 mark
- Your assignment is subject to demo, if no demo …. -0.5