BIT1C013 Introduction to Programming Individual Assignment August 2025 Session
| University | Mahsa University (MU) |
| Subject | BIT1C013 Introduction to Programming |
MAHSA University – FACULTY OF ENGINEERING, BUILT ENVIRONMENT & IT
Assignment brief
| Program | : | Bachelor of Information Technology (Hons) |
| Module Name | : | Introduction to Programming |
| Code | : | BIT1C013 |
| Assignment | : | Individual |
Assignment submission guideline:
A hard copy of the assignment signed by student with faculty cover sheet attached. Also, assignment must be submitted in Microsoft word format or Pdf format to the submission assignment provided on CAMU.
Your lecture notes will give you the basic framework ONLY of the ideas, theories and concepts you will need to complete the assignment. These notes will therefore NOT be sufficient on their own. You will need to make use of the required reading, extra references and any other material you come across in the course of researching your assignment. Only academic references are accepted.
Late Submission
For any late submission without any good reasons, thus comply to the rules as per mention below:
- day late: 5 marks will be deducted from the mark achieved by the student
- to 9 days late: a further 5 marks will be deducted from the mark achieved by the student for each day the work remains unsubmitted
10 days late: a mark of zero will normally be recorded
Non-submission of work
Non-submission of work without extenuating circumstances will be counted as a non- submission and marked as zero.
Editorial/Presentation guidelines
| Font size | Size 12 |
| Font style | Times New Roman |
| Headings | Size 12 bold |
| Margins | 4cm Left margin
2.5 cm top, bottom, and side margins |
| Spacing | 1.5 lines spacing |
| Colour | Depends on your report |
| Pagination | Individual pages must be numbered – bottom of page and centre |
| Justify | Justify text in the document |
| Table | Table caption must be placed on top of the table
Table caption font is Times New Roman, size 10, Italic Table number font is Times New Roman, size 10, bold Within table font is Times New Roman, size 10
|
| Figure | Figure caption must be placed on the bottom of the figure
Figure caption font is Times New Roman, size 10, Italic Figure number font is Times New Roman, size 10, bold Within Figure (Axis) font is Times New Roman, size 10
|
| Reference | IEEE template (Not older than 2012) |
Assignment Submission due date Final submission: 3 November 2025 (Monday)
Assignment must be submitted through the submission link provided on CAMU.
Marking
This assignment counts for 30% of your total mark.
Assignment description
This individual assignment is part of a continues assignment that carries 30% of the overall percentage for the courses. It addresses the course outcomes as shown below.
| Course outcome | Programme outcome |
| CO3: Analyze small to medium scale problems and develop solutions using functions. | PO8 |
| CO4: Understand and use basic program control constructs of sequence, selection and iteration. | PO1 |
Details of the task
A Nice Cafe wants a program to calculate the total cost of items purchased by customers. The restaurant sells three items with fixed prices as follows (use constants in your program):
- Latte (Item L): RM12 each
- Sandwich (Item S): RM18 each
- Muffin (Item M): RM7 each
Requirements:
- Construct a C++ program that fulfills the following requirements:
Use functions to:
- Input the quantity of each item purchased (with validation).
- Calculate the cost of each item based on its quantity and price.
- Calculate and return the total cost of all items purchased.
- (Optional bonus) Apply a member discount of 10% if the user selects “Member = Y”.
- Use sequence (normal steps), selection (if/else or switch for member Y/N), and iteration (loop to process multiple transactions until user chooses to exit).
- Display a clear receipt showing:
- Quantities and line costs for L, S, M
- Subtotal
- Any discount (if applicable)
- Final Total (RM)
Note: You should use at least three functions: one for input, one for calculations, and one for displaying the output.
- Draw a flowchart illustrating input, validation, calculations (including optional discount decision), and output. The flowchart should also show the loop that handles repeated transactions.
- Your C++ code should demonstrate creativity and clean structure: well-named variables, constants for prices, modular functions, and comments. Your report should discuss the system design, including the flowchart, the choice of control structures, and how your functions divide the work.
Example Output:
Case 1: Single Transaction (No Discount)
Enter quantity of Latte (>= 0): 1
Enter quantity of Sandwich (>= 0): 2
Enter quantity of Muffin (>= 0): 3
Are you a Nice Cafe member? (Y/N): N
————–Receipt ——————-
Latte (RM12) x 1 = RM12
Sandwich (RM18) x 2 = RM36
Muffin (RM7) x 3 = RM21
Subtotal: RM69
Final Total: RM69
——————————————-
Process another transaction? (Y/N): N
Thank you for using the Nice Cafe Order System! Goodbye!
Case 2: Multiple Transactions with Validation + Discount
Enter quantity of Latte (>= 0): -2
Invalid input! Please enter a non-negative number.
Enter quantity of Latte (>= 0): 2
Enter quantity of Sandwich (>= 0): 1
Enter quantity of Muffin (>= 0): 0
Are you a Nice Cafe member? (Y/N): y
—————— Receipt ——————
Latte (RM12) x 2 = RM24
Sandwich (RM18) x 1 = RM18
Muffin (RM7) x 0 = RM0
Subtotal: RM42
Member Discount (10%): -RM4.20
Final Total: RM37.80
Process another transaction? (Y/N): X
Invalid input! Please enter ‘Y’ or ‘N’: Y
Report
You must produce a report that includes:
- A flowchart of the program and screenshots of the output.
- The full source code.
- All files (report and source code) should be compressed into a single ZIP file and uploaded to CAMU.
What you should hand in
You should submit a single ZIP file containing the documents and upload it to CAMU.
Assignment Rubric
Name: ______________________________
Student ID: ______________________________
| Criteria | Criteria Description | Marks | ||||
| 1 | 2 | 3 | 4 | 5 | ||
| Very Poor | Poor | Satisfactory | Good | Very Good | ||
| Program Execution | Program does not compile or crashes frequently. | Program compiles but has major errors or crashes. | Program compiles but may have some minor issues. | Program compiles and runs smoothly with no runtime errors. | Program executes flawlessly, handles all edge cases. | |
| Correct
Output |
No output or completely incorrect results. | Produces partial or mostly incorrect results. | Produces mostly correct results, with some errors. | Output is correct for most test cases, with only minor mistakes. | Produces correct output for all test cases. | |
| Design of the
Process Flow |
Process flow is unclear, incomplete, or lacks structure. | Basic process flow with limited clarity and organization. | Adequate process flow, but lacks
optimization or detail. |
Process flow is welldesigned, showing
logical and structured steps. |
Excellent process flow with clear,
creative, and logical design. |
|
| Documentation | No documentation or extremely limited explanation. | Minimal documentation,
lacks clarity in key areas. |
Adequate documentation,
explains most key aspects. |
Well-documented, clearly explains code and logic. | Exceptionally welldocumented, thorough
explanation of code, logic, and design choices. |
|
| Code Quality
& Creativity |
Poor coding style: inconsistent naming, no functions, hard to read. | Limited structure, minimal use of
functions, weak readability. |
Adequate coding style with some functions and organization. | Good coding practices: modular functions,
meaningful variable names, mostly readable. |
Excellent coding practices: clean,
modular, efficient, and creative solutions. |
|
|
Total Marks: _______ / 25 x 100 = ____________ |
||||||
‘END OF QUESTIONS’
Get Help By Expert
Struggling with your BIT1C013 Introduction to Programming task at MAHSA University? Our Malaysia-based experts can help you code clean, functional C++ programs and design logical flowcharts that impress your lecturer. From program execution to detailed documentation — we cover it all. Get online assignment help today from Assignment Helper MY — your trusted home for academic excellence in programming assignments across Malaysia.
Recent Solved Questions
- ECONOMICS 223: Mikroeconomy Case Study, USM, Malaysia Refined sugar producer MSM Malaysia Holdings Bhd’s profitability may be affected if the new government lowers the ceiling price of refined sugar
- SBST1303: Elementary Statistics Assignment, OUM, Malaysia Consider the average daily temperature of your residential area, and provide the data for 30 consecutive days
- Physicochemical Characteristics of Melastoma Malabathricum Thesis, UOM, Malaysia Melastoma malabathricum or known as the duduk tree is a type of plant that comes from the Melastomaceae family
- SEMM3023: Applied numerical method Report, UMT, Malaysia The determination of the fundamental natural frequency for cantilever beams is crucial in many engineering applications
- BHMC3004: Statistical Analysis for Communication Assignment, TARC, Malaysia Refer to Data Assignment 1, and select a proportionate stratified probability sample of 40 cities according to the region
- A small new software development project at company SRT Enterprise has five major activities: Production Operation Management Home Work, UUM, Malaysia
- Technology and Multimedia Design Case Study, TU, Malaysia Your multimedia company is hired by the Ministry of Education Malaysia (MOE) to produce educational applications
- BNNS6263: Haemopoietic & Oncology Nursing Assignment, LUC, Malaysia Haemophilia is a known genetic disorder in Malaysia, with about more than 1000 cases reported in 2018
- Integrated Marketing Communication Assignment, IIU, Malaysia If you were the brand manager for Kraft salad dressing, which obstacles to implementing the key integrated marketing
- MPU3412: Community service activities are aimed at improving people’s lives so that they can contribute: Community Service Assignment, OUM, Malaysia