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
yawa3891 [41]
4 years ago
12

Write a do-while loop that continues to prompt a user to enter a number less than 100, until the entered number is actually less

than 100. End each prompt with a newline. Ex: For the user input 123, 395, 25, the expected output is:
Enter a number (<100):
Enter a number (<100):
Enter a number (<100):
Your number < 100 is: 25
c++

#include
using namespace std;

int main() {
int userInput = 0;

do
cout << "Your number < 100 is: " << userInput << endl;

return 0;
}
Engineering
1 answer:
chubhunter [2.5K]4 years ago
8 0

Answer:

#include <iostream>//including iostream library to use functions such as cout and cin

using namespace std;

int main() {

int userInput = 0;

do

{

 cout << "Enter a number < 100: " ;

 cin >> userInput;

 if (userInput < 100)//condition if number is less than 100

 {

  cout << "Your number < 100 is: " << userInput << endl;

 }

} while (userInput > 100);//do while loop condition

return 0;

}

Explanation:

A do-while loop executes regardless in the first iteration. Once it has run through the first iteration, it checks if the condition is being met. If, the condition is TRUE, the loop begins the second iteration. If FALSE, the loop exits. In this case, the condition is the userInput. after the first iteration, lets say the userInput is 120, the condition userInput > 100 is true.Therefore, the loop will run again until eventually the number is less than hundred, lets say 25. In that case the condition would be 25 > 100, which would be false, so the loops will break.

You might be interested in
Schrodinger equation is a ........... Equation
Tanzania [10]

Answer:

linear partial differential

Explanation:

The Schrödinger equation is a linear partial differential equation that describes the wave function or state function of a quantum-mechanical system. It is a key result in quantum mechanics, and its discovery was a significant landmark in the development of the subject.

5 0
3 years ago
HELP HELP HELP
Fantom [35]

Summary

Students learn about the variety of materials used by engineers in the design and construction of modern bridges. They also find out about the material properties important to bridge construction and consider the advantages and disadvantages of steel and concrete as common bridge-building materials to handle compressive and tensile forces.

This engineering curriculum aligns to Next Generation Science Standards (NGSS).

Engineering Connection

When designing structures such as bridges, engineers carefully choose the materials by anticipating the forces the materials (the structural components) are expected to experience during their lifetimes. Usually, ductile materials such as steel, aluminum and other metals are used for components that experience tensile loads. Brittle materials such as concrete, ceramics and glass are used for components that experience compressive loads.

Learning Objectives

After this lesson, students should be able to:

List several common materials used the design and construction of structures.

Describe several factors that engineers consider when selecting materials for the design of a bridge.

Explain the advantages and disadvantages of common materials used in engineering structures (steel and concrete).

Educational Standards

NGSS: Next Generation Science Standards - Science

Common Core State Standards - Math

International Technology and Engineering Educators Association - Technology

State Standards

Suggest an alignment not listed above

Subscribe

Get the inside scoop on all things TeachEngineering such as new site features, curriculum updates, video releases, and more by signing up for our newsletter!

PS: We do not share personal information or emails with anyone.

Email Address

First name (optional)

Last Name (optional)

Subscribe to TE Newsletter

Worksheets and Attachments

Strength of Materials Worksheet (doc)

Strength of Materials Worksheet (pdf)

Strength of Materials Worksheet Answers (doc)

Strength of Materials Worksheet Answers (pdf)

Strength of Materials Math Worksheet (doc)

Strength of Materials Math Worksheet (pdf)

Strength of Materials Math Worksheet Answers (doc)

Strength of Materials Math Worksheet Answers (pdf)

More Curriculum Like This

MIDDLE SCHOOL Activity

Breaking the Mold

Explanation:

pabrainlest Poe ty

8 0
3 years ago
In casting experiments performed using a certain alloy and type of sand mold, it took 155 sec for a cube-shaped casting to solid
Tems11 [23]

Answer:

A) Cm = 2.232 s/mm²

B) Time taken to solidify = 74.3 seconds

Explanation:

(A) Since a side is 50mm and all sides of a cube are equal, thus, Volume of the cube is;V = 50 x 50 x 50 = 125,000 mm³

There are 6 faces of the cube, thus Surface Area A = 6 x (50 x 50) = 15,000 mm²

So, Volume/Area = (V/A) = 125,000/15,000 = 8.333 mm

Cm is given by the formula; Cm =[Tts] /(V/A)² where Tts is time taken to solidify and it's 155 seconds in the question. Thus;

Cm = 155/(8.333)²= 2.232 s/mm²

(B) For;Cylindrical casting with D = 30 mm and L = 50 mm.;

Volume of cylinder is;

V = (πD²L) /4

So,V = (π x 30² x 50)/4 = 35,343mm³

Surface area of cylinder is;

A = (2πD²)/4 + (πDL)

Thus, A = ((π x 30²)/2) + (π x 30 x 50) = 6126 mm²

Volume/Area is;

V/A = 35,343/6126 = 5.77 mm

Same alloy and mold type was hsed as in a above, thus, Cm is still 2.232 s/mm²

Since Cm =[Tts] /(V/A)²

Making Tts the subject, we have;

Tts =Cm x (V/A)²

Tts = 2.232 x (5.77)² = 74.3 seconds

3 0
3 years ago
A 60-kg woman holds a 9-kg package as she stands within an elevator which briefly accelerates upward at a rate of g/4. Determine
Anuta_ua [19.1K]

Answer:

force R = 846.11 N

lifting force L = 110.36 N

if cable fail complete both R and L will be zero

Explanation:

given data

mass woman mw = 60 kg

mass package mp = 9 kg

accelerates rate a = g/4

to find out

force R and lifting force L and if cable fail than what values would R and L acquire

solution

we calculate here first reaction R force

we know elevator which accelerates upward

so now by direction of motion , balance the force that is express as

R - ( mw + mp ) × g = ( mw + mp ) × a

here put all these value and a = g/4 and use g = 9.81 m/s²

R - ( 60 + 9 ) × 9.81 = ( 60 + 9  ) × g/4

R = ( 69  ) × 9.81/4  + ( 69 ) 9.81

R = 69  ( 9.81 + 2.4525 )

force R = 846.11 N

and

lifting force is express as here

lifting force = mp ( g + a)

put here value

lifting force = 9 ( 9.81 + 9.81/4)

lifting force L = 110.36 N

and

we know if cable completely fail than body move free fall and experience no force

so both R and L will be zero

5 0
3 years ago
What is a dynamic load? *
alexira [117]
Answer: Bricks in Building
8 0
3 years ago
Other questions:
  • Which BEST identifies a contrast in these two passages? A) The actions taken by the bird in the poem cause injuries, but the act
    5·1 answer
  • What are the four categories of engineering materials used in manufacturing?
    9·1 answer
  • Calculate the convective heat-transfer coefficient for water flowing in a round pipe with an inner diameter of 3.0 cm. The water
    8·1 answer
  • What is planning in pretech
    6·1 answer
  • How did engineers help to create a ceiling fan
    8·1 answer
  • Give me some examples of fragile structures.
    5·1 answer
  • Who wants me to make a device to resurrect Juice Wrld
    7·1 answer
  • . You need to access customer records in a database as you're planning a marketing campaign. What language can you use to pull t
    9·1 answer
  • please answer correctly if it is not correct, report it to them thank you for answering correctly.god bless you​
    8·2 answers
  • How can the use of local materials improve the standard of living of Filipinos?
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!