/*MADE BY JAVED KARIM*
*QUESTION 2*/
#include <iostream>
#include <iomanip>
using namespace std;
int main()
cfw_
int nuts, num_bolts,num_washers;
float totalcost;
cout <"Enter the number of nuts
cin > nuts;
: ";
cout < "Enter the number of bolts: ";
cin >

MATH121 Discrete
Mathematics
Self Assessment Conditional Propositions
Self Assessment : Conditional Propositions
Question 1
Suppose j and p are these propositions:
j : you take the job
p : you know how to program
Express in symbols the compound propositio

Start
DISPLAY please enter the temperature
INIT
temp as temperature
INPUT
temp
DISPLAY please enter the humidity level
INIT
humidity as humidity level
INPUT
humidity
IF
SET
temp >= 40
condition = extremely hot
ELSE IF
SET
37<= temp < 40
condition = hot
EL

javed karim
blended learning week 4
Question 1.
A woman can commute to work by train or bus. If she takes the train in the morning, she
takes the bus in the afternoon. If she takes the train in the afternoon, it means she took the
bus in the morning. Duri

Start
DISPLAY Please enter the number of tickets
INIT
quantity as number of tickets
INPUT
quantity
DISPLAY Please enter nationality status (foreigner or local)
INIT
status as nationality status
INPUT
status
DISPLAY
INIT
INPUT
Please enter your age
age as

MATH121 Discrete
Mathematics
Self Assessment Conditional Propositions
Self Assessment : Conditional Propositions
Question 1
Suppose j and p are these propositions:
j : you take the job
p : you know how to program
Express in symbols the compound propositio

/*Miles to Kilomete
conveter*
*
*/
#include <iostream>
using namespace std;
int main()
cfw_
float miles, km;
/promt user to enter miles
cout <"Enter the distance in miles: ";
cin > miles;
km = miles * 1.60935;
cout <endl;
cout <"Distance in kilometer= "

/*MADE BY JAVED
KARIM*
*QUESTION
1*/
#include <iostream>
#include <iomanip>
using namespace std;
int main()
cfw_
float totalcost, price;
int quantity;
cout < "Enter the price per unit of a product: ";
cin > price;
cout < "Enter the quantity ordered: ";
ci

/* calculate the slices of pizza*
*/
#include <iostream>
using namespace std;
int main()
cfw_
float diameter, radius, area;
int slices;
/promt user to enter diameter in inches
cout < "Enter the diameter of the Pizza: ";
cin > diameter;
radius = diameter /

aLab Exercise: Week 3
Instruction: Perform the following in the command prompt. Write your own
remarks and understanding, and upload it in moodle.
Display the ARP table
List the command(s) used:
arp -a
Observe the ARP table and write your remarks.
arp tab

CSCI103 Algorithms and Problem Solving
Tutorial 1 (1% of Final Coursework)
February Session 2016
Objectives:
The recognition of invariants is an important problem-solving skill, possibly the
most important. This tutorial will help students practice the sk

Supplementary Reading Self Assessment Conditional Propositions
The implication p q is true unless p is true and q is false. This is shown in the following truth
table. In the implication p q, p is called the hypothesis and q the conclusion.
p
T
T
F
F
q
T