Assignment4A: Do you know your loops? We've learned about three different kinds of loops in this module-WHILE loops, DO-WHILE loops, and FOR loops. In this assignment, we're going to make sure you know what each one does. You will prompt the user to choose one of the following loops: 1. A loop that might run zero or more times 2. A loop that will always run at least once 3. A loop with a predetermined start and end After the choice, you will prompt the user to enter a "start" number. If they chose option 3, you must also ask them to enter an "end" number. You must then use the correct loop (based on the user's choice) to print out numbers from the starting point to the end number. For options 1 and 2, the end number is 0, while for option 3 the user will define the end number themselves. Note that the loops will always count down from the start number. Review your lecture material to know which loop should be used for each option. Call the file Assignment4A (.java, .cs, .cpp) and the class name Assignment4A. User input is indicated in bold. Sample Output #1: What loop do you want to use? 1) A loop that might run zero or more times 2) A loop that will always run at least once 3) A loop with a predetermined start and end Show Transcribed Text S Your choice: 1 What's your start number? 10 Counting: 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, Sample Output #2: What loop do you want to use? 1) A loop that might run zero or more times 2) A loop that will always run at least once 3) A loop with a predetermined start and end Your choice: 2 What's your start number? -20 Counting: -20, Sample Output #3: What loop do you want to use? 1) A loop that might run zero or more times 2) A loop that will always run at least once 3) A loop with a predetermined start and end Your choice: 1 What's your start number? -120 Counting: Sample Output #4: What loop do you want to use? 1) A loop that might run zero or more times 2) A loop that will always run at least once 3) A loop with a predetermined start and end Your choice: 3 What's your start number? -115 What's your end number? -120 Counting: -115, 116, 117, 118, 119, 120,

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Please send me answer of this question immediately and i will give you like sure sir 

Need help solving in Java
Assignment4A: Do you know your loops? We've learned about three different kinds of loops
in this module - WHILE loops, DO-WHILE loops, and FOR loops. In this assignment, we're
going to make sure you know what each one does.
S
You will prompt the user to choose one of the following loops:
1. A loop that might run zero or more times
2. A loop that will always run at least once
3. A loop with a predetermined start and end
After the choice, you will prompt the user to enter a "start" number. If they chose option
3, you must also ask them to enter an "end" number.
You must then use the correct loop (based on the user's choice) to print out numbers
from the starting point to the end number. For options 1 and 2, the end number is 0,
while for option 3 the user will define the end number themselves. Note that the loops
will always count down from the start number. Review your lecture material to know
which loop should be used for each option.
Call the file Assignment4A (.java, .cs, .cpp) and the class name Assignment4A. User
input is indicated in bold.
Sample Output #1:
What loop do you want to use?
1) A loop that might run zero or more times
2) A loop that will always run at least once
3) A loop with a predetermined start and end
Show Transcribed Text
c
Your choice: 1
What's your start number? 10
Counting: 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0,
Sample Output #2:
What loop do you want to use?
1) A loop that might run zero or more times
2) A loop that will always run at least once.
3) A loop with a predetermined start and end
Your choice: 2
What's your start number? -20
Counting: -20,
Sample Output #3:
What loop do you want to use?
1) A loop that might run zero or more times
2) A loop that will always run at least once
3) A loop with a predetermined start and end
Your choice: 1
What's your start number? -120
Counting:
Sample Output #4:
What loop do you want to use?
1) A loop that might run zero or more times
2) A loop that will always run at least once
3) A loop with a predetermined start and end
Your choice: 3
What's your start number? -115
What's your end number? -120
Counting: -115, 116, 117, 118, 119, 120,
Transcribed Image Text:Need help solving in Java Assignment4A: Do you know your loops? We've learned about three different kinds of loops in this module - WHILE loops, DO-WHILE loops, and FOR loops. In this assignment, we're going to make sure you know what each one does. S You will prompt the user to choose one of the following loops: 1. A loop that might run zero or more times 2. A loop that will always run at least once 3. A loop with a predetermined start and end After the choice, you will prompt the user to enter a "start" number. If they chose option 3, you must also ask them to enter an "end" number. You must then use the correct loop (based on the user's choice) to print out numbers from the starting point to the end number. For options 1 and 2, the end number is 0, while for option 3 the user will define the end number themselves. Note that the loops will always count down from the start number. Review your lecture material to know which loop should be used for each option. Call the file Assignment4A (.java, .cs, .cpp) and the class name Assignment4A. User input is indicated in bold. Sample Output #1: What loop do you want to use? 1) A loop that might run zero or more times 2) A loop that will always run at least once 3) A loop with a predetermined start and end Show Transcribed Text c Your choice: 1 What's your start number? 10 Counting: 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, Sample Output #2: What loop do you want to use? 1) A loop that might run zero or more times 2) A loop that will always run at least once. 3) A loop with a predetermined start and end Your choice: 2 What's your start number? -20 Counting: -20, Sample Output #3: What loop do you want to use? 1) A loop that might run zero or more times 2) A loop that will always run at least once 3) A loop with a predetermined start and end Your choice: 1 What's your start number? -120 Counting: Sample Output #4: What loop do you want to use? 1) A loop that might run zero or more times 2) A loop that will always run at least once 3) A loop with a predetermined start and end Your choice: 3 What's your start number? -115 What's your end number? -120 Counting: -115, 116, 117, 118, 119, 120,
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 3 images

Blurred answer
Knowledge Booster
Mathematical functions
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education