Mini Project Flowchart

  • November 2019
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Mini Project Flowchart as PDF for free.

More details

  • Words: 232
  • Pages: 2
START

PRINT "WHO WANTS TO BE A MILLIONAIRE?!"

LET total = 0 LET safe1 = 1000 LET safe2 = 32000

READ question$, chA$, chB$, chC$, chD$, answer$

PRINT question$ PRINT chA$ PRINT chB$ PRINT chC$ PRINT chD$ NEXT question% INPUT "Answer:", reply$ ELSE

IF

reply$ = answer$ THEN

PRINT "Yes, it's correct"

PRINT "Sorry, you've got wrong answer, see ya!"

C

SELECT CASE question% CASE 1: total = total + 100 CASE 2: total = total + 100 CASE 3: total = total + 100 CASE 4: total = total + 200 CASE 5: total = total + 500 CASE 6: total = total + 1000 CASE 7: total = total + 2000 CASE 8: total = total + 4000 CASE 9: total = total + 8000 CASE 10: total = total + 16000 CASE 11: total = total + 32000 CASE 12: total = total + 61000 CASE 13: total = total + 125000 CASE 14: total = total + 250000 CASE 15: total = total + 500000 END SELECT

A

B

A

C total = safe1 OR total = safe2 THEN

B

No

IF

INPUT "Do you want to continue? (Y or N)"; Continue$

Continue$ = "N" THEN

Yes

IF

total = 1000000 THEN

IF

PRINT "Hang on... One million... Congratulations!!! You've won the game! Sorry, there's no real money. :-p"

PRINT "Your total is..." PRINT "$"; total

END

No

Related Documents

Mini Project Flowchart
November 2019 8
Mini Project
April 2020 15
Mini Project
June 2020 13
Flowchart
June 2020 42
Flowchart
October 2019 56
Flowchart
June 2020 44