Write a program that has a conversation with the user

Assignment Help Programming Languages
Reference no: EM131878813

Assignment - Write a program that has a conversation with the user. The program must ask for both strings and numbers as input. The program must ask for at least 4 different inputs from the user. The program must reuse at least 3 inputs in what it displays on the screen. The program must perform some form of arithmetic operation on the numbers the user inputs.  Please turn in your .py file as well as a screenshot of your program's output.

Please include comments in your code to explain how it works

An example program run might look like (have fun with this and be creative):

'What is your name?'

"Josh"

'Thanks, Josh.  What is your favorite color?'

"green"

'Mine too.  Do you also like Ice Cream?'

"No"

'Josh, how old are you?'

"40"

'... and how many siblings do you have?''

"3"

'That means you are one of 4 kid(s). Is green the favorite color of anyone else in your house?'

Reference no: EM131878813

Questions Cloud

Why the expected cash flows would be lower : Uncertainty Surrounding a Foreign Target: What are some of the key sources of uncertainty in Blore's valuation of the target?
Write a program that picks a random number : Extend your guessing game from last week. Write a program that picks a random number from 1-100. Then ask the user to guess a number
Sales department and the engineering department : Find the names and salary of each employee who works in both the Sales Department and the Engineering department
Price of the bond implied by the duration approximation : What would be the percentage change in the price of the bond implied by the duration approximation?
Write a program that has a conversation with the user : Write a program that has a conversation with the user. The program must ask for both strings and numbers as input
Why researchers believe trade is not the main cause : Briefly explain three reasons for why researchers believe trade is not the main cause. Which countries are land-abundant?
Display the output to the screen : Students, particularly those in elementary school, sometimes have to make a line such as "I will not chew gun in class." on the board a number of times.
Firm financing and investing decisions intertwined : estimating daily project cash flows and then using them in the analysis? How are the firm's financing and investing decisions intertwined?
What is bccis cost of equity capital : The debt sells at par. Buildwell pays tax at 40%. What is BCCI’s cost of equity capital?

Reviews

Write a Review

Programming Languages Questions & Answers

  Explain what a computer back up means

Explain what a computer back up means and why it is so important in a medical office environment

  Unix or linux versus microsoft windows server

Programmability - address the benefits and disadvantages of using UNIX or Linux versus Microsoft Windows Server within the organization, then propose one of the products.

  Insert a html file into an html document

How do you insert a link to the file goodstuff.html in an HTML document? The browser should go to the HTML document goodstuff.html.

  Write a program to find the largest of five numbers

Write a program to find the largest of five numbers obtained from the user with an input dialog box

  Write a program that takes one command-line argument

Write a program called runsim that takes one command-line argument. Check for the appropriate command-line argument and output a usage message if the command line is incorrect.

  Write paper describing xml and json

Write two page paper describing XML and JSON. What are they? Why do we need them? Are there certain applications that favor one of the these over the other? Explain. What is SOAP?

  Writie a program that computes the salaries of employees

The first programming project involves writing a program that computes the salaries for a collection of employees of different types. This program consists of four classes.

  Discuss the triangle program

NextDate is a function of three variables: month, date, and year. It returns the date of the day after the input date. The month, date, and year variables have integer values subject to these conditions

  Rewrite the set of productions in extended backus-naur form

Course: IST 230/CMPSC 360- Rewrite the set of productions above in Extended Backus-Naur Form (EBNF).  Using a Push Down Automaton (PDA), determine if the following function is valid code according to the given set of productions.

  Why do we have both debug and release builds

When two or more functions have the same name, how does the compiler determine which one to use for a particular function call?

  Write a program that takes a single directory as an argument

Write a program that takes a single directory as an argument, and iterates through all the normal files in the directory, and concatenate them to standard out.

  Write program that creates a picture of a mountain panorama

Write a program that creates a picture of a mountain panorama from a height profile entered by the user. The following screenshot shows what the output could look like:

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