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
Timescale limits knowledge for scientists because it is difficult for them to see much beyond their lifetimes. Question 1 option
vaieri [72.5K]

Answer:

I think true

Explanation:

Well I mean...we cant see the future. Certain things will be achieveable in different ganerations like going on mars

8 0
3 years ago
Refrigerant-134a at 700 kPa, 70°C, and 7.2 kg/min is cooled by water in a condenser until it exists as a saturated liquid at the
alex41 [277]

Answer:

The mass flow rate of cooling water required to cool the refrigerant is 123.788\,\frac{kg}{min}.

Explanation:

A condenser is a heat exchanger used to cool working fluid (Refrigerant 134a) at the expense of cooling fluid (water), which works usually at steady state. Let suppose that there is no heat interactions between condenser and surroundings.The condenser is modelled after the First Law of Thermodynamics, which states:

\dot Q_{ref} - \dot Q_{w} = 0

\dot Q_{ref} = \dot Q_{w}

\dot m_{ref}\cdot (h_{ref, in} - h_{ref,out}) = \dot m_{w}\cdot (h_{w, out} - h_{w,in})

The mass flow rate of the cooling water is now cleared:

\dot m_{w} = \dot m_{ref }\cdot \frac{h_{ref,in}-h_{ref,out}}{h_{w,out}-h_{w,in}}

Given that h_{ref,in} = 808.34\,\frac{kJ}{kg}, h_{ref, out} = 88.82\,\frac{kJ}{kg}, h_{w,out} = 104.83\,\frac{kJ}{kg} and h_{w,in} = 62.98\,\frac{kJ}{kg}, the mass flow of the cooling water is:

\dot m_{w} = \left(7.2\,\frac{kg}{min} \right)\cdot \left(\frac{808.34\,\frac{kJ}{kg}-88.82\,\frac{kJ}{kg} }{104.83\,\frac{kJ}{kg}-62.98\,\frac{kJ}{kg} } \right)

\dot m_{w} = 123.788\,\frac{kg}{min}

The mass flow rate of cooling water required to cool the refrigerant is 123.788\,\frac{kg}{min}.

4 0
4 years ago
Chapter 19: Diesel Engine Operation and Diagnosis -Chapter Quiz
Llana [10]

Answer: See explanation

Explanation:

1. How is diesel fuel ignited in a warm diesel engine?

B. Heat compression

2. Which type of diesel injection produces less noise?

A. Indirect injection (IDI)

3. Which diesel injection system requires the use of a glow plug?

A. Indirect injection (IDI)

4. The three phases of diesel ignition include:

C. Ignition delay, repaid combustion, controlled combustion.

5. What fuel system component is used in a vehicle equipped with a diesel engine that is seldom used on the same vehicle when it is equipped with a gasoline engine?

D. Water-fuel separator

6. The diesel injection pump is usually driven by a _________________.

A. Gear off the camshaft

7. Which diesel system supplies high-pressure diesel fuel to all the injectors all of the time?

C. High-pressure common rail

8. Glow plugs should have high resistance when _____________and lower resistance when __________________.

B. Warm/cold

9. Technician A says that glow plugs are used to help start a diesel engine and are shut off as soon as the engine starts. Technician B says that the glow plugs are turned off as soon as a flame is detected in the combustion chamber. Which Technician is correct?

D. Neither Technicians A NOR B

10. What part should be removed to test cylinder compression on a diesel engine?

D. A glow plug

6 0
3 years ago
Two standard spur gears have a diametrical pitch of 10, a center distance 3.5 inches and a velocity ratio of 2.5. How many teeth
lubasha [3.4K]

Answer:50 , 20

Explanation:

Given

Diametrical Pitch\left ( P_D\right )=\frac{T}{D}

where T= no of teeths

D=diameter

module(m) of gears must be same

m=\frac{D}{T}=\frac{1}{P_D}=0.1

Let T_1 & T_2be the gears on two gears

Therefore Center distance is given by

m\frac{\left ( T_1+T_2\right )}{2}=3.5

thus

0.1\frac{\left ( T_1+T_2\right )}{2}=3.5

T_1+T_2=70----1

and Velocity ratio is given by

VR=\frac{No\ of\ teeths\ on\ Driver\ gear}{No.\ of\ teeths\ on\ Driven\ gear}

2.5=\frac{T_1}{T_2}----2

From 1 & 2 we get

T_1=50, T_2=20

6 0
4 years ago
4. From two permeability tests it is found that the void ratio and hydraulic conductivity of a normally consolidated clay are 1.
vesna_86 [32]

Answer:

Explanation:

Check attachment for solution

8 0
4 years ago
Other questions:
  • Design a decimal arithmetic unit with two selection variables, V1, and Vo, and two BCD digits, A and B. The unit should have fou
    7·1 answer
  • A well pumps at 400 L/s from a confined aquifer whose thickness is 24 m. If the drawdown 50 m from the well is 1 m and the drawd
    10·1 answer
  • Paint can shaker mechanisms are common in paint and hardware stores. While they do a good job of mixing the paint, they are also
    15·1 answer
  • Following are several z-transforms. For each one, determine inverse z-transform using both the method based on the partial-fract
    10·1 answer
  • Air flows from a large reservoir in which the pressure and temperature are 1 MPa and 30°C, respectively, through a convergent–di
    12·2 answers
  • Sensors are used to monitor the pressure and the temperature of a chemical solution stored in a vat. The circuitry for each sens
    15·1 answer
  • This question is 100 points<br> I NEED HELP!!!
    15·2 answers
  • What is the Energy of moving things?<br><br> mechanical<br> sound<br> nuclear<br> Light
    13·2 answers
  • Two basic types of mechanical fuel injector systems?​
    13·2 answers
  • What are the two (2) different design elements of scratch?
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!