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

  Provide a recursive definition of sequence s

provide a recursive definition of sequence S of all Binary strings starting with 1. Include the base case, recursion and restriction.

  Workgroup network or a domain network setup

Should a small business environment use a workgroup network or a domain network setup? And what would be the advantages and disadvantages of either option?

  Discuss the manner in which java passes parameters to method

Discuss the manner in which Java passes parameters to a method.

  Create an entity-relationship diagram with the database

Consider a problem (document) that can be solved creating a database. Identify all elements related to it, and separate the entities with their attributes, making sure that you have functional dependencies.

  Discuss instantiating a thread in java

What methods are available for managing threads & how do we use them?

  Importance of being close to market and inputs

Page #2, will be about the location of the Fast Food Industry overall, existence of geographical clusters, and importance of being close to market and inputs. Keep in mind, there may not even be a cluster, be very broad about the industry overall...

  How can we specify a class whose objects are students

1. (i) How can we specify a class whose objects are Students? (ii) How can we draw a uml diagram of the class above

  Isomerism in alkanes and alkenes

a) Discuss isomerism in alkanes and alkenes b) What happens when the following is carried out (give reactions) I. Acetic acid is reacted with sodium carbonate. The sodium salt of carboxylic acid is then heated with solid sodium hydroxide

  Differentiate between absolute and relative sectors

Differentiate between absolute and relative sectors. What are some typical drawbacks to Windows data acquisition tools

  Describe the main difference of worm vs. virus

1. Describe the main difference of worm vs. virus and what are the best countermeasures for each in detail.2. What is a DNS attack? Are there different types, if so, explain each? Is the DNS attack assumed to compromise IPSec, and/or is it considered..

  Writing a homework using functions to get a list of integers

Writing a homework using functions to get a list of integers from a user and then find statistics of the given list of integers. You are not allowed to use any built in functions for finding the calculations in this assignment.

  The oracle corporation is an multinational computer

Discuss at lease 500 words. The Oracle Corporation is an multinational computer technology corporation that specializes in developing and marketing hardware systems and enterprise software products.

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