0% found this document useful (0 votes)
64 views4 pages

Ass 1 3 PDF Free

Ten young men agreed to purchase a gift worth Php 10,000 for their idol Jessica Sanchez, even if some dropped out. A flowchart and pseudocode were created to input the number of dropouts from 0-9, and output how much more each remaining man must contribute. Another flowchart and pseudocode took an employee's salary as input, calculated the 15.5% increase including retroactive pay for 2 months, and output the new salary and balance owed. A final flowchart and pseudocode were made to input values for variables A, B, C, D, then display their values in a loop from A to B to C to D and back to A.

Uploaded by

guitar eithan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
64 views4 pages

Ass 1 3 PDF Free

Ten young men agreed to purchase a gift worth Php 10,000 for their idol Jessica Sanchez, even if some dropped out. A flowchart and pseudocode were created to input the number of dropouts from 0-9, and output how much more each remaining man must contribute. Another flowchart and pseudocode took an employee's salary as input, calculated the 15.5% increase including retroactive pay for 2 months, and output the new salary and balance owed. A final flowchart and pseudocode were made to input values for variables A, B, C, D, then display their values in a loop from A to B to C to D and back to A.

Uploaded by

guitar eithan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

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

You might also like