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

  Cross-cultural opportunities and conflicts in canada

Short Paper on Cross-cultural Opportunities and Conflicts in Canada.

  Sociology theory questions

Sociology are very fundamental in nature. Role strain and role constraint speak about the duties and responsibilities of the roles of people in society or in a group. A short theory about Darwin and Moths is also answered.

  A book review on unfaithful angels

This review will help the reader understand the social work profession through different concepts giving the glimpse of why the social work profession might have drifted away from its original purpose of serving the poor.

  Disorder paper: schizophrenia

Schizophrenia does not really have just one single cause. It is a possibility that this disorder could be inherited but not all doctors are sure.

  Individual assignment: two models handout and rubric

Individual Assignment : Two Models Handout and Rubric,    This paper will allow you to understand and evaluate two vastly different organizational models and to effectively communicate their differences.

  Developing strategic intent for toyota

The following report includes the description about the organization, its strategies, industry analysis in which it operates and its position in the industry.

  Gasoline powered passenger vehicles

In this study, we examine how gasoline price volatility and income of the consumers impacts consumer's demand for gasoline.

  An aspect of poverty in canada

Economics thesis undergrad 4th year paper to write. it should be about 22 pages in length, literature review, economic analysis and then data or cost benefit analysis.

  Ngn customer satisfaction qos indicator for 3g services

The paper aims to highlight the global trends in countries and regions where 3G has already been introduced and propose an implementation plan to the telecom operators of developing countries.

  Prepare a power point presentation

Prepare the power point presentation for the case: Santa Fe Independent School District

  Information literacy is important in this environment

Information literacy is critically important in this contemporary environment

  Associative property of multiplication

Write a definition for associative property of multiplication.

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