Write a function called tallenough

Assignment Help Basic Computer Science
Reference no: EM131158202

Im stuck on 3 practice problems below:

The Progamming Language is Python

1) (for loop, one-way if statement) Write a program that prints all the composers in the list that do not have a double name. Hint: assume that a composer with a double name contains a space ' ' (single space) or a hyphen '-'.

lst = ['Antheil', 'Elgar', 'Saint-Saens', 'Chadwick', 'Coleridge-Taylor', 'Charlie Parker', 'Castelnuovo-Tedesco']

2) (function, two-way if statement) Write a function called tallEnough() that takes a single parameter, the user's height in inches. If the height is 48 or more, the function should return "You can go on this ride." Otherwise it should return the string "Sorry, you're not tall enough."

3) (Strings and Formatted Output) If you've ever visited Europe (or Canada) you'll know that they tend to measure temperature in degree Celsius rather than Fahrenheit. Conversion is pretty simple: if f is the temperature in degree Fahrenheit, then the temperature in degree Celsius is c = (f-32)*5/9.

a. Write a function convert() that takes as an input degree Fahrenheit and returns degree Celsius.

Reference no: EM131158202

Questions Cloud

Explain distributed file system : Explain Distributed File System (DFS) and give its key processes. Please reply as soon as possible?
Loss of productivity and significant costs : Interruptions to business functions can result in a loss of productivity and significant costs. Careful planning can often help avoid security incidents. However, even with planning, such incidents cannot always be prevented. Therefore, as a secur..
Identify a message in advertising : Identify a message in advertising. Describe how you perceive the message of the advertisement. Try to determine the reality of the advertisement. Distinguish between your perception and the reality of the message
How would you classify operating systems : How would you classify operating systems. Give at most five classifications
Write a function called tallenough : (function, two-way if statement) Write a function called tallEnough() that takes a single parameter, the user's height in inches. If the height is 48 or more, the function should return "You can go on this ride." Otherwise it should return the str..
What is the break-even quantity in this case : Suppose the Chinese subcontractor is willing to share the economies-of-scale benefits it might achieve in production and offers an incremental quantity discount on the variable cost. The subcontractor now charges $6 per unit for the first 0.5 mill..
How do you think biracial people should be counted : In other words, if future hiring is meant to make the workforce relatively proportionate to the population's racial mix, should workers who are, for example, offspring of an African-American mother and a Caucasian father be counted as White, Afric..
Separate sets of ordered pairs : Let sets A and B be defined as follows: A = {a1} and B = {b1, b2}. List as separate sets of ordered pairs all the one-to-one functions from A to B, or explain why there are no such functions.
How do environmental systems relate to human systems : How do environmental systems relate to human systems? Can you compare ecology to human ecology? If so how? How does climate determine biomes?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Use-case matrix for the major processes of the system

Below is a Use-Case Matrix for the major processes of the system. To keep this simple, all "maintenance" events, such as adding new salespeople, tasks, and technicians have been ignored.

  Create a program that will store results of your dice game

Create a program that will store the results of your dice game in a comma separated value file (filename.csv). You will use the Formatter API to construct a new file.

  Describe a general algorithm for adding two fractions

To add two fractions, such as 1/2 and 1/3, the fractions must have a common denominator. Using both pseudo code and a flowchart, describe a general algorithm for adding two fractions.

  Find all basic flow vectors and their associated trees

Find all basic flow vectors and their associated trees. Specify which of these are feasible and which are strongly feasible (the root node is node 1).

  Distributed computing applications

Distributed Computing Applications

  Bringing t into the fundamental domain

Let T = (9 + i )/ 10.Find the transformation in the modular group that brings it into a point To of the fundamental domain :F0 • Show that the transformation is unique by proving that there is no transformation  in the modular group (except  the id..

  What is the largest problems that can be solved

In general, is it possible to solve an arbitrarily large problem in a fixed amount of time, provided that an unlimited number of processes is available? Give a brief explanation

  What is topology

What is topology? Mention the different types of topology?

  Difference between it and information systems

Discuss the advantages and disadvantages of spreadsheet software as number-crunching software.

  Knowledge management systems important-modern organization

Describe in scholarly detail why knowledge management systems would be so important to a modern organization where the organization would initiate.

  What are the performance considerations

What are the performance considerations? What are the security requirements? Should we buy or build? What solutions does our competition leverage?

  What is the pmf of t

what is the PMF of T, the number of times a packet is transmitted?

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