Write a script that takes in three integer numbers from user

Assignment Help Python Programming
Reference no: EM132356951

Problems

1. Write a script that takes in three integer numbers from the user, calculates, and displays the sum, average, product, smallest, and largest of the numbers input.

a. You cannot use the min() or max() functions, you must provide the logic yourself

b. The calculated average must be displayed as an integer value (ex. If the sum of the three values is 7, the average displayed should be 2, not 2.3333)

2. Write a script that calculates the squares and cubes of the integers from 0 to 10, printing the results in a table format.

3. Write a script that takes in a single number of exactly five (5) digits from the user and prints each individual digit on the same line separated from one another by exactly four (4) spaces.

You will need to make sure that the user's input is exactly five (5) digits in length however and output a message indicating when it is either too long or too short.

4. Write a script that requests an integer number from the user which will determine the number of rows output in a table. Then, use a loop to create the table in following example (the number of rows will be determined by the user's input).

Write a simple number guessing game. The game will generate a random number between 1 and 10, the prompt the user to input a number between 1 and 10. Keep prompting them until they get the number correct, counting the number of guesses until they get it correct. When they finally get it, give them a congratulatory message along with how many guesses it took them. Make sure your grammar is correct, just in case they get it in a single guess.

Now we will create a modified version of the game you just had the user play. Now we will limit the number of guesses they can make to four (4). If they get it right, then display the messages from the original game. If not, then give them a game over message and encourage them to play again.

Reference no: EM132356951

Questions Cloud

Write the recursive function which checks the order property : A min-heap is a binary tree whose order property is that every node is strictly smaller than any of its childern. Write the recursive function is_min_heap.
China-russia relations : As a rule, students should avoid choosing a topic about current or future events and making the Paper overly complicated.
Introduce two relevant tourism related discussion papers : MKT01760 Tourism Planning Environments Assignment - Critique & Comparison of Two Discussion Papers, Southern Cross University, Australia
Planning oral briefings : Planning Oral Briefings. describe one key action that you would have taken to improve the outcome of each. Defend your proposed action,
Write a script that takes in three integer numbers from user : Write a script that takes in three integer numbers from the user, calculates, and displays the sum, average, product, smallest, and largest.
Discuss the type of power-personal or position : Identify and discuss the type of power - personal or position - that John and Nancy are exhibiting.
Draw er diagrams for the following scenario using ms visio : Each semester, each student must be assigned an adviser who counsels students about degree requirements and helps students register for classes.
Multimodal personal narrative : Multimodal Personal Narrative - Develop a multimodal document to both visually illustrate and verbally express a personal transformation.
Garnered about international business perspectives : What are two take aways that you might have garnered about international business perspectives. They can include the following:

Reviews

Write a Review

Python Programming Questions & Answers

  Create an html web document that displays the results

Search for and download a photograph of a jackrabbit. Create an HTML Web document that displays the results and plays the blended WAV document that you created in Topic 5. Add a headline "Mythological Jackalope Discovered!"

  Fill in the python code

Fill in the Python code to play Tic Tac Toe. I won't award points unless it runs succesfully. # Tic-Tac-Toe Game def drawBoard(board): # Draws the board using the list of numbers print(" ") print(" ",board[0]," | ",board[1]," | ", board[2]) print("--..

  Create a custom python module

Write a program named program51.py that defines a value-returning function named cuber that returns both the surface area and volume of a cube. A cube is a rectangular prism with all sides equal.

  Create a module currency which includes the functions

You are having a problem with writhing this code. Create a module currency, which includes the following three functions that do currency conversions.

  Write a program that generates hundred random numbers

In both Visual Logic and Python languages, write a program that generates 100 random numbers between 0 and 10. Print out the entire list of numbers generated.

  Write the function that draws car image with turtle graphics

Write the function draw_car that draws, with Turtle graphics, the car from the image that you can find at the end of the homework.

  Calculate the accuracy of your linear classifier

Plot X,Y and the decision boundary. Make sure that you use a good plotting technique so that it is easy to distinguish which datapoint is X and which is Y. Calculate the accuracy of your linear classifier.

  Creates and returns a tuple containing details of employee

CE151 - creates and returns a tuple containing details of the employee specified by the string. The string should be assumed to have the format

  Relation to the linear regression and the dataset

Build the in relation to the gradient boost tree and the dataset - Select a dataset (other than the example dataset given in section 3)

  Python script that reads and analyses ice cream data file

ICT702 - Data Wrangling - Read data from real sources and wrangle it into the form you need - compare sales in the five different regions

  Enter an integer for the base of the power

This assignment requires one file containing a main function and a recursive function named power.

  How many times each word has occurred in the text file

The values in this dictionary should be a count of how many times each word has occurred in the text file. Second, add the word into a data structure that is keeping track of word information for the completion process.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd