Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Implement the following algorithm Fix the bug involving the word stop Write Enter names one at a time. Enter stop when finished allNames

Implement the following algorithm Fix the bug involving the word stop Write "Enter names one at a time. Enter 

Implement the following algorithm Fix the bug involving the word stop Write "Enter names one at a time. Enter stop when finished" allNames "" #A string containing no characters, the empty string name "" While (name != "stop") Write "Enter next name or enter stop" Read name allNames allNames +""+ name Write "The names you entered are " + allNames Exercise 4: Implement the following algorithm Write "Enter integers one at a time. Enter O when finished" negatives 0 positives 0 value = 1 While (value != 0) Read value If value > 0 Increment positives Else If value < 0 Increment negatives Write positives + " positive numbers entered" Write negatives + "negative numbers entered"

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Java An Introduction To Problem Solving And Programming

Authors: Walter Savitch

8th Edition

0134462033, 978-0134462035

More Books

Students also viewed these Programming questions

Question

Repeat Prob. 17116 for a nozzle efficiency of 95 percent.

Answered: 1 week ago

Question

How are the residuals used in estimating ?????

Answered: 1 week ago