Week8_Test Plan Instructions: The Test Plan for each project includes the Pseudocode, Flowchart, Goals and Objectives, Functional Requirements, and Test

Week8_Test Plan

Instructions:

The Test Plan for each project includes the Pseudocode, Flowchart, Goals and Objectives, Functional Requirements, and Test Matrix including Actual Output column.  Below the table are screenshots verifying the actual output for each case.

Note:  Your programming projects should be submitted in the Revel environment for grading.

Week 8 Notes:   Objects and Classes, Chapter 9

For Week 8, we have Chapter 9, with Projects 1 and 3. 

Tasks:     (1) Discussion, (2) Quizzes and Projects 1 and 3,  and (3)  Test Plans for  Projects 1 and 3

Each Test Plan has 5 parts, in order:  (1) Pseudocode, (2) Flowchart, (3) Goals & Objectives, (4) Functional Requirements, the (5) Test Matrix/table (simplified) with Output (screenshots from your own output).   Your Output also appears under Actual Output in your table.   Please make it clear that all 5 tasks are covered for each of your projects to ensure proper grading for you.

All tasks in our Test Plan are for Design and planning, before we write any code, except for the Actual Output, which permits us to complete the test matrix/table, verifying that our program works as expected.

Our Projects this Week

What are Objects?  Why bother with them?! 

We can reuse much of our code, saving time and megabucks for our company, if we use Objects.  Imagine writing a large program for a company’s Human Resources department, with Adding, Editing, Deleting… everything we might ever want to do with this program.  We sell it at a large price to that company.   Other companies would also like us to do that same great job for them.  We can use nearly all the same code.  We called it our Employee “class” in Java, to represent an Employee “object.”  Writing reuseable code is expected of programmers everywhere.

We are normally writing TWO JAVA FILES – one is the Object (“class” in Java, with no main method) and one is the tester file (with main).  Once we have created both files, we can RUN the tester file only.  It will automatically find the class file located in the same path with your tester.

See full Instructions in our textbook for each of our two projects.

Chapter 9:  Project 1   

Sample run: 

The area of a rectangle with width 4.0 and height 40.0 is 160.0

The perimeter of a rectangle is 88.0

The area of a rectangle with width 3.5 and height 35.9 is 125.64999999999999

The perimeter of a rectangle is 78.8

NOTE:   We may see the sample run and imagine that we’re calculating area and perimeter of a rectangle in our usual way.    This NOT the case.  We are using a completely different way of writing our code this time. See our new Chapter 9 material, and you’ve got this!

Chapter 9:  Project 3  

Sample run:

Enter the number of rows and columns in the array: 3 4

Enter the array:

23.5 35 2 10

4.5 3 45 3.5

35 44 5.5 9.6

The largest element is 45, located at (1, 2)

NOTE:  Looks like something we’ve done before – maybe in Chapter 8?     Trust me, this will not be the same program, although we can use some of that same code.   We will write a Location class, with attributes (variables) and behaviors/actions (methods).   It has no main method.   Then we will write our tester class, with the main method, to get user input and to create the output by using the Location class.

Another Object Example:

 One “object” we may want to write is the Dog class.   We think about what attributes a dog has – name, breed, color, sex, birthday, etc.   What behaviors/actions does a dog have?    Eat, sleep, run, play, swim, etc.   You’re ready to write your Dog class.  It has no main method.  This class can be reused for other purposes. 

Testing your class:  this includes the main method and sometimes other methods as well.   You may have 3 Dogs with names, breeds, etc defined.   You may then compare age to see the youngest and oldest, for example, or to compare other attributes for breeding, for showing, for purchase.

Share This Post

Email
WhatsApp
Facebook
Twitter
LinkedIn
Pinterest
Reddit

Order a Similar Paper and get 15% Discount on your First Order

Related Questions

Discussion 1 For this discussion, you will create a speech

Discussion 1  For this discussion, you will create a speech outline of your choice of your topic. A template has been provided for this purpose below. In your post, identify two specific areas you would like peer feedback on. Examples may include: The use of tone Quality of points and

In this discussion, you will be assigned two equations where

In this discussion, you will be assigned two equations where you will complete a variety of math work related to mathematical functions. Read the following instructions in order and view the MAT222 Week 5 Discussion Example  to complete this discussion. Please complete the following problems according to your assigned number.

Please answer this in a word document Briefly discuss/answer any

Please answer this in a word document Briefly discuss/answer any four of the following questions.  What is the hotel development process and briefly discuss feasibility studies and its components? Briefly discuss the Planning and Design process. What are planning and design criteria for Hotel function space? Briefly discuss considerations for

Compare criminal justice of the US against another country

This semester, you will create a presentation that compares the U.S. criminal justice system to that of another country. The purpose of the presentation is for you to demonstrate effective subject knowledge of comparative criminal justice, organization of ideas, efficient delivery, and appropriate use of communication aid. You are free

Scenario You are the senior clinical analyst for the Oakridge

  Scenario You are the senior clinical analyst for the Oakridge Health System. Oakridge Health System is comprised of Medicare-certified hospitals, home health, hospice, inpatient rehabilitation and long-term care facilities. The Chief Medical Officer (CMO) needs to identify a quality improvement initiative for the next fiscal year. You are tasked

Using the research you conducted in 4-2, discuss any four

  Using the research you conducted in 4-2, discuss any four of the six elements below: What were the drivers or reasons for the leader to initiate a change effort? What were the hindrances or obstacles that emerged during the change effort? What did you find as the key role

How do your contexts help enable and constrain your readings of these

Please follow the directions and ensure you satisfy the criteria. Respond to one of the texts we encountered for class. Describe and analyze how your personal contexts act as a lens for your reading and how that lens reveals another level of discussion with the text’s ideas. Your essay must:

Pharmacokinetics and Pharmacodynamics

Discussion: Pharmacokinetics and Pharmacodynamics As an advanced practice nurse assisting physicians in the diagnosis and treatment of disorders, it is important to not only understand the impact of disorders on the body, but also the impact of drug treatments on the body. The relationships between drugs and the body can

An Epistolary on Racial Progress

For this assignment, write a brief letter to a younger relative in the style of Baldwin and Coates’ letters to their relatives. Your letter should address and answer the questions: Are things better now than they have been before? How should a young person reckon America’s ideals and America’s reality?

Discussion 11 unread reply.11 reply. After watching “How AIs Changing

Discussion 11 unread reply.11 reply. After watching “How AIs Changing the Future of HRLinks to an external site.” and reading “Ten HR Trends in the Age of Artificial IntelligenceLinks to an external site.”, please discuss the following: Identify at least two positive and two negative impacts of AI in the

Rated 5.0 (75times) Over 5$ iko na 5star 65 times

Rated 5.0 (75times) Over 5$ iko na 5star 65 times  Over 20$ not rated Iko na diamond Mark and a bot job flow iko poa n iko na balance ya 17 dollars Last bid was accepted today and order is already done n posted Naiuza 12k.  call/whatsaap 0710361369 Mr. Kiragu

1.Conduct an internet or library search on the Gramm-Leach-Bliley Act

1.Conduct an internet or library search on the Gramm-Leach-Bliley Act (GLBA). Read one or two articles that you find interesting. Identify the article(s) you read, including a link to the article(s). 2. Explain the main security and privacy requirements of GLBA. What data elements does GLBA protect? What are the

NRS-429V Week 4 Family Health Assessment

 Assignment Family Health Assessment Select a family to complete a family health assessment. (The family cannot be your own.) Before interviewing the family, develop three open-ended, family-focused questions for each of the following health patterns: Values, Health Perception Nutrition Sleep/Rest Elimination Activity/Exercise Cognitive Sensory-Perception Self-Perception Role Relationship Sexuality Coping NOTE:

The internet can be a valuable tool for research and

The internet can be a valuable tool for research and finding information. However, as the notes in previous units showed, teachers many times frown on students using the internet as a research tool because there is the potential that some web pages could contain false or misleading information. Still, the

After viewing the video and reading the material presented in

 After viewing the video and reading the material presented in the link ” Examples of Id, Ego, Superego” present a case example to your classmates and discuss in terms of the Id, Ego or Supergo. Explain why the case presented represents one of the aforementioned. Then choose a case example from a classmate with another

This week select an organization that has a Global platform

 This week select an organization that has a Global platform (they operate in more than one country), that has demonstrated operational excellence.  In this paper, perform the following activities: Name the organization and briefly describe what good or service they sell and where they operate. Note how they are a