Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

Python please, simple program nothing fancy. Please show screenshots of code with indents and running. Topics: class, method, object instantiation, inheritance, print Problem Statement In

Python please, simple program nothing fancy. Please show screenshots of code with indents and running. image text in transcribed
Topics: class, method, object instantiation, inheritance, print Problem Statement In this assignment, you will design one child class MountainBke of a parent class Bicyele. The purpose of this lab is to gain experience in python's basic inheritance Class Definition: Data type Gear number includes 1 float Method geat, speed Initialize the instance applyBrake Decrease the speed by speedUp Increase the speed by increment variable Attribute name/Instance variables Data type Description float float in mile per hour ht of the seat in cm string Returns the curent information setneight You need to create two objects 'm1 and "m of "MountainBke class. Sample code has been provided in the template file Sample output No of gear: Current speed 10 Current seat height 100 Current seat height No of gear: 2 Current speed: 5 Current seat height 76

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions