You are on page 1of 19

Shaheed Zulfikar Ali Bhutto Institute of Science & Technology

COMPUTER SCIENCE DEPARTMENT

Total Marks:

Obtained Marks:

Project Report
(Restaurant items purchase and sell
system)

Submitted To: Mr Muhammad Naveed


_______________________________________________________________________________________________________________________________________________________________________________________________________________________________________

Student Name: Mahnoor Shoaib Ghega & Seemab Mehtab


_______________________________________________________________________________________________________________________________________________________________________________________________________________________________________

Reg Number: 2080295 & 2080287


_______________________________________________________________________________________________________________________________________________________________________________________________________________________________________

Course, Semester and SZABIST-ISB


Section
Shaheed Zulfikar Ali Bhutto Institute of Science & Technology

COMPUTER SCIENCE DEPARTMENT

Report Outlines

 Abstract
 Introduction
 Project Details
 Main features of Project
 Topics Covered in Project
 Screen Shots of Project
 Main Code with explanation
 Flow Diagram of project
 Conclusion

Course, Semester and SZABIST-ISB


Section
Shaheed Zulfikar Ali Bhutto Institute of Science & Technology

COMPUTER SCIENCE DEPARTMENT

Abstract

With the expanding notoriety of food delivery, the customary phone


request food has burden to the clients and the food delivery store.
Step by step instructions to make the food-conveyance more rapidly
and helpfully has become a worry of individuals.
For this project, I chose to create a Restaurant Purchase and Sell
menu.
The purpose of the menu was to provide users with the menu of the
restaurant and sell/buy. By adapting this functionality, I would also
provide users with a unique method to ask user for order. Using C++
programming language, I was able to develop and implement most of
the functionality required. I was not able to complete the sharing
component in time; however I did get data transferring across
devices.

Introduction
This report aims to provide a detailed look at the control structure in
the C++ programming along with variables and go to functions etc. In
this product we asked user to purchase some items and then sell
them.

Course, Semester and SZABIST-ISB


Section
Shaheed Zulfikar Ali Bhutto Institute of Science & Technology

COMPUTER SCIENCE DEPARTMENT

Project details

In this project I have taken variables and performed many tasks on


them. Firstly, I have taken input from user to purchase the quantity of
the food (Pizza, burger, ice cream, and sandwich). Then we asked the
user to input amount of these foods.
Then we have displayed the result by selecting from menu for final
product that was chosen by user.
In this project we have used control structure. We used switch case
for the food option and if-else with in the switch statement to know
the sell/limited…

Main features of Project


The main features of Project are:
 Purchase food

Course, Semester and SZABIST-ISB


Section
Shaheed Zulfikar Ali Bhutto Institute of Science & Technology

COMPUTER SCIENCE DEPARTMENT

In this program here ask the user to purchase food items.

Select food

After selecting it ask to enter quantity of that item.

Sell food (Selected food)


Course, Semester and SZABIST-ISB
Section
Shaheed Zulfikar Ali Bhutto Institute of Science & Technology

COMPUTER SCIENCE DEPARTMENT

In this the result is shown that items are sold. This statement is in if
part.

Topics covered in project


In this project I have covered:
 Variables
 Basic input/outputs
 Switch statements
 If else statements
 Go to statement
 Array
 Loops
 Functions
 File handling

Course, Semester and SZABIST-ISB


Section
Shaheed Zulfikar Ali Bhutto Institute of Science & Technology

COMPUTER SCIENCE DEPARTMENT

Screen shots of project


1:

2:

3:

Course, Semester and SZABIST-ISB


Section
Shaheed Zulfikar Ali Bhutto Institute of Science & Technology

COMPUTER SCIENCE DEPARTMENT

4:

4:

Course, Semester and SZABIST-ISB


Section
Shaheed Zulfikar Ali Bhutto Institute of Science & Technology

COMPUTER SCIENCE DEPARTMENT

5:

6:

Course, Semester and SZABIST-ISB


Section
Shaheed Zulfikar Ali Bhutto Institute of Science & Technology

COMPUTER SCIENCE DEPARTMENT

7:

8:

Course, Semester and SZABIST-ISB


Section
Shaheed Zulfikar Ali Bhutto Institute of Science & Technology

COMPUTER SCIENCE DEPARTMENT

9:

10:

Course, Semester and SZABIST-ISB


Section
Shaheed Zulfikar Ali Bhutto Institute of Science & Technology

COMPUTER SCIENCE DEPARTMENT

Main code with explanation


In the main function I Took:
Multiple variables, functions, and array by using loops perform input
output of some of them, used choice variable for switch statement
then with in every switch I have used if else for printing different
statements. In the end File handling concept is used.

Output Explanation
1:

Course, Semester and SZABIST-ISB


Section
Shaheed Zulfikar Ali Bhutto Institute of Science & Technology

COMPUTER SCIENCE DEPARTMENT

Here we ask the user to purchase food items.

2:

After purchasing, in this screen user is asked to select any of the 7


options. Here I have used switch statement.
3:

Course, Semester and SZABIST-ISB


Section
Shaheed Zulfikar Ali Bhutto Institute of Science & Technology

COMPUTER SCIENCE DEPARTMENT

After selecting it ask to enter quantity of that item.

4:

Course, Semester and SZABIST-ISB


Section
Shaheed Zulfikar Ali Bhutto Institute of Science & Technology

COMPUTER SCIENCE DEPARTMENT

In this the result is shown that items are sold.


This statement is in if part.
5:

Course, Semester and SZABIST-ISB


Section
Shaheed Zulfikar Ali Bhutto Institute of Science & Technology

COMPUTER SCIENCE DEPARTMENT

If we give a large number, then it gives us this kind if message. This


statement is in else part.
6:

Course, Semester and SZABIST-ISB


Section
Shaheed Zulfikar Ali Bhutto Institute of Science & Technology

COMPUTER SCIENCE DEPARTMENT

Here these statements are use for file handling. When program is
executed a new file .txt will be is created at .cpp file’s location, which
will contain details of buy/sell of items.

Course, Semester and SZABIST-ISB


Section
Shaheed Zulfikar Ali Bhutto Institute of Science & Technology

COMPUTER SCIENCE DEPARTMENT

Flow diagram

Start

Variables, array, and


statements

Switch Switch True

Manu Function
False

6 Switch same as above


with if else

Default statements

File handling

Go to statement

end

Course, Semester and SZABIST-ISB


Section
Shaheed Zulfikar Ali Bhutto Institute of Science & Technology

COMPUTER SCIENCE DEPARTMENT

Conclusion

In this project I have learned about variables, switch, if else, go to,


functions, array, loops, file handling and input output in the
programming. This project really helped me in my problem-solving
ability and to analyze the problems.

Course, Semester and SZABIST-ISB


Section

You might also like