logo Hurry, Grab up to 30% discount on the entire course
Order Now logo
838 Times Downloaded

Ask This Question To Be Solved By Our ExpertsGet A+ Grade Solution Guaranteed

expert
Dania HasanStatistics
(/5)

619 Answers

Hire Me
expert
Marilyn DruettCriminology
(5/5)

552 Answers

Hire Me
expert
Norman RoxManagement
(4/5)

777 Answers

Hire Me
expert
Vijendra Kumar yadavMathematics
(/5)

811 Answers

Hire Me
Python Programming
(5/5)

Find max and min numbers from three integer numbers using conditional statements. Also, use input().split()for the user inputs

INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS

Find max and min numbers from three integer numbers using conditional statements. Also, use input().split()for the user inputs

Please input three numbers: 9 13 2

MAX: 13

MIN: 2

(2)

● Make a program that determines if given lengths of three line segments can make a triangle or not.

● Input format

L1 L2 L3

● Output format

Yes/No

Please input lengths of three line segments: 3 4 5(enter) Yes

Please input lengths of three line segments: 3 14 5(enter)

No (3)

When nis given by a user input, make a program that displays asterisks like shown below

using a nestedforloop and print("*", end="")

Please input a number? 7(enter)

*

**

***

****

*****

******

*******

When nis given by a user input, make a program that displays asterisks like shown below using a nestedforloop and print("*", end="")

Please input a number? 7(enter)

*

**

***

****

*****

******

*******

(5)

When nis given by a user input, make a program that displays asterisks like shown below using a nestedforloop and print("*", end="")

Please input a number? 7(enter)

*******

******

*****

****

***

**

*

(6)

When nis given by a user input, make a program that displays asterisks like shown below using a nestedforloop and print("*", end="")

Please input a number? 5(enter)

*

***

*****

*******

*********

When nis given by a user input, make a program that displays a multiplication table like shown below using a nestedforloop.

Please input a number? 5(enter) 1 2 3 4 5

2 4 6 8 10

3 6 9 12 15

4 8 12 16 20

5 10 15 20 25

(8)

Develop a rock-paper-scissors game. Please note that the program allows player to repeat the game using a whileloop.

Start Game

1. Rock

2. Paper

3. Scissors

What do you want to throw? 3(enter) Computer:Paper vs You:Scissors

You win!!!

Do you want to play again(y/n)? y

1. Rock

2. Paper

3. Scissors

What do you want to throw? 2(enter) Computer:Rock vs You:Paper

You win!!!

Do you want to play again(y/n)? n Thank you!!!

(9)

John goes to a bakery to buy cookies and tries to calculate the shortfall if the current money is not enough. The price of one cookie is K, the number of cookies to buy is N, and the current amount of money is M. If he calculates the shortfall (S), his mother will pay the money (shortfall).

For example, the price of one cookie is $3, the number of cookies bought is 4, When he has $10, the money he needs is $2. If the price of one cookie is $2.50, the number of cookies to buy is 2, and he has $1.50, the money that his mother has to pay is $3.50. If the price of one cookie is $0.20, the number of sweets to buy is 6, and he has $1.50, the money he needs from his mother is $0.

Input & Output Format

K= the price of one cookie

N= the number of cookie

M= the amount of money John has

S= the amount of money he will ask his mother to pay

(K, N, and M are non-negative)

Example Input

3

30.00 4 100.00

2.50 2 1.40

2.00 6 12.00

Output

20.00

3.60

0.00

(10)

Define a function that converts US Dollar to Mexico Peso. The function gets a double value as an argument (dollar)

The function returns a double value (Peso) after a conversion.

After defining the function, call the function and display the result of the conversion. The user inputs a US dollar value using input().

Use Today’s exchange rate.

For example,

US Dollar: $100.00 (enter)

(5/5)
Attachments:

Expert's Answer

838 Times Downloaded

Related Questions

. The fundamental operations of create, read, update, and delete (CRUD) in either Python or Java

CS 340 Milestone One Guidelines and Rubric  Overview: For this assignment, you will implement the fundamental operations of create, read, update,

. Develop a program to emulate a purchase transaction at a retail store. This  program will have two classes, a LineItem class and a Transaction class

Retail Transaction Programming Project  Project Requirements:  Develop a program to emulate a purchase transaction at a retail store. This

. The following program contains five errors. Identify the errors and fix them

7COM1028   Secure Systems Programming   Referral Coursework: Secure

. Accepts the following from a user: Item Name Item Quantity Item Price Allows the user to create a file to store the sales receipt contents

Create a GUI program that:Accepts the following from a user:Item NameItem QuantityItem PriceAllows the user to create a file to store the sales receip

. The final project will encompass developing a web service using a software stack and implementing an industry-standard interface. Regardless of whether you choose to pursue application development goals as a pure developer or as a software engineer

CS 340 Final Project Guidelines and Rubric  Overview The final project will encompass developing a web service using a software stack and impleme