Display a pyramid of asterisks onscreen

Assignment Help Basic Computer Science
Reference no: EM131947254

This week, you will apply what you learned in analyzing forwhile, and do-while loops by writing these statements yourself. The JavaTM 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 JavaTM code as directed in the file:
  • LINE 1
  • LINE 2
  • LINE 3
  1. Comment each line of code you add to explain what you intend the code to do and why you chose each type of loop.
  2. Test and modify your JavaTM program until it runs without errors and produces the results as described above.

Reference no: EM131947254

Questions Cloud

Evaluate the effects relationships for butters corporation : Using the Du Pont method, evaluate the effects of the following relationships for the Butters Corporation.
Explain the main components of the case : In one or two paragraphs, explain the main components of the case and state applicable federal, state, or local employment law.
Review the types of broadband connections : Discuss what a broadband connection is, how it differs from a dial-up connection, and review the types of broadband connections.
What would the return-on-equity ratio be : If the debt-to-total-assets ratio is 35 percent, what is the return on equity? If the firm had no debt, what would the return-on-equity ratio be?
Display a pyramid of asterisks onscreen : This week, you will apply what you learned in analyzing for, while, and do-while loops by writing these statements yourself. The JavaTM program
Would the bank change its decision : Using the factor scoring (rating) method as we learned in class, which site should Security National Bank use based on the above information?
Compute the acquisition cost of each intangible asset : Compute the acquisition cost of each intangible asset. Compute the amortization of each intangible for the current year ended December 31.
Defending against web application exploitation : Create a plan detailing steps that should be taken to defend against SQL injection exploitation within Web applications.
Create an excel spreadsheet of lp model showing attention : Create an Excel spreadsheet of LP model showing attention to both accuracy and presentation. Use Analytic Solver platform to verify graphical solution .

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd