Skip to content

recanman/ProgrammingMeritBadge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ProgrammingMeritBadge

Programming merit badge requirements.

How To Run:

For requirement 5a:

To run the 2.7.10 version, run the following command in Terminal:
./run-legacy
To run the 3.710 version, run the following command in Terminal:
./run

For requirement 5b:

To run the program, run the following command in Terminal:
./build

This will build and run the program. The run file is named run.

Then, when you want to run the program (after the time where it runs it in build), use this command:
./run

This will run the program.


For requirement 5c: Open this file.

Requirement 5A

Sample output for Python 2.7.10:

./run-legacy
This is the original program.
Enter next temperature in degrees Farenheight (F):101
('Temperature in degrees C is:', 38)
Remember to hydrate!
Input another?0
This is the for the first requirement.
Enter next temperature in degrees Farenheight (F):-10
('Temperature in degrees C is:', -24)
Pack warm clothes!
Input another?0
This is the for the second requirement.
Enter next temperature in degrees Farenheight (F):-30
('Temperature in degrees C is:', -35)
Pack long underwear!
Input another?0
This is the for the third requirement.
Enter next temperature in degrees Farenheight (F):130
('Temperature in degrees C is:', 54)
Remember to hydrate!
Maybe you should reconsider going on this trip.
Input another?0
This is the for the fourth requirement.
What is your name?Bob
Hello, Bob
Bob, enter next temperature in degrees Farenheight (F):-1
('Bob, the temperature in degrees C is:', -19)
Hey Bob, Pack long underwear!
Bob, would you like to input another?0
This is for the final requirement.
Enter money in USD ($) > 100000
This is the amount of money in EURO'S: 87000.0

Sample Output for Python 3.710:

./run
This is the original program.
Enter next temperature in degrees Farenheight (F):72
Temperature in degrees C is: 22.22222222222222
Input another?0
This is the for the first requirement.
Enter next temperature in degrees Farenheight (F):100
Temperature in degrees C is: 37.77777777777778
Input another?0
This is the for the second requirement.
Enter next temperature in degrees Farenheight (F):12  
Temperature in degrees C is: -11.11111111111111
Input another?0
This is the for the third requirement.
Enter next temperature in degrees Farenheight (F):-4
Temperature in degrees C is: -20.0
Pack long underwear!
Input another?0
This is the for the fourth requirement.
What is your name?Bob
Hello, Bob
Bob, enter next temperature in degrees Farenheight (F):124   
Bob, the temperature in degrees C is: 51.111111111111114
Hey Bob ,Remember to hydrate!
Bob, would you like to input another?0
This is for the final requirement.
Enter money in USD ($) > 72                               
This is the amount of money in EURO'S: 62.64
Thank you!

Requirement 5B

Sample Output for Guess My Number

./run
Choose a number between 1 and 10
> 7
That was not correct. You have 2 guesses left.
Choose a number between 1 and 10
> 3
That was not correct. You have 1 guess left.
Choose a number between 1 and 10
> 9
You guessed the number correctly!

About

Programming merit badge requirements.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published