




















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
C+ Development : Guitar Store development, explantion of software development life cycle, case diagram, flow chart, implementaion,.....
Typology: Assignments
1 / 28
This page cannot be seen from the preview
Don't miss anything!





















Qualification BTEC Level 5 HND Diploma in Computing Unit number and title Unit 1: Programming Submission date 13/12/2020 Date Received 1st submission 13/12/ Re-submission Date Date Received 2nd submission Student Name Le Trong Trung Student ID GCH Class GCH0902 Assessor name Do Hong Quan Student declaration I certify that the assignment submission is entirely my own work and I fully understand the consequences of plagiarism. I understand that making a false declaration is a form of malpractice. Student’s signature Trung Grading grid P1 M1 D
Grade: Assessor Signature: Date: Lecturer Signature:
Before applying for an internship at this company, I did an internship and wrote programs for a number of stores. As being prepared for an interview, I am going to demonstrate problem solving and basic programming skills that I have learnt from the course Programming. In my opinion basically today programming languages include the main components such as:
product information including the name, ID, quantity, and price of The product then prints all the information of the product we have entered and the last part is used to sell the book and its price.
➢ Planning and Requirement Analysis Requirement analysis is the most important and fundamental stage in SDLC. It is performed by the senior members of the team with inputs from the customer, the sales department, market surveys and domain experts in the industry. This information is then used to plan the basic project approach and to conduct product feasibility study in the economical, operational and technical areas. Planning for the quality assurance requirements and identification of the risks associated with the project is also done in the planning stage. The outcome of the technical feasibility study is to define the various technical approaches that can be followed to implement the project successfully with minimum risks. (Mane, 2018) ➢ Defining Requirements Once the requirement analysis is done the next step is to clearly define and document the product requirements and get them approved from the customer or the market analysts. This is done through an SRS (Software Requirement Specification) document which consists of all the product requirements to be designed and developed during the project life cycle. (LiLi, 2020) ➢ Designing the Product Architecture SRS is the reference for product architects to come out with the best architecture for the product to be developed. Based on the requirements specified in SRS, usually more than one design approach for the product architecture is proposed and documented in a DDS - Design Document Specification. (LiLi, 2020) ➢ Building or Developing the Product In this stage of SDLC the actual development starts and the product is built. The programming code is generated as per DDS during this stage. If the design is performed in a detailed and organized manner, code generation can be accomplished without much hassle.
Figure 1 .Use case diagram
Figure 2 .HIERACHY DIAGRAM ❖ Flowchart Menu This is a flowchart simulation for using loop and switch case to program. we see that when a user enters his or her choice, it will display the information within the selection that I made in it, if the user made a mistake it would allow the user to enter it again. For this example, if the user chooses 1, the screen will move to entering information for the products. Here because there are 4 cases equivalent to 4 options when the correct person entered in each option it will return to the main menu, particularly with option 4 we have set it by default when clicked, it will exit the program without returning main menu again.
Figure 3. Flowchart Menu Options
❖ Flowchart Display( Show all ) This flowchart to print out all the information that was entered in the previous function. Figure 5. Flowchart Display information
❖ Flowchart Bill of sale This is flowchart to calculate the sale of products with showall(); to display product information for checkers and guests to avoid forgetting the product price and availability. If (product1 <= 1) to run if the customer intends to buy only one type of product. And use For loop to run when customers buy a lot of products to run the loop for us to register many products as well as charge them. Figure 6. Flowchart Bill of sale
Console.WriteLine("Warning!!!! Please enter option by number "); } switch (choice) { case 1: Console.Clear(); //Clear screen Console.WriteLine("\t\t\t\t\t\tAdd Name, Amount, Price"); add(); //Call function add checkchoice = true; // If user run option 1 first checkoption = true Console.WriteLine("Press and key to continue. .. "); Console.ReadKey(); break; case 2: if (checkchoice == true) { Console.Clear(); // Clear screen Console.WriteLine("\t\t\t\t\t\tShow all Products "); Console.WriteLine(" =========================================== "); showall(); //Call function showall Console.WriteLine(" =========================================== ");
else { Console.WriteLine("<!!> ERROR: Program have not data, please choice 1 first."); Console.WriteLine("> Press 'Enter' to continue."); Console.Readkey(); } break; case 4: Console.Write("\n\n\n\n\n\t\t\t\t\t\t\tSEE YOU AGAIN!\n\n\n\n\n"); Console.ReadKey(); Console.Clear(); break; default: Console.WriteLine("<!!> ERROR: Invalid! Please click enter to input again."); Console.WriteLine("Press and key to continue. "); Console.ReadKey(); Console.Clear(); break; } } while (choice != 4);