Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question 4 (3 points) Ir you had to write an application to prompt the user for text until the user types quit', then output the

image text in transcribed

Question 4 (3 points) Ir you had to write an application to prompt the user for text until the user types "quit', then output the total number of characters typed, excluding the characters in the work "quit", but you wanted to make sure that the loop executed at least once what type of loop would you use? Also Explain your answer Sirs: Question 5 (4 points) Write an algorithm that will count the number of negative values in a given array and output that count. NOTE Write an algorithm ONLY! Do not write any Java code! You may use things like "while" or "do-while" or " (to denote an array), in order to get your point across, but do not write class headers, method headers, curly braces, import statements, ete. You're thinking about the steps to take to solve the problems, not the steps to take to write the code You don't have to write pseudo code or flow chart, just express in plain ol English the steps to take to solve this

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

Database Design And SQL For DB2

Authors: James Cooper

1st Edition

1583473572, 978-1583473573

More Books

Students also viewed these Databases questions