Guess the number! You will make program that will ask the user to guess a number between 1 and 10.

Guess the number!

You will make program that will ask the user to guess a number between 1 and 10. The

pseudocode is below. Be sure to import random at the beginning of your code and use a comment block explaining what your program does

#Guess the number week 4

#Name:

#Date:

#Random number, loop while true

#ask user for number.

#if number is too high or too low, tell user, if they guessed it break out of loop

Display “Welcome to my Guess the number program!”

random mynumber

while True

Display “Guess a number between 1 and 10”

Get guess

if (guess<mynumber)

Display “Too low”

else if (guess>mynumber)

Display “Too high”

else if (guess==mynumber)

Display “You guessed it!”

 

When you run your program the result should be something like this:

Welcome to my Guess the number program!

Please guess a number between 1 and 10: 5

Too high

Please guess a number between 1 and 10: 4

Too high

Please guess a number between 1 and 10: 3

Too high

Please guess a number between 1 and 10: 2

You guessed it!

 
Looking for a Similar Assignment? Order now and Get 10% Discount! Use Coupon Code "Newclient"

This question was created from CIS115_Week 5_Lab.docx https://www.coursehero.com/file/34328155/CIS115-Week-5-Labdocx/ 34328155-264965.jpeg ATTACHMENT PREVIEW Download attachment 34328155-264965.jpeg 34328155-264965.jpeg – – – Input Chevy Times _ _^ Enter time for Chevy Car 1 : 5 . 4 Enter time for Chevy Car 2 : 7 . 2 Enter time for Chevy Car 3 :` | 4 . 0 Enter time for Chevy Car 4 :` 9 . 1 Enter time for Chevy Car 5 :` 1 5 . 8 Enter time for Chevy Car 6: 3. 9 Enter time for Chevy Car 7 : 6 . 2 Enter time for Chevy Car 8: 8 . 1 – – – Input Ford Times – – Enter time for Ford Car 1 : 5 . 8 Enter time for Ford Car 2: 6 .9 Enter time for Ford Car 3 : 3 . 9 Enter time for Ford Car – 4 : 9 . 2 Enter time for Ford Car 5: 5 . 8 Enter time for Ford Car 6 : 3. 8 Enter time for Ford Car 7 : 6. 0 Enter time for Ford Car 8: 8. 5 And the winners are ” Chevy by 0 . 4 sec Ford by 0. 3 sec Ford by 0. 1 sec Chevy by 0 . 1 sec Tie ! Ford by 0 . 1 sec Ford by 0. 2 sec

This question was created from CIS115_Week 5_Lab.docx https://www.coursehero.com/file/34328155/CIS115-Week-5-Labdocx/

34328155-264965.jpeg

34328155-264965.jpeg

– – – Input Chevy Times _ _^
Enter time for Chevy Car 1 : 5 . 4
Enter time for Chevy Car 2 : 7 . 2
Enter time for Chevy Car 3 :`
| 4 . 0
Enter time for Chevy Car 4 :`
9 . 1
Enter time for Chevy Car
5 :`
1 5 . 8
Enter time for Chevy Car 6: 3. 9
Enter time for Chevy Car 7 : 6 . 2
Enter time for Chevy Car 8: 8 . 1
– – – Input Ford Times – –
Enter time for Ford Car 1 : 5 . 8
Enter time for Ford Car 2: 6 .9
Enter time for Ford Car
3 :
3 . 9
Enter time for Ford Car
– 4 : 9 . 2
Enter time for Ford Car 5: 5 . 8
Enter time for Ford Car 6 : 3. 8
Enter time for Ford Car 7 : 6. 0
Enter time for Ford Car 8: 8. 5
And the winners are &quot;
Chevy by 0 . 4 sec
Ford by 0. 3 sec
Ford by 0. 1 sec
Chevy by 0 . 1 sec
Tie !
Ford by 0 . 1 sec
Ford by 0. 2 sec

 
Looking for a Similar Assignment? Order now and Get 10% Discount! Use Coupon Code "Newclient"

 CIS115_Week 5_Lab.docx  Input Chevy Times _ _^ Enter time for Chevy Car 1 : 5 . 4 Enter time for Chevy Car 2 : 7 . 2 Enter time for Chevy Car 3 :` | 4 . 0 Enter time for Chevy Car 4 :` 9 . 1 Enter time for Chevy Car 5 :` 1 5 . 8 Enter time for Chevy Car 6: 3. 9 Enter time for Chevy Car 7 : 6 . 2 Enter time for Chevy Car 8: 8 . 1 – – – Input Ford Times – –

 CIS115_Week 5_Lab.docx

34328155-264965.jpeg

– – – Input Chevy Times _ _^
Enter time for Chevy Car 1 : 5 . 4
Enter time for Chevy Car 2 : 7 . 2
Enter time for Chevy Car 3 :`
| 4 . 0
Enter time for Chevy Car 4 :`
9 . 1
Enter time for Chevy Car
5 :`
1 5 . 8
Enter time for Chevy Car 6: 3. 9
Enter time for Chevy Car 7 : 6 . 2
Enter time for Chevy Car 8: 8 . 1
– – – Input Ford Times – –
Enter time for Ford Car 1 : 5 . 8
Enter time for Ford Car 2: 6 .9
Enter time for Ford Car
3 :
3 . 9
Enter time for Ford Car
– 4 : 9 . 2
Enter time for Ford Car 5: 5 . 8
Enter time for Ford Car 6 : 3. 8
Enter time for Ford Car 7 : 6. 0
Enter time for Ford Car 8: 8. 5
And the winners are &quot;
Chevy by 0 . 4 sec
Ford by 0. 3 sec
Ford by 0. 1 sec
Chevy by 0 . 1 sec
Tie !
Ford by 0 . 1 sec
Ford by 0. 2 sec

 
Looking for a Similar Assignment? Order now and Get 10% Discount! Use Coupon Code "Newclient"

This question was created from CIS115_Week 5_Lab.docx https://www.coursehero.com/file/34328155/CIS115-Week-5-Labdocx/

This question was created from CIS115_Week 5_Lab.docx https://www.coursehero.com/file/34328155/CIS115-Week-5-Labdocx/

34328155-264964.jpeg

34328155-264964.jpeg

Summary
Store the times into arrays called Chevy[ ] and Ford[ ]. Then list the winner of each pair, giving the number of seconds the winner won by. At the end declare which team won based on which team had the most wins. Deliverables 0 A source code Python file.
0 A Word document containing both source code and the screen print of the program outputs. Lab Steps There are eight cars in each team called Chevy and Ford. One car from each team races its opponent on
the drag strip. Read in the racing times for the eight Chevy cars and then read in the times for the eight Ford cars

 
Looking for a Similar Assignment? Order now and Get 10% Discount! Use Coupon Code "Newclient"