Restaurant information system (Task project algorithm and programming)

•July 1, 2012 • 1 Comment

It is the duty of our group project, which is about the restaurant information system.

Application is made to facilitate customers in ordering Food and Beverage at a restaurant. Customers do not need to record on paper what they are going to the message. With this application the customer can order simply by entering and selecting the menu. Total payments and the menu lists already exist in this application. Here is a look of our application :

main menu

customer menu

menu list

Order menu

that’s part of the application view, if you want to try it you can download here

And do not forget to fill out the following questionnaire so that we can develop our applications. download the questionnaire here.

 

send the completed questionnaire to the email address kawaii.sofie032 @ gmail.com

thanks 😀

 

 

program to determine whether the matrix is entered or not a square matrix

•April 17, 2012 • Leave a Comment

The following is a program to determine whether the matrix is entered or not a square matrix.

square matrix is a matrix that has the same number of rows and columns.
if column 2 is also 2 rows. if not the same means the matrix is not square
Below is the program output :

output below is not a square matrix because it has 2 columns and 3 rows

Continue reading ‘program to determine whether the matrix is entered or not a square matrix’

Flowchart reverse the words(Iterative-recursive)

•April 17, 2012 • Leave a Comment

 

The following is a flowchart iteratively reverse the words:

 

Continue reading ‘Flowchart reverse the words(Iterative-recursive)’

Reflection Week 7 Algorithms and Programming (array)

•April 17, 2012 • Leave a Comment

Before discussing the matter this week, teachers review the previous meeting of the recursion To see the extent of student understanding of recursion. Our examples are given as follows:

if (b = 1) return a
else
return a + (a, b-1)

 

Continue reading ‘Reflection Week 7 Algorithms and Programming (array)’

Exercises (algorithm of discounting)

•April 16, 2012 • Leave a Comment

This is one example that I took from http://xover4.jkt.3d.x.indowebster.com/download/51/42b182384731a41bffceb903334d20d8.pdf
page 28, about the algorithm of discounting

Algorithm Giving Discounts
{inputted total shopping purchases. 10% discount is given provided that the total expenditure of at least 100,000, -. Algorithms provide the amount of output obtained and the total discount to be paid by the buyer.}

Caesar Chiper Programs (Encrypt – Decrypt)

•April 14, 2012 • Leave a Comment

This program is a program to encrypt a message or word using caesar cipher

mathematical notation
Let: C = ciphertext, P = plaintext, the encryption function mapping P to E, E (P) = C, and D the decryption function mapping C to P, D (C) = P

Substitution tables:
Pi: A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Ci: D E F G H I J K L M N O P Q R S T U V W X  Y Z A B C

With each letter of the alphabet to encode integer as follows: A = 0, B = 1, …. Z = 25, then mathematically caesar cipher to encrypt the plaintext Pi Ci with the rules:
ci = E (Pi) = (Pi + 3) mod 26
and decrypting the ciphertext i be Pi rules: Pi = D (Ci) = (Ci – 3) mod26

Here are examples of c + + Output Program caesar cipher:

for the full program can be downloaded here

Program displays the Fibonacci series of numbers using a loop

•April 14, 2012 • Leave a Comment

Fibonacci sequence is the sequence obtained from the sum of two terms previously.
eg, 1, 1, 2, 3, 5, 8, 13

terms to – n of the Fibonacci sequence is obtained by the formula:
Fibonacci (n) = Fibonacci (n-1) + fibonacci (n-2)
with initial values for n = 1 and n = 2 valuable 1.

The following is the ouput program using c + + programming :

and program details can be downloaded here