Printing a triangle and size of peak for triangle

Assignment Help Basic Computer Science
Reference no: EM131339581

Java question:

Allow the user to input two values: a character to be used for printing a triangle and the size of the peak for the triangle. Test the input for valid characters. The size of the triangle should not be larger than 10. If an invalid entry is entered for size or if the value entered for size is larger than 10, use 3 as the default value. If an invalid entry is entered for the character, use an asterisk (*) as the default character. For example, if the user inputs # for the character and 6 for the peak, you should produce the following display: (use the concept of loops)

Reference no: EM131339581

Questions Cloud

Why would a woman be choosier than a man : According to sexual strategies theory, why would a woman be choosier than a man in selecting a partner? According to research, the sexual orientation of gay men may be associated with the size of the
Security in the future : Based on what you've learned in this course, give your opinion on the current state of the security industry. Take a position on whether you believe that hackers or security personnel have the greater advantage in the real world. Provide a rationa..
Advise the employees who are tax resident in country y : Furthermore, advise the employees who are tax resident in country Y - but who carry out their activity in country X - as to whether a transfer of the tax residence of Alfa Plc to country Y would have any consequence.
Create a package diagram for the system : MIS 6308 : Before a resident can attend a recreational activity, both the resident and the activity must be entered into the system. Every resident must have a valid resident number in order to attend a recreational activity. Residents can attend..
Printing a triangle and size of peak for triangle : Allow the user to input two values: a character to be used for printing a triangle and the size of the peak for the triangle. Test the input for valid characters.
Describe a job description through a job website : Review a job description through a job website (e.g., Career Builder, Monster, etc.) in your desired career field and identify at least five skills you have obtained through your general education courses that will make you successful at this job.
Percentage he marks up an item : Write an application that will enable a vendor to see what earnings he can expect to make based on what percentage he marks up an item. Allow the user to input the wholesale item price. In a tabular form, show the retail price of the item marked u..
Checking on the status of selinux : What is meant if you are checking on the status of SELinux and you see, "Enforcing" as a result of the command: [#getenforce]?
What is their best adr option : George and Tanya are in a legal dispute. However, they're friends, and they would like to control the outcome of the case rather than letting a judge or other third-party decide it. What is their best ADR option?

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