Professional Documents
Culture Documents
Group 2 - Restaurant Application
Group 2 - Restaurant Application
Group 2
Class : 4WD1
CEP CCIT
2021
PROJECT ON
Restaurant Application
Developed by
1. Muhartsal Raihan
2. Hafizh Zaldy Alviansyah
2
Restaurant Application
Batch Code : -
Names of Developer :
1. Muhartsal Raihan
2. Hafizh Zaldy Alviansyah
3
CERTIFICATE
This is to certify that this report titled “ Restaurant Aplication “ embodies the original work
done by Muhartsal Raihan and Hafizh Zaldy Alviansyah. Project in partial fulfillment of
their course requirement at NIIT.
Coordinator:
Indah Ayu
4
ACKNOWLEDGEMENT
Praise and gratitude the author goes to the presence of God Almighty for His blessings and
grace, we were able to complete this project task both in the form of presentations and papers
on time.
The author also thanks Indah Ayu and other lecturers for all their guidance to complete it.
Thank you to fellow students who have supported, and also thank you to fellow education
staff at CCIT-FT UI. Project Paper entitled “Restaurant” which the author submitted as a
requirement for Project assignment in 2022.
Finally, the author hopes that this paper can be useful for all and also add a better insight into
the operating system. The author realizes that it is still not perfect. Therefore, the author
expects all suggestions and criticisms from readers that are constructive for the perfection of
this paper. Hopefully this paper can provide many benefits for readers.
5
System Analysis
System summary:
This program was created using Microsoft Visual Studio 2012 and uses the C #
programming language, this program is a restaurant menu that will be served.
At this restaurant we serve some food and drinks, there will always be a new menu from us.
In this program consists of several options, Input menu data, Display data menu, search data
menu, Edit menu data, and delete menu data.
Data from the menu that must be inputted by the user, including menu code, menu
name, category, price. the category is between food or drink. The data menu will be restored
in file text.
6
IMPLEMENTATION
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
namespace Restaurant
{
class Program
{
string idmenu, nmmenu, kategori;
int harga;
string isi;
//prompting user to enter the string which needs to be stored in // the file
r Console.WriteLine("masukan id menu : ");
idmenu = Console.ReadLine();
Console.WriteLine("masukan nama menu : ");
nmmenu = Console.ReadLine();
Console.WriteLine("masukan nama kategori : ");
kategori = Console.ReadLine();
Console.WriteLine("masukan harga : ");
a harga = Convert.ToInt32(Console.ReadLine());
w.WriteLine(isi);
w.Flush();
w.Close();
fs.Close();
}
7
IMPLEMENTATION
sr.BaseStream.Seek(0, SeekOrigin.Begin);
System.Console.WriteLine("id nama kategori harga");
while ((str = sr.ReadLine()) != null)
{
int stringStartPos = str.IndexOf(':');
strArray = str.Split(new string[] { ":" }, StringSplitOptions.None);
for (int i = 0; i <= strArray.Length - 1; i++)
{
System.Console.Write(strArray[i] + "\t");
}
Console.WriteLine();
}
sr.Close();
fs.Close();
}
Console.WriteLine("DATA");
Console.WriteLine("id menu = " + strArray[0]);
Console.WriteLine("nama menu = " + strArray[1]);
Console.WriteLine("kategori = " + strArray[2]);
Console.WriteLine("harga = " + strArray[3]);
Console.WriteLine("------------------------------");
file.Close();
8
IMPLEMENTATION
file.Close();
}
StreamReader sr = File.OpenText(@"D:\data.txt");
while ((strOldText = sr.ReadLine()) != null)
{
if (!strOldText.Contains(cari))
{
n += strOldText + Environment.NewLine;
}
}
sr.Close();
File.WriteAllText(@"D:\data.txt", n);
}
9
IMPLEMENTATION
replacefile(barisganti, newbaris);
Console.Clear();
Console.WriteLine("data berhasil diubah");
bacafile();
}
case "2":
strSearch = isi[3];
Console.Write("masukan harga baru : ");
strReplace = Console.ReadLine();
newdata = isi[0] + ":" + isi[1] + ":" + isi[2] + ":" + strReplace;
break;
}
return newdata;
}
10
IMPLEMENTATION
11
IMPLEMENTATION
case "2":
objAkses.bacafile();
Console.ReadLine();
break;
case "3":
objAkses.cariisifile();
Console.ReadLine();
break;
case "4":
objAkses.editdelimiter();
Console.ReadLine();
break;
case "5":
objAkses.hapusisifile();
Console.ReadLine();
break;
}
Console.WriteLine("kembali ke menu[Y/T]?");
lagi = Console.ReadLine();
}
}
}
}
12
INTERFACE DESIGN FOR RESTAURANT
APPLICATION
13
INTERFACE DESIGN FOR RESTAURANT
APPLICATION
Lihat Data Menu
14
INTERFACE DESIGN FOR RESTAURANT
APPLICATION
Cari Data Menu
15
INTERFACE DESIGN FOR RESTAURANT
APPLICATION
Ubah Data Menu
16
INTERFACE DESIGN FOR RESTAURANT
APPLICATION
Hapus Data Menu
17
CONFIGURATION
Hardware: MSI i7-2600 CPU 3,40 GHz, Nvidia Geforce GTX 750 Ti, Ram 8 GB
18