Answered step by step
Verified Expert Solution
Question
1 Approved Answer
3 101 - Vaughan's Rocket Company Part 1- Writing a program. The first program of the semester is very simple. We're keeping the problem simple
3 101 - Vaughan's Rocket Company Part 1- Writing a program. The first program of the semester is very simple. We're keeping the problem simple so you can focus on learning the mechanics of writing a program, saving your program file, etc., and not have to spend much time on the problem-solving part. The first program is basically a demonstration that you can get some input from the user into your program, do something with it, and print a result. Deliverables . Upload your source code (px) file by Feb 3rd. Be sure to test your input values well before turning it in. Don't lose points for silly mistakes. Program is worth 70 points of this assignment. Make sure you comment the top of your program with your name, class and program #, as well as the creation date and the date due 70 points Vaughan's Rocket company has 3 different rocket configurations, Octavia, Morae, and the Dunst. Some of them share the same components. We want a program that can find how many of each rocket were launched in a year and total all the different components. Part 2: How many things can go wrong For part 2 of the assignment, open an interpreter window and a text file (or Word or OpenOffice document). As we saw in class, when you type something at the interpreters prompt that isn't valid Python, you get an error message (which IDLE displays in red). t starts with Traceback (most recent call last' and ends with a one-line summary describing the type of er (Syntax error, Rockets 4 small fuselage sections 1 large fuselage Your assignment is to come up with code snippets (a line or two of code) that produce 10 different types of errors (10 different labels on the last line). For each, report: The line or 2 of code that produces the error, the type of error it produces, and (based on looking at the code and reading the error message) a brief statement of why this caused an error. To get you started, here's your first one: 250,000 kg fuel 1 small fuselage sections 150,000 kg fuel Produces: NameFuar You've been asked to wite them a Python program that takes the number of launches of each and calculates how many of each component are required. Make sure you test your program Because: No variable called 'a has been declaredidefined, so the interpreter doesn't know what hat is. Deliverable Your text file or office document with 10 different errors in the above format. This part of the assignment is worth 30 points (3 points for each of 10 errors) And yes, you can use the above example for an easy point. (Dont say I never give students a breakl) Upload this file along with the other part of the assignment by Sunday, Feb 3 Sample Program How many Octavia rockets were launched?- 1 How many Manae rockets were launched? -> 2 How many Dunst rockets were launched?4 Components needed for this launch schedule Small Fuselage... 8 Large Fuselage.. 3 1488009 kg fuel Specification You can assume the user will enter only valid numeric values. You do not have to worry about incorrect or malicious input in this program Remember to document your code
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started