1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Studentka2010 [4]
4 years ago
3

Implement a print_menu() function, which has a string as a parameter, outputs a menu of user options for analyzing/editing the s

tring, and returns the user's entered menu option and the sample text string (which can be edited inside the print_menu() function). Each option is represented by a single character. If an invalid character is entered, continue to prompt for a valid choice. Hint: Implement the Quit menu option before implementing other options. Call print_menu() in the main section of your code. Continue to call print_menu() until the user enters q to Quit. (3 pts)
Engineering
1 answer:
Vladimir79 [104]4 years ago
3 0

<u>Answer: </u>

def print_menu():

print("MENU')  

print("c-Number of non-whitespace characters\nw - Number of words\nf-Fix capitalization\nr

Replace punctuation\ns - Shorten spaces\nq - Quity  

print("\n Choose an option: ")

#################################

def get_num_of_non_WS_characters (s):

count = 0  

for x in s

if not x is ‘ ‘:

count +=1  

return count

<u>Explanation:</u>

Computers are very quick and more efficient when it comes to performing the various tasks we give them on a daily basis, sometimes things can get a bit unenergetic and we find that your PC stalls or ‘freezes altogether’.  

While technically speaking, "force quit" is a term applied to Apple's Mac computers, the same premise applies to ‘Windows-based PCs’.

You might be interested in
Technology is the study of the designed world. It is used primarily to __________. *
trasher [3.6K]

Answer:

Technology is the study of the designed world is to solve practical problems and extend human capabilities

Technology is created by man to assist man in things they want to achieve. it is simply the use of scientific knowledge to the basic needs of human life.

It aids man in communication, healthcare, fitness, space travels and others. It helps man to keep in touch with people not in our location. The use of phones and computers are some key technology influencing the world today

Conclusively, we can say tthat Technology is the study of the designed world is to solve practical problems and extend human capabilities

Explanation:

4 0
3 years ago
Can I have free money? I want to get a new pc
GREYUIT [131]

Answer:

NO!

Explanation:

6 0
3 years ago
Read 2 more answers
Water flows near a flat surface and some measurements of the water velocity, u, parallel to the surface, at different heights y
BabaBlast [244]

Answer:

a) since u from equation1 and u from equation2 are not the same ( 1.7825 ft/s ≠ 3.165 ft/s ) then this equation is not valid for any system of units.

b) The velocity according to the equation at y=0 is equal to 0.81 ft/sec but since the fluid is flowing on flat surface which is stationary, this value is wrong hence the equation is NOT CORRECT

Explanation:

Given that;

range ⇒ 0 < y < 0

1ft is given by the equation u = 0.81 + 9.2y + (4.1 × 10³y³)

so u=velocity of water at different layers

y= height of the layer

a)

consider BG system of units

u(ft/s) = 0.81 + 9.2y + (4.1 × 10³y³)

and consider y=0.05 ft

u = 0.81 + 9.2(0.5) + (4.1 × 10³(0.5³)

u = 0.81 + 0.46 + 0.5125

u = 1.7825 ft/s lets say this is equation 1

now consider the SI system units

u(m/s) = 0.81 + 9.2y + (4.1 × 10³y³)

also consider y=0.05ft

1ft = 3.048×10⁻¹ (from conversion table)

so 0.05ft = 0.01524m

we substitute

u(m/s) = 0.81 + 9.2(0.01524m) + (4.1 × 10³(0.01524m)³)

u = 0.81 + 0.1402 + 1.4512×10⁻²

u = 0.9647 m/s

1m/s = 3.281 ft per seconds ( conversion table)

so

0.9647 m/s = 0.9647(3.281)

u = 3.165 ft/s lets say this is equation 2

now since u from equation1 and u from equation2 are not the same ( 1.7825 ft/s ≠ 3.165 ft/s ) then this equation is not valid for any system of units.

b)

we know that the velocity of water at the surface contact is zero

u=0

so from the equation

u = 0.81 + 9.2y + (4.1 × 10³y³)

at y = 0

u = 0.81 + 9.2(0) + (4.1 × 10³(0)³)

u = 0.81 ft/s

The velocity according to the above equation at y=0 is 0.81 ft/sec but since the fluid is flowing on flat surface which is stationary this value is wrong hence the equation is NOT CORRECT

5 0
4 years ago
If the resistance in a series circuit is 12 K Ohms, and the amperage is 0. 0063 amps, what is the voltage?
kkurt [141]

Answer:

The resistance “seen” by the 12-Volt battery is 500 ohms . The total resistance is the sum of the resistors R1 and R2. Each resistor will drop a calculable amount of voltage. This voltage is given by Ohm's Law.

3 0
2 years ago
What is a network? I'LL MARK BRAINLEST
Jobisdone [24]

Answer:

hsjeeieoj eu sou ku nahi u have UCC guide to buying it and I he was a temporary password for bees and u h ki tarah nahi to ye sab se jyada nahi hota nahi to kabhi bhi hai ki wo to sirf Tum nahi hota

7 0
3 years ago
Read 2 more answers
Other questions:
  • A westbound section of freeway currently has three 12-ft wide lanes, a 6-ft right shoulder, and no ramps within 3 miles upstream
    12·1 answer
  • Unlike in previous questions where we wanted you to complete a function we had started, here we want you to write a Python funct
    5·1 answer
  • Which task best fits the role of a planning engineer?
    13·1 answer
  • An air-standard Diesel cycle has a compression ratio of 16 and a cutoff ratio of 2. At the beginning of the compression process,
    12·1 answer
  • Assume that light of wavelength 6000A is coming from a star. What is the limit of resolution of a telescope whose objective has
    7·1 answer
  • 5-81 The shaft is made of A-36 steel and is fixed at end D, while end A is allowed to rotate 0.005 rad when the torque is applie
    6·1 answer
  • The bulk modulus of a fluid if it undergoes a 1% change in volume when subjected to a pressure change of 10,000 psi is (a) 0.01
    13·1 answer
  • What is the most common type of suspensions system used on body over frame vehicles?
    15·1 answer
  • A dual-fluid heat exchanger has 10 lbm/s water entering at 100 F, 20 psia and leaving at 50 F, 20 psia. The other fluid is glyco
    13·1 answer
  • According to Gary Sirota, the proposed Bajagua wastewater treatment plant is a beneficial solution because __________.
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!