Professional Documents
Culture Documents
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
Grading grid
P1 M1 D1
❒ Summative Feedback: ❒ Resubmission Feedback:
Figure 1 algorithm.
2. Definition of Software development life cycle.
A software development life cycle (SDLC) model is a conceptual framework describing all activities in a software development
project from planning to maintenance. This process is associated with several models, each including a variety of tasks and activities.
Software development is a cumbersome activity requiring proper identification of requirements, their implementation, and software
deployment. However, the activities do not end there. After the distribution of the software, proper maintenance has to be provided in
a timely manner. This term is also known as the software development process model.
3. SDLC Cycle.
SDLC is a process that defines the different stages involved in the development of high-quality product delivery software. The SDLC
phases cover the entire life cycle of the software, i.e. from the beginning to the retirement of the product. The adherence to the SDLC
process leads to the development of software in a systematic and disciplined manner. The process consist of 6 step.
During this phase, all the relevant information is collected from the customer to develop a product as per their expectation. Any
ambiguities must be resolved in this phase only.
The business analyst and Project Manager set up a meeting with the customer to gather all the information like what the customer
wants to build, who will be the end-user, what is the purpose of the product. Before building a product a core understanding or
knowledge of the product is very important.[ CITATION sof202 \l 1033 ]
3.2 Design:
At this stage, the framework and program architecture are drawn up on the basis of the specifications reviewed during the first stage.
System design tends to identify hardware and system specifications and to define the system's entire architecture as well. The device
architecture specifications provide criteria for the next stage of the model. In this phase, the testers established the test plan, where
they specified what to test, how to test.[ CITATION sof202 \l 1033 ]
3.4 Testing:
After developing the code, the product is tested against the requirements to ensure that the needs addressed and collected during the
requirements phase are actually resolved. During this stage, all kinds of functional testing are performed, including unit testing,
integration testing, system testing, acceptance testing, and non-functional testing.
3.5 Deployment:
After positive inspection, the substance is shipped to the customer for use. After the product is given to the clients, the first beta test
will take place. If any changes are needed or vulnerabilities are discovered, they must be recorded by the production team. Since these
changes are made or errors are corrected, the actual implementation will take place.
3.6 Maintenance:
Once customers start using the program they create, the real issues occur, and from time to time need to be resolved. This process is
known as maintenance, where care is taken for the product produced.
Having to write invoices by hand is outdated because it takes a lot of time to write and calculate the things that the customer has
ordered to understand these problems. I wrote this invoice printing program to help save money. save time and effort to speed up
work. The program has two main functions: the first is to enter information of customers and the second function is to print out
customer invoices.
Int, short for "integer", is a type variable platform built into the compiler and used to define variables that contain integers.
Is the declaration of the type of integer according to the computer's most natural size The declaration of type, int is suitable for this
case because int is an integer declaration, its identifier must be an integer, so it is not possible to declare type float and other data
types.
Use string.
Figure 3 switch.
If -else statement
The if - else branch statement is based on a condition. A condition is an expression that will be validated as soon as the statement is
encountered. If the condition is checked to be true, then the statement or a block of statements within the body of the if statement is
executed, if false else executes.
Figure 4 if-else statement.
While loop.
This statement first checks the condition if it is true then executes the block if false exits the loop, then checks the condition again, and
if it is true then executes the block again ... and so on until the condition is false.
do-while loop.
The function of do-while loop is exactly the same as while loop except for loop control the condition is computed after the block is
executed. So will be done at least once even if it's wrong The do ... while loop is always executed at least once.
Figure 6 do-while.
3. Use case and Flowchart:
4.1 Code.
Code listing.
Figure 11 part1
Explain do-while loop
Using do-while to facilitate, Execute statements in do-while loop block. Then When it reaches the end of the do-while loop, the
program determines that the value of the loop condition is that the choice variable must be nonzero and non-zero. If the expression has
a true value (nonzero and non-8), the program will go back to step 1 to continue executing the new loop.
If the expression has the following value (equal to 0 or equal to 8), the program will exit the cycle and go to the correct statement after
the semicolon at the end of the keyword do-while.
Figure 12 part2
The switch statement is a multicast selector that compares the value of an expression to a list of integer constants or constant
characters.
When a match is encountered, the statements associated with that constant are executed.
Figure 13 part 3
Figure 14 part 4.
Explain while loop.
while loop will perform the value of the conditional expression. If the conditional expression returns true i <3 then the statements and
blocks in the body of the loop will be executed. It then returns to check whether the loop condition is correct or not. If the loop
condition returns false then the statements will not be executed and skip the loop to go to the next command in the program.
4.2 Compile and Running.
Menu after press F5:
Figure 15Menu.
Figure 19 Bill.
Finally, the function has the function to print out the customer's invoice along with the number of items that the customer ordered,
print out the items that the customer ordered can calculate the amount that the customer must pay for the dishes. called along with
their numbers.
If option 1 is selected, the user can enter, Name, number of tables he wants to select and import separately for that table so that others
who want to enter need to enter the correct new password, and then can choose The dish is on the list from choice number 2 to number
5 And then select option 6 to see all the billing information the customer is charged.
V. Evaluation.
5.2 the reason for using the while statement in the input section.
There is a problem with for loop that we do not know in advance the number of iterations of the script. For example, enter customer
information if the number is not satisfied then re-enter. Obviously, we absolutely cannot know how many times the user will enter. So
while loop will help us to solve this problem.
• What can be improved: This is just the foundation program, apart from the program so that it can be developed more in the future.
For example, the user can enter data to organize and check whether the tables in the restaurant have been reserved or check if the same
name or wrong dictionary is entered in other tables so that tables can be added or deleted. booked but canceled because of a
multiplication problem. Or moreover, it can be developed into a Mobile App, Window App, with a simple interface, easy to use,
receive instant notifications from the restaurant to customers when there are new developments or customer gratitude occasions.
• What is the limitation: when entering wrong information, sometimes the system crashes and the program will stop.
References
Anon., n.d. freetuts. [Online]
Available at: https://freetuts.net/vong-lap-while-trong-csharp-1148.html
[Accessed 13 12 2020].