dim travelfootprint, footprint, traveldomestic, traveltime, totalemissions, planefootprint, loopdiet, travelemissions, looptravel, dietfootprint, travel1250, travel2500, travel5500, travel9000, trave117500 as decimal
Console.writeline("Our planet is in an absolute state of emergency. Ranging from the climate crisis to the ecological crisi, we are running out of time to crush this enviromental catastrophe. (Press enter to continue).")
Console.writeline("The UN has given us a deadline less than 12 years away to save the world from this climate emergency.")
Console.writeline("Take your first steps! Discover the part you currently play in the deteriation of our planet and how you can help and be the part of the solution!")
console.writeline("Let's see how big your enviromental footprint is! please press enter")
Console.writeline("How would you describe your dietry lifestyle? a) Vegan b) Vegitarian c) No beef d) Meat very rarely e) Meat in some meals f) Meat in every meal, please enter the letter associated with your answer")
diet = console.readline()
Console.writeline("Please type in the lower-case letter associated with the answer i.e if vegan, enter a (press enter to return to the question)")
console.writeline("What is your main form of transport for daily travel? a) foot/bike/public transport b) motorbike c) car")
travel = console.readline()
console.writeline("Please type in the lower-case letter associated with the answer i.e motorbike, enter b (press enter to return to the quesion)")
loop until looptravel < 3
console.writeline("How far do you travel with your main mode of trasnport (in km)?")
traveltime = console.readline()
travelemissions = traveltime*travelfootprint
loop until travelemissions >=0
Console.writeline("How many one way flights have you made to these certain distances from the united kingdom? Please enter a number for each distance, if 10 or more, smiply put '10+'")
console.writeline("If you've traveled to China for example, the return flight counts as a second flight; therefore, you'd enter '2' for going there and back")
console.writeline("a) domestic uk/ireland")
traveldomestic = console.readline()
loop until traveldomestic > -1
planefootprint = planefootprint + 0.05*traveldomestic
console.writeline("b) up to 1250 km away")
travel1250 = console.readline()
loop until travel1250 > -1
planefootprint = planefootprint + 1.36*travel1250
console.writeline("c) up 2500 km away")
travel2500 = console.readline()
loop until travel2500 > -1
planefootprint = planefootprint + 1.51*travel2500
console.writeline("d) up to 5500 km away")
travel5500 = console.readline()
loop until travel5500 > -1
planefootprint = planefootprint + 1.88*travel2500
console.writeline("e)up to 9000 km away")
travel9000 = console.readline()
loop until travel9000 > -1
planefootprint = planefootprint + 2.30*travel9000
console.writeline("f) up to 17500 km away")
trave117500 = console.readline()
loop until trave117500 > -1
planefootprint = planefootprint + 14.23*trave117500
totalemissions = planefootprint + dietfootprint + travelemissions
select case dietfootprint
console.writeline("from your dietary question results you seem to like meat. Try reducing your meat intake as much as you can. The meat industry is one of the main polluters of CO2, by eating meat, you're supporting them to emit more...")
console.writeline("from your commute question results you seem to drive a car... Try to switch to electrical cars or even better... public transport!")
select case planefootprint
console.writeline("from your plane travel results you seem to travel quite a bit by plane... try switching from plane to train for domestic commute and perhaps taking multiple short distance flights with train commute inbetween!")
console.writeline("now... for your results...")
select case totalemissions
console.writeline("Your average carbon footprint is " & totalemissions & ". This has surpassed the avergae CO2 emissions per capita of 5.7 tonnes in the United Kingdom....")
console.writeline("that is not not very good.")
console.writeline("do you want to re-do this test? if so enter y, if not enter any other key")
repeat = console.readline()
console.writeline("Your average carbon footprint is " & totalemissions & " which is below the United Kingdom's average CO2 emissions per capita of 5.7 tonnes!")
console.writeline("Keep it up, your help lifestyle is saving the planet! Now, spread awarness, share this program to friends and family and get them aware! (press enter)")
console.writeline("do you want to re-do this test? if so enter y, if not enter any other key")
repeat = console.readline()