UOP PRG420 Week 3 Assignment Coding a Program Containing Loops Latest

Question # 00784902 Posted By: rey_writer Updated on: 11/25/2020 10:59 AM Due on: 11/25/2020
Subject Education Topic General Education Tutorials:
Question
Dot Image

PRG420 Java Programming I

Week 3 Assignment  

Coding a Program Containing Loops

Resource:  Week Three Coding Assigment Zip File (starter code for this assignment that includes placeholders)

For this assignment, you will apply what you learned in analyzing for, while, and do-while loops by writing these statements yourself. The Java™ program you write should do the following:

• Display a pyramid of asterisks onscreen (i.e., a nested for loop)

• Display the integers 10 to 1 in decreasing order, one number per line (i.e., a while/do-whlie loop)

• Add 7 until the sum becomes greater than 157, at which point the program should display both the sum and the number of 7s added Complete this assignment by doing the following:

1. Download and unzip the linked Week Three Coding Assigment Zip File.

2. Add comments to the code by typing your name and the date in the multi-line comment header.

3. Replace the following lines with Java™ code as directed in the file:

• LINE 1

• LINE 2

• LINE 3

4. Comment each line of code you add to explain what you intend the code to do and why you chose each type of loop.

5. Test and modify your Java™ program until it runs without errors and produces the results as described above.

Note: Refer to this week's analyzing code assignment if you need help.

Submit your Java source (.java) code file using the Assignment Files tab.

 

Dot Image
Tutorials for this Question
  1. Tutorial # 00784804 Posted By: rey_writer Posted on: 11/25/2020 11:00 AM
    Puchased By: 2
    Tutorial Preview
    The solution of UOP PRG420 Week 3 Assignment Coding a Program Containing Loops Latest...
    Attachments
    UOP_PRG420_Week_3_Assignment_Coding_a_Program_Containing_Loops_Latest.ZIP (18.96 KB)

Great! We have found the solution of this question!

Whatsapp Lisa