Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

in c# please! Assignment4A: Do you know your loops? We've learned about three different kinds of loops in this module - WHILE loops, DO-WHILE loops,

in c# please! image text in transcribed
image text in transcribed
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 now 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 Your choice: 1 What's your start Kumber? 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 Qutput \#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 100p 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

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

Step: 3

blur-text-image

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

SQL Antipatterns Avoiding The Pitfalls Of Database Programming

Authors: Bill Karwin

1st Edition

1680508989, 978-1680508987

More Books

Students also viewed these Databases questions