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.
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?
|