Question Description
All input and output using dialog boxes. Nothing on the command line, or your grade willbe 0. Divide your program into partso Between each part of your program, put a comment that says which partit is Declaration of variableso Declare your variables for each part at the beginning of that part.o For example, declare your variables for part 1 at the beginning of part 1;declare your variables for part 2 at the beginning of part 2; etc It is very important too Use meaningful variable nameso indent your code properlyo use brackets and line them upo comment your ending brackets, for example // end class // end main // end if Part 1Write a while loop that says I love while loops ten times, like this:1. I love while loops.2. I love while loops.3. I love while loops.etcetc.10. I love while loops.The entire output shown above should appear in ONE dialog box.Write a do … while loop that says I love do .. while loops ten times, like this:1. I love do … while loops.2. I love do … while loops.3. I love do … while loops.etcetc10. I love do .. while loops.The entire output shown above should appear in ONE dialog box. The lines arenumbered, 1 through 10. Don't skip a line between each line of output. Part 3Write a for loop that says I love for loops ten times, like this:1. I love for loops.2. I love for loops.3. I love for loops.etcetc10. I love for loops.The entire output shown above should appear in ONE dialog box. The lines arenumbered, 1 through 10. Don't skip a line between each line of output. Part 4Use a while loop to display, in one dialog box, the multiplication table for 7,from 1 through 70, in ONE dialog boxo the first time through the loop, mulitply 7 times 1o the second time through the loop, mulitply 7 times 2o the third time through the loop, muliply 7 times 3o etco the last time through the loop, multiply 7 times 10o so the output will contain ten lines and will look like this:7 times 1 is: 77 times 2 is: 147 times 3 is: 217 times 4 is: 28etcetc7 times 10 is: 70 Part 5Use a while loop to display the multiplication table for any number thatthe user enters. First, ask the user to enter a number. Then, display thetimes table for the number the user enters. For example, if the user enters7, the output will look like this:7 times 1 is: 77 times 2 is: 147 times 3 is: 217 times 4 is: 28etcetc7 times 10 is: 70However, if the user enters 5, the output will look like this:5 times 1 is: 55 times 2 is: 105 times 3 is: 155 times 4 is: 20etcetc5 times 10 is: 50 Part 6o Use a do .. while loop to write the following in one dialog box. Initializeyour count variable to 10 (this means assign it a value of 10) before youbegin the loop. Notice that proper English grammar requires that we sayone bottle (no "s" on bottle).10 bottles of beer on the wall.9 bottles of beer on the wall.8 bottles of beer on the wall.7 bottles of beer on the wall.etcetc1 bottle of beer on the wall.0 bottles of beer on the wall. Part 7Use one and only one for loop to print the following pattern in one dialog box.Do not use nested for loops. Use only one for loop, not two or more. Do not useany other kind of loop. Do not use a switch/case statement or if conditions. Thesame code should work for 7 lines of asterisks or 17 lines of asterisks, simplyby changing the number of times the loop executes, from 7 to 17.****************************Hint: there are seven lines of output, so you should loop seven times. Use thepower of String concatenation. Do not simply literally write the output like this:message = "*n**n***n****n*****n******n*******"; Part 8Ask the user how many quizzes he took. Then, prompt the user for that manygrades. When the user is done entering the grades, tell him his average gradefor all his quizzes. For example, if the user says he took three quizzes, promptthe user for three grades, then tell the user the average of those three grades. Ofcourse, you don't know what number the user will enter!When you prompt the user for quiz grades, be polite. For example, if the usersays he took 3 quizzes, the prompts should say: "Enter quiz grade 1: ", then"Enter quiz grade 2: ", then "Enter quiz grade 3: " Part 9o display a message to a dialog box that says: Goodbye from _____ . (Fillin the blank with your full name. Sumit AssignmentSix as followso Submit the .java file in Blackboardo Do NOT submit the .class file. Submit only the .java fileo I do not give credit for work that does not compile. If you have problemswith compiling, email me your .java file and tell me in the body of theemail what the compiler error is, exactly.
Our website has a team of professional writers who can help you write any of your homework. They will write your papers from scratch. We also have a team of editors just to make sure all papers are of HIGH QUALITY & PLAGIARISM FREE. To make an Order you only need to click Ask A Question and we will direct you to our Order Page at WriteDemy. Then fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.
Fill in all the assignment paper details that are required in the order form with the standard information being the page count, deadline, academic level and type of paper. It is advisable to have this information at hand so that you can quickly fill in the necessary information needed in the form for the essay writer to be immediately assigned to your writing project. Make payment for the custom essay order to enable us to assign a suitable writer to your order. Payments are made through Paypal on a secured billing page. Finally, sit back and relax.
About Writedemy
We are a professional paper writing website. If you have searched a question and bumped into our website just know you are in the right place to get help in your coursework. We offer HIGH QUALITY & PLAGIARISM FREE Papers.
How It Works
To make an Order you only need to click on “Place Order” and we will direct you to our Order Page. Fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.
Are there Discounts?
All new clients are eligible for 20% off in their first Order. Our payment method is safe and secure.