You are browsing as a guest. Sign up (or log in) to start making projects!

NASA-Missions

  • 4 Devlogs
  • 3 Total hours

An unofficial project made to store missions to planets/moons in our solar system stored in an excel file. You can also create your own missions too!

Open comments for this post

1h 34m 36s logged

Handling Errors for Input

Today I created options if the user typed in wrong data, they could change it. I also created options if the user typed in something that was not supposed to be typed, an error message would appear.

Program running

  • Now the program runs forever until you type exit
  • The program always clears the terminal when a new question comes and prints “NASA-Missions” at the top
  • I made the program run forever by using while loop

Error Handling

  • When users types in an option not in the options, the program shows an error message
  • If the user types in data, the program asks the user for confirmation. If the user says no, the user can change the data.

Learned

  • Learned about While loops
  • learned about how continue and break work
  • also learned the .lower() method

Took a very long time, and used a lot of if/elif/else statement. You can see in the picture just a glimpse of the hundreds of if/else.

Handling Errors for Input

Today I created options if the user typed in wrong data, they could change it. I also created options if the user typed in something that was not supposed to be typed, an error message would appear.

Program running

  • Now the program runs forever until you type exit
  • The program always clears the terminal when a new question comes and prints “NASA-Missions” at the top
  • I made the program run forever by using while loop

Error Handling

  • When users types in an option not in the options, the program shows an error message
  • If the user types in data, the program asks the user for confirmation. If the user says no, the user can change the data.

Learned

  • Learned about While loops
  • learned about how continue and break work
  • also learned the .lower() method

Took a very long time, and used a lot of if/elif/else statement. You can see in the picture just a glimpse of the hundreds of if/else.

Replying to @jonathanrobin13

0
1
Open comments for this post

23m 56s logged

Created option for Moon

Now you can choose between a planet and a moon. The program asks the user input for these things:

  • moon name
  • mission name
  • gravity
  • extra info

Then this is stored into a dictionary. Then this puts the data into an excel spreadsheet.

Improvements

I still need to ask the user for the distance of the planet/moon from earth. Then I can calculate the fuel needed to get there.

Maybe use SQL for data?

The user of dictionaries helped a lot in this program. Now I fully understand how it works.

Created option for Moon

Now you can choose between a planet and a moon. The program asks the user input for these things:

  • moon name
  • mission name
  • gravity
  • extra info

Then this is stored into a dictionary. Then this puts the data into an excel spreadsheet.

Improvements

I still need to ask the user for the distance of the planet/moon from earth. Then I can calculate the fuel needed to get there.

Maybe use SQL for data?

The user of dictionaries helped a lot in this program. Now I fully understand how it works.

Replying to @jonathanrobin13

0
1
Open comments for this post

30m 37s logged

Created a new project and allowed user to create a new mission and set some key values for the mission.

Created a new project and allowed user to create a new mission and set some key values for the mission.

Replying to @jonathanrobin13

0
1

Followers

Loading…