Answered step by step
Verified Expert Solution
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 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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started