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
vredina [299]
3 years ago
11

Write code that inserts userItems into the output string stream itemsOSS until the user enters "Exit". Each item should be follo

wed by a space. Sample output if user input is "red purple yellow Exit":red purple yellowimport java.util.Scanner;import java.io.PrintWriter;import java.io.StringWriter;public class StringStreamOutput {public static void main (String [] args) {Scanner scnr = new Scanner(System.in);String userItem = "";StringWriter itemCharStream = new StringWriter();PrintWriter itemsOSS = new PrintWriter(itemCharStream);System.out.println("Enter items (type Exit to quit):");userItem = scnr.next();while (!userItem.equals("Exit")) {/* Your solution goes here */userItem = scnr.next();}userItem = itemCharStream.toString();System.out.println(userItem);return;}}
Engineering
1 answer:
lozanna [386]3 years ago
3 0

Answer:

Peppa Pig

Explanation:

You might be interested in
Technician A says that the use of methanol in internal combustion engines has declined over the years. Technician B says that th
enyata [817]

Answer:

Both Technician A and B are correct

Explanation:

Methanol is used in internal combustion engines. However, the use of methanol in internal combustion engines has decreased lately even though it was thought to lead to cleaner emissions than gasoline. Methanol internal combustion engines produce formaldehyde which is also an environmental pollutant. Also, the cost of methanol is slightly higher than that of good quality gasoline.

MTBE replaced tetraethyllead as a gasoline additive because the former lead to the emission of particulate lead from automobile exhausts which is a serious environmental pollutant. The use of MTBE has declined over the years due to environmental concerns. It has been banned because it has been found to be a significant groundwater pollutant if gasoline containing MTBE is spilled or leaked at gas stations.

4 0
3 years ago
Please can you solve it for me I need it ​
alexandr402 [8]

umm , is  it okay if we do this on microsoft word , cuz i cant send pics of answers here...

6 0
3 years ago
A thick steel slab ( 7800 kg/m3 , c 480 J/kg K, k 50 W/m K) is initially at 300 C and is cooled by water jets impinging on one o
Nutka1998 [239]

Answer:

1791 secs  ≈ 29.85 minutes

Explanation:

( Initial temperature of slab )  T1 = 300° C

temperature of water ( Ts ) = 25°C

T2 ( final temp of slab ) = 50°C

distance between slab and water jet = 25 mm

<u>Determine how long it will take to reach T2</u>

First calculate the thermal diffusivity

∝  = 50 / ( 7800 * 480 ) = 1.34 * 10^-5 m^2/s

<u>next express Temp as a function of time </u>

T( 25 mm , t ) = 50°C

next calculate the time required for the slab to reach 50°C at a distance of 25mm

attached below is the remaining part of the detailed solution

5 0
3 years ago
5. Which of the following is false about onStep?
katovenus [111]

The false statement about onStep is: B. The default number of steps per second is 30.

<h3>What is an onStep?</h3>

An onStep can be defined as a computerized telescope goto controller that is designed and developed to <u>animate shapes</u> while using it on a variety of mounting systems such as forks.

<h3>The characteristics of an onStep.</h3>

In Engineering, some of the characteristics that are associated with an onStep include the following:

  • The onStep function can be called without user input.
  • It can be used to animate shapes without user input.
  • It only runs a certain number of times.

In conclusion, the default number of steps per second for onStep isn't 30.

Read more on onStep here: brainly.com/question/25619349

7 0
2 years ago
A water reservoir contains 108 metric tons of water at an average elevation of 84 m. The maximum amount of electric energy that
zavuch27 [327]

Answer:

24.72 kwh

Explanation:

Electric energy=potential energy=mgz where m is mass, g is acceleration due to gravity and z is the elevation.

Substituting the given values while taking g as 9.81 and dividing by 3600 to convert to per hour we obtain

PE=(108*9.81*84)/3600=24.72 kWh

8 0
4 years ago
Other questions:
  • Nitrate salts (NO3-), when heated, can produce nitrites (NO2-) plus oxygen (O2). A sample of potassium nitrate is heated, and th
    9·1 answer
  • The flatbed truck carries a large section of circular pipe secured only by the two fixed blocks A and B of height h. The truck i
    14·2 answers
  • Please answer the following questions.
    9·2 answers
  • Buying shop supplies from the shop owner to work on your own car at home is an ethical practice.
    14·1 answer
  • Which of the following is an example of seeking accreditation?
    7·1 answer
  • A common chef's knife is single-beveled.<br> TRUE<br> FALSE
    10·1 answer
  • A flashed steam geothermal power plant is located where underground hot water is available as saturated liquid at 700 kPa. The w
    14·1 answer
  • Three-dimensional measuring references all of these EXCEPT:
    10·1 answer
  • What document should you have from the engine manufacturer when working on an engine
    8·1 answer
  • Most goals
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!