Welcome to Premium Paper Help

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

  Integration with traditional business models: Discuss the integration of VBM principles with traditional business strategies and management practices.

  Integration with traditional business models: Discuss the integration of VBM principles with traditional business strategies and management practices. How can businesses effectively align VBM values with their existing business frameworks?  reflecting on the following: Critically evaluate the Virtuous Business Model (VBM) in terms of its practical implementation and its

Assessment Description What special precautions or practices should a private practitioner adopt to minimize professional liability and ensure that their

Assessment Description What special precautions or practices should a private practitioner adopt to minimize professional liability and ensure that their treatment of clients remains soundly within the boundaries of professional practice standards? The American Counseling Association (ACA) as well as individual state counseling associations (i.e., ICA, AzCA) provide a variety

   Integrate communication that facilitates a partnership approach to quality care delivery. PC 3.2: Interact with

   Integrate communication that facilitates a partnership approach to quality care delivery. PC 3.2: Interact with others in a professional manner using appropriate communication and presentation skills. Interprofessional Communication and Collaboration Interprofessional communication and collaboration is when people from different backgrounds exchange information to work on the same concept. Interprofessional communication within

do this 此讨论为计分作业:满分 20 分* 截止时间 6月7日 23:45 Mujer sinvergüenza / Woman Without Shame: A Reading by Sandra Cisneros in Conversation with Cherrie

do this 此讨论为计分作业:满分 20 分* 截止时间 6月7日 23:45 📖 Mujer sinvergüenza / Woman Without Shame: A Reading by Sandra Cisneros in Conversation with Cherrie Moraga (EXTRA CREDIT) 4 4 按 ALT + F8 可查看快捷键列表  📖 Mujer sinvergüenza / Woman Without Shame A Reading by Sandra Cisneros: In Conversation with

Description ‫المملكة العربية السعودية‬ ‫وزارة التعليم‬ ‫الجامعة السعودية اإللكترونية‬ Kingdom of Saudi Arabia Ministry of Education Saudi

Description ‫المملكة العربية السعودية‬ ‫وزارة التعليم‬ ‫الجامعة السعودية اإللكترونية‬ Kingdom of Saudi Arabia Ministry of Education Saudi Electronic University College of Administrative and Financial Sciences Assignment 3 Introduction to International Business (MGT 321) Due Date: 04/05/2024 @ 23:59 Course Name: Introduction to International Business Course Code: MGT-321 Student’s Name: Semester:

 Analytical Curation – Public health Insert title of assessment Community

 Analytical Curation – Public health Insert title of assessment Community Safety and Education Assessment Task One Insert student name Insert student number Word Count (not including references): Please note: this template is a suggestion only .  You are free to use the structure, including headings and subheadings that best suit

Concept Map Template Primary Diagnosis: ___________________________________________________________ 1. Describe the pathophysiology of the

Concept Map Template Primary Diagnosis: ___________________________________________________________ 1. Describe the pathophysiology of the primary diagnosis in your own words. What are the patient’s risk factors for this diagnosis? Pathophysiology of Primary Diagnosis Causes Risk Factors (genetic/ethnic/physical) 2. What are the patient’s signs and symptoms for this diagnosis? How does the diagnosis

Description ‫المملكة العربية السعودية‬ ‫وزارة التعليم‬ ‫الجامعة السعودية اإللكترونية‬ Kingdom of Saudi Arabia Ministry of Education Saudi

Description ‫المملكة العربية السعودية‬ ‫وزارة التعليم‬ ‫الجامعة السعودية اإللكترونية‬ Kingdom of Saudi Arabia Ministry of Education Saudi Electronic University College of Administrative and Financial Sciences Assignment 1 Strategic Management (MGT 401) Due Date: 13/07/2024 @ 23:59 Course Name: Strategic Management Student’s Name: Course Code: MGT 401 Student’s ID Number: Semester:

TOPIC: Acquired Cardiac Disease while pregnant1. Describe the assigned obstetrical or newborn disorder, the pathophysiology of the disorder, and

TOPIC: Acquired Cardiac Disease while pregnant1. Describe the assigned obstetrical or newborn disorder, the pathophysiology of the disorder, and compare/contrast that to normal findings.2. Discuss the common treatments, progression, and outcomes of the condition/complications.3. Implement health promotion concepts related to the topic.ASSIGNMENT GUIDELINES FOR THE WRITTEN ASSIGNMENT: 1. The student