Design program which print to screen two rectangles of stars

Assignment Help Other Subject
Reference no: EM132335707

Programming Project -

Submit the solution for the following problem:

Rectangle Program

  • You are required to design a program which will print to screen two rectangles of stars.
  • The Rectangle class is to have two constructors, one a no arguments constructor and the other an all arguments constructor. One being columns and the other being lines.
  • The information for the all arguments constructor is to be hard coded in the application class when the first rectangle instance is created. ie Rectangle Rectangle1 = new Rectangle(10, 5);
  • The arguments are the number of columns and lines to create the rectangle.
  • The second Rectangle instance is to use the no arguments constructor with the number of columns and lines being entered by the user in the application class and set using the Rectangle class setter methods.
  • The rectangle of stars is to be printed to screen using a print to screen method in the Rectangle class.
  • The number of lines and columns is also to be printed to screen.
  • Sample output provided on the next page.
  • You are required to design and write the code for a class Rectangle.
  • You are also required to write the code for the application class to create, populate and print to screen the Rectangles details and the Rectangles of stars through Rectangle class methods.
  • After the Rectangle instances have been created and printed to screen, the program will ask the user to indicate if they want to input another set of values for the second Rectangle, and allow them to do this if the reply is Y.
  • The first and new second Rectangles and their details will again be printed to screen using class getter and print to screen methods.

The Rectangle details are to include the following:

  • Number of columns (no more than 10 and no less than 1)
  • Number of lines (no more than 5 and no less than 1)
  • The number of columns and lines must NOT be identical ie there cannot be 5 columns and 5 lines

Final Result Must Have: All the Java source class and application files for your solution.

Internal comments must be used within the code.

Attachment:- Programming Project Assignment File.rar

Reference no: EM132335707

Questions Cloud

Emma is the team lead at a data analytics firm : Emma is the team lead at a data analytics firm. She believes in encouraging her team members to fulfill their job responsibilities by rewarding them when
Important administrative and professional-technical tasks : Organizational structure, norms, values, culture, etc., all have an impact on a leader's success. Consider the new or advancing leader.
Compare requirements and benefits about the job : Compare requirements and benefits about th job-for example the pay, education requirements, experience required to be eligible for the job. Compare the long.
Issues concerning procrastination and perfectionism : What are some of the issues concerning procrastination and perfectionism when managing one's self?
Design program which print to screen two rectangles of stars : Programming Project - You are required to design a program which will print to screen two rectangles of stars
How does samsung create products that satisfy customers : In regards to strategy for Samsung, please do the following: A. How does Samsung create products that satisfy customers?
Organizational behavior issues : Andy Davis was proud of his restaurant, The Golden Bow. Its location was perfect, its decor tasteful, its clientele generous and distinguished.
Evaluating constitutional safeguards provide by amendments : Write a 1,400- to 1,750-word paper identifying and evaluating the constitutional safeguards provided by the 4th, 5th, and 6th Amendments.
Present information on integrated healthcare delivery : Present information on integrated healthcare delivery (vertical vs. horizontal)/pros-cons of each and highlight the innovative methods used to make hospitals

Reviews

len2335707

7/9/2019 3:34:45 AM

Note - Project to be completed. I have also attached a past project to show format code must be in. Please look at file called "Cylinder.java" to see format example. Code for Rectangle Project must be same. Details of Project in "ProjectTask.docx".

Write a Review

Other Subject Questions & Answers

  An effective idea for the business

Identify the reasons why incorporation is an effective idea for their business, the steps they must take to incorporate their business.

  Discuss life-course theory with evolutionary neuroandrogenic

Briefly compare and contrast life-course theory with evolutionary neuroandrogenic (ENA) theory

  Prejudice and stereotypes in media

Explain two ways the emotions of the people in the media may have impacted their prejudiced behavior and why. Explain how stereotypes may or may not have influenced the prejudiced behavior you observed.

  How to address any potential complications

How the treatment addresses risk and protective factors and/or special needs of offenders.The service providers and team members that should be involved in the treatment.How to address any potential complications with implementation of the program.

  Describe a situation in which you had to write a message

Describe a situation in which you had to write a message of bad news. Without giving away names or personal information.

  Which administrative agency governs regulatory compliance

Which administrative agency governs regulatory compliance of the manufacturer?What are the ethical concerns regarding the President's actions?

  Study session and subsequent testing

Catherine has a big psychology test coming up tomorrow. She and several of her friends get together to do some final studying.

  Under which level of government are criminal managed

Research alternatives to incarceration in your state or county. How are they structured, and under which level of government are they managed?

  Dbate paper in which you create a debate of a current

1750- to 2100-word debate paper in which you create a debate of a current event or other controversial topic and

  Predominant area of conflict in the 21st century

North-South relations in security and economic areas will be the predominant area of conflict in the 21st century." Do you agree with this statement?

  Watch the video-eyewitness identification - getting it right

What would you say to the assertion that the human mind of a victim or witness is a crime scene and should be treated as any other "physical" crime scene regarding preservation of evidence and implementation of affirmative steps to prevent contami..

  Determine the concentration of the n2 in moles/liter

For an Undergraduate Research Project, a student needs to detect a 0.1 ppm N2 impurity in Ar gas. If the density of Ar gas is 1.85 g/liter and it contains 0.1 ppm N2, find the amount of N2 (in grams) that is available in a liter of this gas.

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