Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please help with Java Programming Project outcomes: Develop a Java program that 1. Uses selection constructs (if, and if else) 2 Uses the Java iteration

Please help with Java Programming image text in transcribed
image text in transcribed
image text in transcribed
Project outcomes: Develop a Java program that 1. Uses selection constructs (if, and if else) 2 Uses the Java iteration constructs (while, do, for). 3. Uses static variables. 4. Ensure integer variables input are within a range that will not cause integer overflow. 5.Uses proper design techniques including reading UML Class Diagrams Preparatory Readings: Absolute Java textbook, chapter 1-5 Background Information: The Unified Modeling Language (UML) provides a useful notation for designing and developing object-oriented software systems. One of the basic components of the UML is a class diagram, which are used to depict the attributes and behaviors of a class. A basic class diagram (as shown in the figure below) has three components. The first is the class name. The second component includes the class's attributes or fields. Each attribute is followed by a colon and its data type. The third component includes the class's behaviors or methods. If the method takes parameters, their types are included in parentheses. Each behavior is also followed by a colon and its retum type. If the return value of a method is void, the return type can be omitted. For more information on the UML, refer to http://www.uml.org/ Project Requirements: a. Screen structure The pixels are represented by dots b Static Variables: screenCount-a static integer variable that represents the number of screen objects created in a given run of the program Instance variables height an integer representing the height of the screen, in pixels an integer representing the width of width the screen, in pixels d. Constructors Default (no parameter constructor) i.sets the instance variables and static variable to

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

C++ Database Development

Authors: Al Stevens

1st Edition

1558283579, 978-1558283572

More Books

Students also viewed these Databases questions