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

Week 4:

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.

Week 4 Notes – Mathematical Functions;  Characters and Strings

Recalling our Week 3 Notes:   We are using conditions – if/else and switch statements, and we use the diamond in flowcharting to show a condition, a question to be answered true or false or with multiple answers.  Section 3.5 of our textbook helps us with the flowcharting.

For Week 3, we have graded items due this week:

  1. Week 3 Discussion, (2) Week 3 Quizzes and Projects 3 & 5 from text, (3) Test Plan

WEEK 4 TASKS

We are working with (1) Mathematical Functions, and with (2) Characters & Strings.

We have our graded tasks as usual: 

        (1) Week 4 Discussion,  (2) Week 4 Quizzes and Projects 1 & 5, (3) Test Plan

Mathematical Functions from the standard Math Library, which we can find here, for example – Java Math Library.   We see the Math class, with methods/functions such as sqrt, pow, and round about 1/3 way down the page.  Almost anything you’d like to do with Math functions has already been written for you as a method/function in the Library. (In your next Java course, you’ll see much more use of Library classes as a tremendous time saver. No need to reinvent the wheel.   List of Standard Java Classes

Characters and Strings are also found in the standard Java Library – Character class, with methods such as equals, toUpperCase and toLowerCase (about ½ way down the page), and String class, with methods such as equals, equalsIgnoreCase, and contains (about ½ way down again, since methods/functions are below other information).

Then you have graded Projects 1 and 5, in which you will use what you have learned. 

Flowcharts – Our Test Plan flowcharts will be much easier in Week 4, without conditions.  In Week 5 we’ll work with Loops and will need conditions once again, with the diamond symbol. 

For Project 1: 

You will find this short, with input, calculation and output.  Look for the Math functions such as Math.sin (for the sine) and Math.PI for the constant PI.  

For Project 5:

We have another short program recognizing valid and invalid Social Security numbers.  Note that the Character class in Java has a method called isdigit().  

NOTE:  The Java Library contains more than 4400 classes such as the Math, Character and String classes.   These can provide functions/methods to do many tasks for you, just by using the method, such as:   answer = Math.sqrt(4444);

Share This Post

Email
WhatsApp
Facebook
Twitter
LinkedIn
Pinterest
Reddit

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

Related Questions

DESIGN A SURVEY: Researchers have long been interested in elements

DESIGN A SURVEY: Researchers have long been interested in elements that comprise happiness. If you were to design a survey to determine levels of happiness, what would you include? That is, what elements do you believe combine together to equal happiness? These will become your building blocks (predictive variables) with

Overview: For this task you will propose marketing and communication

 Overview: For this task you will propose marketing and communication strategies based on the target market and demographics for a department, program, or service of the Missouri Department of Health and Senior Services. This task will help you as you propose similar marketing and communication strategies for the final project

Respond  by offering one or more additional mitigation strategies or further insight into your colleagues’ assessment of big data opportunities and risks.                      Nursing Assignment Help

Respond  by offering one or more additional mitigation strategies or further insight into your colleagues’ assessment of big data opportunities and risks.                                                                Main Post                                                           Big data benefits Big data is the compilation of insurmountable information gathered. As Milton (2017) suggested, it encompasses everything from “digital technologies, online services,

Imagine you are the information systems security officer at your

Imagine you are the information systems security officer at your company and are tasked with creating a cybersecurity threat awareness training. You must create an infographic or job aid for the company’s intranet and a brief presentation for the company’s stakeholders, including executives, managers, and staff. Refer to the LinkedIn

Briefing note – Premium Paper Help

Premium Paper Help is a professional writing service that provides original papers. Our products include academic papers of varying complexity and other personalized services, along with research materials for assistance purposes only. All the materials from our website should be used with proper references.

Please review the video below and submit a summary of

  Please review the video below and submit a summary of the History of funk and the History of Dance and House music.  Please be sure to use APA format. Your summary must also include what you like or dislike and/or agree or disagree with about the history. The History of Funk

The Jesuit relation of influencing the Fundamentals of the Hurons Society

https://books-scholarsportal-info.cyber.usask.ca/en/read?id=/ebooks/ebooks0/gibson_crkn/2009-12-01/3/407438 https://www-fulcrum-org.cyber.usask.ca/epubs/2b88qc36z?locale=en (0):The topic: The Jesuit relation of influencing the Fundamentals of the Hurons Society ( this topic need to keep the meaning to be the same because this topic is discussed with the Prof. you can change the word in the topic if you want, but please keep the

The leader of a local health care organization, Kendra Klein,

The leader of a local health care organization, Kendra Klein, has noticed other health care organizations successfully incorporating strategic management practices. Kendra is considering using strategic management for her health care organization. She has hired you to research what the strategic planning development and implementation process is and to address

In “The Myth of Average”, Todd Rose, a high school

      In “The Myth of Average”, Todd Rose, a high school dropout turned Harvard faculty, talks about how a simple new way of thinking helps nurture individual potential.  As educators, we know that research shows we typically teach to the average student.  In this video, Todd Rose discusses teaching to

Use the Internet to look up some of the public

  Use the Internet to look up some of the public statements or speeches of an executive in a major corporation about a significant initiative such as entering into a joint venture or launching a new product line. What do you feel are the implications for making the internal and

Galloway, Katie (Dec 4, 2019).Inside the Fight Against the School-to-Prison

Galloway, Katie (Dec 4, 2019).Inside the Fight Against the School-to-Prison Pipeline (Links to an external site.). Frontline from PBS. A 10:16 min TV documentary about the school to prison pipeline. (April 8, 2021). Policing in America (Links to an external site.). Throughline from NPR. A 69 min podcast documentary about the origins

 Review the Stevens District Hospital Strategic-Planning Scenario about a fictional, not-for-profit acute care hospital in Jefferson City. The hospital

 Review the Stevens District Hospital Strategic-Planning Scenario about a fictional, not-for-profit acute care hospital in Jefferson City. The hospital provides a range of services, including medical, surgical, rehabilitation, and emergency care in a regional market of 80,000 people. This assignment and future course assignments will use this hospital and scenario information. You

The complete Writing Project and Presentation is found in Getting

  The complete Writing Project and Presentation is found in Getting Started. Upload the portion of the project due this week. Requirements: Writing, using software, and interpreting results is a large part of your learning experience. These assignments are designed to improve your use of technology and communication skills. Using

The death penalty is the ultimate of social control. What

 The death penalty is the ultimate of social control. What is your position on it? Give reasons for, or against the death penalty. 3 pages not counting cover or reference page!  must have Cover and Reference pages and must follow the APA format.12-inch font, double spaced, times new roman. Due

The coming of Donald Trump to prime politics introduced new

 The coming of Donald Trump to prime politics introduced new dynamics to the American political landscape. Has Donald Trump helped or hurt he GOP? Explain what the GOP stands for as a political party and what changes if any Donald Trump introduced to the party. Give at least one specific

Based on your current knowledge of critical thinking, consider your

  Based on your current knowledge of critical thinking, consider your strengths and weaknesses as it relates to being or becoming a critical thinker. Write 200–250 words using the following discussion prompts to guide the content of your initial post. Then, respond to at least two of your peers’ posts.

The pay model policies play a vital role in an

  The pay model policies play a vital role in an organization’s pay strategy. The second step of the total compensation strategy identifies with the objectives, alignment, competitiveness, contributions, and management in developing a successful strategy. What are your thoughts on your current or past compensation pay grades, levels, and/or

Siblings and families are often an overlooked piece of the

 Siblings and families are often an overlooked piece of the puzzle when  looking at families with children with special needs.  However, their  ability to handle the pressures and situations are very real and can be  helpful or harmful to the family. Watch the video Sibshops which is  posted below.