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

  Evaluation of a business code of ethics

The purpose of this assignment is to assist you in refining problem-solving capabilities that organizations already possess for use in business ethics applications. This paper uses a structured, objective format sometimes called a system of inquiry. ..

  Cryptography please i need this assignment and discard all

please i need this assignment and discard all the request before thank you step 1 establish a target audience and

  Identify and analyze the perceived and real benefits

Relative advantage is the degree to which a new technology is perceived to be superior to current technology. An company is more likely to adopt new technology when it perceives greater relative benefit compared to current technology.

  List uses that this type of computer could support

List uses that this type of computer could support for whichever division selected from above.Explain why you think the impact will or will not occur, cite sources when necessary, and justify your position using APA format.

  An automotive mechanical repair business

Boyle's Mobile Automotive Services is an automotive mechanical repair business that carries out mechanical repairs and services at the customers place of residence. The owner, Mr Lance A. Boyle, requires a Java program to assist his business to ma..

  Determine five challenges faced by multiprocessors when

discussion 1registers memory and pipelining please re spond to the followingexplain whether or not programs should use

  Write a function which prints the unique numbers in an array

Write a function which prints the unique numbers in an array.

  Determine the highest bit rate possible for a circuit

1. Determine the number of conditions possible for a binary code

  How do you find the dot product of two vertices

How do you find the dot product of two vertices

  Find the transfer function of the simple amplification

Find the transfer function of the simple amplification circuit shown using this model.

  What is the total efficiency of the protocol

Consider two nodes A and B uses the slotted ALOHA protocol to contend for a channel. Suppose node pA and pB are A and B's retransmission probabilities. Provide a formula for node A's average throughput. What is the total efficiency of the protocol..

  Pro?les of computer users

Expert systems can be used to analyze the pro?les of computer users. Such analysis may enable better intrusion detection.

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