Design a Racing Car that can be used in a game and the Car must be able to be started, run, and stopped in Eclipse along with a UML. 1. The Car must have an Engine and Tires. 2. The Car must have four Tires. 3. The Car must have one Engine. 4. The Engine must be able to be started and stopped. 5. Before the Engine can be started all Tires must have at least 32 psi. 6. The Car must be able to be started, running between 1 and 60 mph, stopped, and also be able to be restarted.
class Car:
Engine=1
tyres=4
speed=0
def __init__(self, Engine, tyres, speed):
self.Engine = Engine
self.tyres = tyres
self.speed = speed
#methods
def start(self,speed,tyre_pressure):
if int(tyre_pressure)>=32:
self.speed +=int(speed)
if int(self.speed)>60:
self.speed=60
print 'Car running at speed:'+str(self.get_speed())
print
'-----------------------------------------------------------'
print 'Maximum speed achieved. cannot increase more.'
print
'-----------------------------------------------------------'
else:
print 'Car started at speed:'+str(self.get_speed())
print
'-----------------------------------------------------------'
else:
print 'Increase air pressure in tyres'
print
'-----------------------------------------------------------'
def stop(self):
self.speed=0
def get_speed(self):
return self.speed
def main():
Engine = raw_input('Enter the car Engines: ')
tyres = raw_input('Enter the car Tyres: ')
speed = 0
mycar = Car(Engine, tyres, speed)
#Start
run=int(raw_input("Enter 1 if you want to run the car: "))
print('*************************************************************')
if (run==1):
while(True):
speed=raw_input('Increase speed by :')
tyre_pressure=raw_input('Enter tyre pressure: ')
print('*************************************************************')
mycar.start(speed,tyre_pressure)
print "Enter 0 if you want to stop the car or 1 to continue."
print('*************************************************************')
run=int(raw_input())
if run==0:
break
else:
print('Car is steady')
print('*************************************************************')
mycar.stop()
print 'The current speed after brake is: ', mycar.get_speed()
print
'-----------------------------------------------------------'
#Call the main function
main()

Design a Racing Car that can be used in a game and the Car must be...
Design a Racing Car that can be used in a game and the Car must be able to be started, run, and stopped in Eclipse along with a UML. 1. The Car must have an Engine and Tires. 2. The Car must have four Tires. 3. The Car must have one Engine. 4. The Engine must be able to be started and stopped. 5. Before the Engine can be started all Tires must have at least 32 psi. 6. The...
For a new type of tire, a racing car team found the average distance a set of tires would run during a race is 161 miles, with a standard deviation of 14 miles. Assume that tire mileage of each set is independent and follows a Normal model Give answers in decimal form rounded to four decimal places as needed. 1 If the team plans to change tires twice during a 500-mile race, what is the expected value and standard deviation...
Problem 2 You are the owner of a car racing team competing in the Formula 1 championship. The cars of your team require two different types of tires: (1) wet tires, which are suitable for driving under heavy rain conditions and (2) dry tires, which work better in sunny days. The number of tires needed by your team for each of the seven races of the championship are listed in Table 3 Type/Race 234567 Wet tires 30 20 40 55...
(C++) The CSIT Racing Club is a group that runs amateur car racing events throughout the US. In This project, write a program that will help the club determine the winner of their Fall Rally Race. You will need to determine each racer’s average time and identify the first place finisher. An input file with race information contains records of all the laps run by each driver. The record for each driver includes the number of the car the driver...
Dr. C. #2. (PHYS 121 engineering design exercise) You have seen why cars inherently accelerate quicker in a straight line and have better fuel mileage than an SUV with the same engine; it's because of air drag and the smaller frontal area and better drag coefficient of the car. Now let's think about why cars handle (take turns, change lanes and make other quick maneuvers) better than an SUV. We'l1 simplify our analysis by considering a vehicle of mass M...
can someone help me with this C++ problem write your game() function and 3+ functions that simulate the game of Jeopardy Dice according to the following game mechanics and specifications. Game Mechanics There are two players: the user and the computer, who alternate turns until one of them reaches 80 points or higher. The user is always the first player and starts the game. If any player reaches 80 points or more at the end of their turn, the game...
Java 2 Final Project A young entrepreneur has decided to start an online exotic car sales company named Exotic Moves and he’s contacted you to build the company’s website. You have been given the following requirements and will need to create a prototype with JavaFX: The company sells 5 brands of exotic cars (Aston Martin, Ferrari, Lamborghini, McLaren, and Maserati). The website should allow a user to see the total inventory of cars or filter their view based on certain...
When you purchase a car, you may consider buying a brand-new car or a used one. A fundamental tradeoff in this case is whether you pay repair bills (uncertain at the time you buy the car) or make loan payments that are certain. Consider two cars, a new one that costs $15,000 and a used one with 75,000 miles for $5,500. Let us assume that your current car’ s value and your available cash amount to $5,500, so you could...
Written in Python In this lab, you are to build a trivia game. The game should present each question – either in order or randomly – to the player, and display up to four possible answers. The player is to input what they believe to be the correct answer. The game will tell the player if they got it right or wrong and will display their score. If they got it right, their score will go up. If they got...
PLEASE INCLUDE SAW-PROMPTS FOR 2 PLAYERS NAMES(VALIDATE NAMES). SHOW MENU (PLAYER MUST SELECT FROM MENU B4 THE GAME STARTS 1=PLAY GAME, 2=SHOW GAME RULES, 3=SHOW PLAYER STATISTICS, AND 4=EXIT GAME WITH A GOODBYE MESSAGE.) PLAYERS NEED OPTION TO SHOW STATS(IN A DIFFERNT WINDOW-FOR OPTION 3)-GAME SHOULD BE rock, paper, scissor and SAW!! PLEASE USE A JAVA GRAPHICAL USER INTERFACE. MUST HAVE ROCK, PAPER, SCISSORS, AND SAW PLEASE This project requires students to create a design for a “Rock, Paper, Scissors,...