You are on page 1of 1

ASSIGNMENT (DUE BY 10.11.

23)
1- Create a table that gives all possible answers for the following logical equations
A AND (B OR C)
NOT (A OR C) AND (A OR B )

2- Write the following equation in computer form.


X = 2Y + 3Z - (Y + Z)/2YZ

3- Evaluate the following equations, given the values A = 18, B = 26, C = 7.


F= (A + B) MOD C F= A + B MOD C

4- Fill in the following table with the variable name and data type needed.

Variable Data
Data Item
Name Type
a. Name of University
b. Name of Student
c. Application Number
d. Number of courses applied for
e. Fees
f. Residential address
g. Phone number
h. Graduate student (Yes/No)
i.Undergraduate student (Yes/No)

5- All discounts at The Fashion Store vary according to the total price of purchase.
Develop a flowchart to print the discount and final price given the total price of
purchase.
The charges are as follows:
a. Over $100: 10%
b. Over $500: 15%
c. Over $1,000: 20%

6- Draw the flowchart for printing R.


R = 250 for S = 4001–8000
R = 100 for S = 1000–400
otherwise R = 75.
S is entered by the user.

You might also like