57.3k views
2 votes
Write structured pseudocode to show the following: when you are on time for work you have time to buy coffee

1 Answer

3 votes

Answer:

If( on_time == True) {

print("Coffee")

} else {

print("No Coffee")

}

Step-by-step explanation:

Step 1 evaluate with a boolean variable if you are on time

If( on_time == True) {

Step 2 if true you have coffee

print("Coffee")

Step 3 if false you have not coffee

print("No Coffee")

User Alex Netkachov
by
5.3k points