0% found this document useful (0 votes)
3 views2 pages

Math 4

Uploaded by

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

Math 4

Uploaded by

rutic.setif
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

math .

v2
2+1= 3
5+6=67
8+3+3+3+3+3+3+3+3+3+3+3+3+3+3+3= 6777777777777
mango sigma king
BEGIN

DISPLAY "Welcome to the your Destination Advisor!"

// INPUT STATEMENTS

ASK user for their budget

STORE budget as an integer using int()

ASK user for preferred climate (hot, cold, mild)

STORE climate as a string

ASK user for preferred activity (adventure, relaxing, sightseeing)

STORE activity as a string

// DECISION STATEMENTS

IF budget > 1000 AND climate == "hot":

destination = "Abu Dhabi"

ELIF climate == "cold" OR activity == "sightseeing":

destination = "Norway"

ELIF budget < 300 AND NOT (activity == "adventure"):

destination = " A nearby beach town "

ELSE:

destination = "A mall”


// OUTPUT STATEMENTS

DISPLAY "Your budget: " + str(budget)

DISPLAY "Preferred climate: " + climate

DISPLAY "Preferred activity: " + activity

DISPLAY "Recommended destination: " + destination

END

676767676767676767767676776767
mango

You might also like