Printing a triangle and the size of the peak for triangle

Assignment Help Basic Computer Science
Reference no: EM131330434

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: EM131330434

Questions Cloud

Different types of machine learning algorithms : 1) What is machine learning? 2) What is the relationship between Machine Learning & Big Data? 3) Provide a few business cases where Machine Learning would help.
Can you find another period 2 oscillator : In the Game of Life, a blinker is a period 2 oscillator. Can you find another period 2 oscillator? How about a period 3 oscillator? A period 15 oscillator? Save your configurations as buttons in the Life model in the NetLogo models library.
Define hie-explain the purpose and use of hie : Define HIE Explain the purpose and use of HIE. Explain the 3 key forms of HIE. Explain how HIE has an impacts patient care. Provide examples that demonstrate the benefit of HIE.
How do you think fasb feels about timing manipulations : How do you think FASB feels about timing manipulations for the purpose of hitting projection goals? Would you require disclosure of these shifting practices in the quarterly financial report? Why or why not?
Printing a triangle and the size of the 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.
Explain why each of these is a still-life : Explain why each of these is a still-life. Can you find another still-life? Modify the Life model in the NetLogo models library to include a button that saves your new still-life configuration.
What 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.
Display an aquarium ph level : Write an application that will enable you to display an aquarium's pH level. The pH is a measure of the aquarium water's alkalinity and is typically given on a 0-14 scale. For most freshwater fish tanks, 7 is neutral.
What categories may be accrued to provide an appropriate use : For interim financial reporting for domestic subsidiaries, what categories may be accrued or deferred to provide an appropriate use of the basic matching concept accounting for costs in each period?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Create a short text-based adventure game

In this assignment you will create a short text-based adventure game. The user is presented with a short text description of the state of the game and a small set of alternative actions to take.

  Case study-data breaches and regulatory requirements

The National Institute of Standards and Technology (NIST) provides an extensive amount of information, resources, and guidance on IT and information security topics.

  Design a class named location for locating a maximal value

Design a class named Location for locating a maximal value and its location in a two-dimensional array.

  Color a complex planar map using only four colors

You have to color a complex planar map using only four colors, with no two adjacent regions to have the same color. (Map Coloring Problem)

  Explain ieee link layer protocol

Explain IEEE link layer protocol 802.3as, by stating its purposes and features.

  Business case for the course project

Submit a business case proposal, which is a summary of your selected business case for the course project. The business case proposal will be submitted as a Word document and in paragraph form. This business case proposal provides your instructor ..

  The current directory is c

Assume that the current directory is C: and a file named MESSAGE.BAT is located in C:Util directory. Which one of the following commands would be effective?

  What do you mean by ascii or ebcdic

What is ASCII or EBCDIC? What part do the aforementioned things play in hashing? What is the formula for the PPD? What does the numerator and denominator say about the potential performance issues of this metric?

  Elements needed to create a solid compensation

What are all of the elements needed to create a solid compensation, benefits package, and total rewards plan? For a Business Class assignment?

  Characteristics of object-oriented programming

Classes and subclasses are key characteristics of object-oriented programming. Explain why the use of classes and subclasses reduces implementation time for programmers.

  Create a class titled schooltextbook that contains fields

Create a class titled SchoolTextBook that contains fields for the author, title, page count, ISBN, and price. This SchoolTextBook class will also provide setter and getter methods for all fields.

  Nominal dollar amount of last withdrawal

The inflation rate over this period is expected to be 4 percent.How much can you withdraw each month from your account in real terms assuming a 25-year withdrawal period? What is the nominal dollar amount of your last withdrawal?

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