Assignment name:Mini-app for grocery store management
Out: THU. 5th Dec. 2024 Due: THU. 26nd Dec. 2024
Main objective of the assignment:
Learning to draw flow charts to describe the problem and the
corresponding solution.
Practicing coding and building a C program to solve the given problem.
Learning to write a technical report to help others understand your
program.
Instructions:
You are given a struct type to present products (see Table 1 and Table 2 as
listed below). Finish the assignment with given information.
- Draw flow charts for all functions you want to write in your program (see
Figure 1 for example); - Explain how the structures and functions are used in your program;
- Wrte the source code in C language, and compile them to build the program;
- Run the program on your computer and screenshot the execution results;
- Write a technical report to include all the aforementioned contents
Remarks:
- Solutions to all questions above need to be included in one *.c file. In
addition, you are required to define a function for each question. e.g.:
main(), Q1_functionname(), Q2_functionname(), Q3_functionname(),
Q4_functionname() and Q5_functionname(). Qx_functionname() should be
given by yourself. - The output for each question should be done in main() function.
- Do not include any Chinese characters in your assignment.
- You are required to write annotation before each function, and
annotation / description for important statements. e.g.: /
∗
@function function_name
@desc describe what is this function used for.
∗
/
- The assignment should be submitted in a .doc/.docx or pdf file, all the
source code should be included, and output screenshot should be included.