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
- BM004-3-1 BCS Business Communication Report, APU, Malaysia As a newly hired Chief Social Media Manager for the head office of an international organisation
- BBAP4103: Investment Analysis Assignment, OUM, Malaysia Choose TWO companies listed in the transportation & logistics sector of the Main Market of Bursa Malaysia. Find the companies
- Culture & Organizations Case Study, UKM, Malaysia Describe briefly the organization, its purpose, and its business. Research is required, with at least 2 references
- ENT300: Fundamentals of Entrepreneurship Report, UiTM, Malaysia On 1st November, my friend and I decided to start a business that focuses on gadget consulting services
- Nursing Assignment, SU, Malaysia The purpose of this assignment is to evaluate learners’ critical thinking skills in analyzing ethical issues related to nursing practice
- Management Information System Assignment, SU, Malaysia Evaluate the impact of emerging technologies such as blockchain and artificial intelligence on the protection of intellectual
- Finite Element Analysis Assignment, CU, Malaysia Describe how the boundary conditions are applied and how the component is loaded
- LAW 3711: Equity & Trusts II Assignment, IIUM, Malaysia Mee Lan left RM 3000 for the maintenance of aged and poor people at Gunung Ledang
- THEORETICAL ASPECTS OF COMPUTER SCIENCE Assignment, MUM, Malaysia You are required to develop a computer program with Python programming language to try and solve it
- TEE103: i. Calculate the voltage Vs, by using Kirchhoff’s law and Ohm’s.: Circuit Theory I Assignment, WOU, Malaysia