Write a program that takes in a positive number

Assignment Help Computer Engineering
Reference no: EM132168362

Using Dr.Java

Objective:

Write a program that takes in a positive number and draws a horizontal triangle of asterisks (*). The inputted number represents the size of the triangle, or in other words the number of asterisks at the peak.

It starts out by increasing the number of asterisks at each line until it reaches the size of the triangle and then decreases the number of triangles at each line.

Example Dialog:
Welcome to Triangle Maker 9000! Enter the size of the triangle.
3
*
**
***
**
*
DONE!

Reference no: EM132168362

Questions Cloud

Using classes create a one-player battleship game : Using Classes create a one-player Battleship game. Using OOD write a program implementing a one player game of battleship.
Computing the after-tax rate of return : A firm has invested $14,000 in machinery with a 7-year useful life. The machinery will have no salvage value, as the cost to remove it will equal its scrap.
Impact of technology in product and service design : Give two examples (with supporting details) of the impact of technology in product and service design, in the context of service and manufacturing firms.
Modern equipment and can process shipments at a cost : Facility B has a fixed cost of $2.0M to acquire, but has modern equipment and can process shipments at a cost of $10 / shipment.
Write a program that takes in a positive number : Write a program that takes in a positive number and draws a horizontal triangle of asterisks (*). The inputted number represents the size of the triangle.
Compare the advantages of vlan and lan : As the network manager, what will you implement, a single LAN, 6 LANs or 6 VLANs? Present all your arguments in support of and against your choice.
Assembly operation with quality issues : Consider the following four-step assembly operation with quality issues. All steps / resources are staffed by one employee.
Get a string from the user at the command line : Populate an ArrayList of Character data (the wrapper class), with each char in the String represented as a separate Character element in the ArrayList.
What are the ideological views of human nature : Political ideology: Discuss the ideology that provided the Healthcare policy's context. What are the ideological views of human nature and non-governmental.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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