Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

python Suppose you are a bike shop owner who put together bikes free spare parts. Your customers come to you with parts they've legitimately) found

image text in transcribedpython
Suppose you are a bike shop owner who put together bikes free spare parts. Your customers come to you with parts they've legitimately) found in their pares, from scrap metalhes, ceand they ask you to build them all the bikes you can make with the parts they give you You build the bikes, charge them a big pile of money for the privilege, and keep the leftover parts for yourself It takes the following parts to create one bicycle 2 wheels 1 frame 50 links to make a chain) Write a Python program to calculate how many bikes you can make from the parts the gives you You may assume they always give you good utic all whole numbers, and gives. Your output can print simply "bikes" or "bikes each time - don't worry about singular plural Before you begin coding - write text cues! In the comments at the top of your thon fil e s that you came up with Again, make you have a few edge cases, like you can't mak e s this a lot of flowers, you have links to make an absolute ton of bikes but only a few wheels and frames, etc Helpful Abs Python has a built-in minimum function which gives you the minimum of several numbers. Try using it with a stalement like this bikes possible min(3, 5, 1) the variable bikes possible will have the value 1 Requirements: For full credit, you must Prompt the user for the # of wheels # of frames they have, and of links they have. You can use any wording you like, but you must prompt them for the information in that order so we can test your solution. Report the total number of bikes you can make, and the leftover parts. Save all of these inputs in well-named variables of correct data types. As with all CS5001 programs, we expect user interaction to be friendly and informative. Don't give the user an option that doesn't exist, and make sure they always know what to do next AMAZING points: These final no points may be awarded if you we completed the rest of the assignment perfectly and blown way with... Do not use any literals in your main function. Any values that need to be saved are in constants variables, initialized at the top of your program, above main. Use only one print statement for the final output, but without going over 80 column-width in your Python code. Look at the very bottom of the style guide for an example. Here's an example run of the program: RESTART: /Users/Laneystrange/Documents/Northeastern kes.py How many wheels do you have? How many frames do you have? How many links do you have? 150 All totalled up, you've got 3 bikes coming I'm keeping the leftovers for myself Leftover: 7 Wheels 1 frames @ links

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

SQL Database Programming

Authors: Chris Fehily

1st Edition

1937842312, 978-1937842314

More Books

Students also viewed these Databases questions

Question

What does stickiest refer to in regard to social media

Answered: 1 week ago