1. Ten young men agreed to purchase a gift worth Php 10,000.00 for their idol: Jessica Sanchez.
In addition, they
agreed to continue with their plan even at least one of them drop out. Create a flowchart, a pseudocode that
would input the number of men who dropped out (assume 0 to 9 only) and output how much more will each
have to contribute toward the purchase of the gift.
FLOWCHART: PSEUDOCODE:
TCost, Refused, Tpay, Addpay are numeric.
Begin
TCost = 1000
Refused = 0
Tpay = 0
Addpay = 0
Display “Insert number of drop outs: “
Accept Refused
Tpay = Tcost / (10 – Refused)
Addpay = Tpay – 1000
Dsiplay “Additional P” &Addpay & “for each
member for a total of P” &TPay & “ for the Gift
Contribution.”
End
2. Using Visual Logic. Draw and execute a FCD for Workers at a particular company were given a 15.5% salary
increase. Moreover, the increase was retroactive for 2 months, that is effective two months ago. Create a
flowchart and a pseudocode that takes the employee’s old salary as input and then output the amount of
retroactive of retroactive pay (balance) due the employee and his new salary as well.
FLOWCHART: PSEUDOCODE:
Sal, IncSal, Bal are numeric
Begin
Sal = 0
IncSal = 0
Bal = 0
Display “Please input your salary: “
Accept Sal
IncSal = Sal + (Sal * 0.155)
Bal = (IncSal * 2) – (Sal * 2)
Display “Your Increased Salary is now: “ &IncSal & “. Your balance is: “ &Bal
End
3. C r e a t e a f l o w c h a r t
such that A goes to B, B goes to C, C goes to D and
D goes to A.
FLOWCHART:
PSEUDOCODE:
A, B, C, D are numeric
Begin
A=0
B=0
C=0
D=0
Display “Input value of A: “
Accept A
Display “Input value of B: “
Accept B
Display “Input value of C: “
Accept C
Display “Input value of D: “
Accept D
Display “Value of A: “ &D
“Value of B: “ &A
“Value of C: “ &B
“Value of D: “ &C
End