CS 151 – HOMEWORK 2(due: Thu, 9/12/13) – Savvy Essay Writers | savvyessaywriters.net

 CS 151 – HOMEWORK 2(due: Thu, 9/12/13) – Savvy Essay Writers | savvyessaywriters.net

 

CS 151 – HOMEWORK 2

(due: Thu, 9/12/13)

 

 

OPTIONAL WORK:

 

The Getting Started With TextPad tutorial describes how to obtain the TextPad Integrated Development Environment (IDE) and a Java compiler for home use. It’s up to you whether you’d like to obtain them for home use.

 

 

HOMEWORK SUBMISSION POLICIES:

 

·         For the first two homework assignments, submit your homework as hardcopy (paper) at the beginning of the class period. If you’re late to class, your homework is considered late.

·         Make sure that the problems in your homework document are in the same order as the problems in the homework assignment.

·         Starting with the third homework, you’ll be required to put all of your work into a computer document. If you’d like to do that for this homework, use Microsoft Word for the short answer and algorithm questions, use Microsoft Visio for the flowchart questions, and use Microsoft Excel for the trace questions.

·         You can find Visio on Park’s lab computers. To learn how to use it, use Visio’s help files, search the Internet for help, or ask a tutor in the Academic Support Center.

 

HOMEWORK ASSIGNMENT GUIDELINES:

 

As always, read and follow the guidelines as stated in the Homework Assignment Guidelines document. For this homework assignment, the document’s tracing and sample sessions sections are particularly relevant.

 

 

REVIEW QUESTIONS (Answers to “review questions” are in the book. Do not submit answers to review questions. But please take them seriously as they are good candidates for exam questions.):

 

Chapter 2: 11-19

 

 

Submit answers for all of the following questions.

 

EXERCISES:

 

Chapter 2: 2-6

 

ADDITIONAL EXERCISE:

Learn how to use TextPad by working your way through the Getting Started With TextPad tutorial. In the tutorial, you will be asked to enter two programs. For your Countdown program, submit hardcopy of 1) the source code, and 2) the output. Note that you’re not required to submit source code or output for your Hello program.

 


PROJECTS:

 

1.      [after §2.9] Loop termination by user-query method – flowchart

 

Draw a flowchart that calculates and prints the total cost for a series of purchases. Use a loop to repeatedly ask the user to enter the price and quantity of items purchased. Within the loop, accumulate the total cost of the purchases so far. The algorithm should generate a display of prompts, inputs, and final output that looks like this:

 

 

2.      [after §2.9] Loop termination by user-query method – pseudocode

 

Provide a solution to the previous problem in the form of pseudocode.

 

3.       [after §2.9] Loop termination by sentinel-value method

 

Write a pseudocode algorithm that calculates and prints the total cost for a series of purchases. Use a loop to repeatedly ask the user to enter the price and quantity of items purchased. Within the loop, accumulate the total cost of the purchases so far. Use a negative number for a sentinel value. More specifically, when the user enters a negative number for the price, the loop should terminate. The algorithm should generate a display of prompts, inputs, and final output that looks like this:

 

    


 

4.       [after §2.9] Loop termination by counter method

 

Write a pseudocode algorithm that calculates and prints the average number of goals scored per team for a series of soccer match scores. Your algorithm should initially ask the user for the number of soccer match scores that are to be entered. Use a counter loop to ensure that the loop repeats that number of times. Inside the loop, your algorithm should ask the user to enter two scores, one for each team. To read in the two scores, simply use two separate input statements in the normal manner. The algorithm should generate a display of prompts, inputs, and final output that looks like this:

 

 

Provide a graceful response if the number of scores equals zero:

 

 

 

 

.awasam-promo {
background-color: #9ED5EA;
color: white;
text-align: center;
padding: 10px;
}

.button {
background-color: #4CAF50;
border: none;
color: white;
padding: 10px 20px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
cursor: pointer;
border-radius: 10px;
}

.awasam-alert {
color: red;
}

“Get 15% discount on your first 3 orders with us”
Use the following coupon
FIRST15

Order Now

The post <p class="MsoTitle" align="left"> </p><p class="MsoTitle">CS 151 – HOMEWORK 2</p><p class="MsoNormal" style="text-align: center; mso-hyphenate: none;" align="center"><span style="letter-spacing: -.15pt;">(due: Thu, 9/12/13)</span></p><p class="MsoNor appeared first on Essay Writers.

 

Looking for a Similar Assignment? Order now and Get 10% Discount! Use Coupon Code “Newclient”

The post  CS 151 – HOMEWORK 2(due: Thu, 9/12/13) appeared first on Essay Writers.


 CS 151 – HOMEWORK 2(due: Thu, 9/12/13) was first posted on June 25, 2020 at 11:00 am.
©2020 "Essay Writers". Use of this feed is for personal non-commercial use only. If you are not reading this article in your feed reader, then the site is guilty of copyright infringement. Please contact me at savvyessaywriters@gmail.com

Source link


 CS 151 – HOMEWORK 2(due: Thu, 9/12/13) was first posted on June 25, 2020 at 7:01 am.
©2020 "My Assignment Geek". Use of this feed is for personal non-commercial use only. If you are not reading this article in your feed reader, then the site is guilty of copyright infringement. Please contact me at savvyessaywriters@gmail.com

ORDER NOW 

#write essay #research paper #blog writing #article writing #academic writer #reflective paper #essay pro #types of essays #write my essay #reflective essay #paper writer #essay writing service #essay writer free #essay helper #write my paper #assignment writer #write my essay for me #write an essay for me #uk essay #thesis writer #dissertation writing services #writing a research paper #academic essay #dissertation help #easy essay #do my essay #paper writing service #buy essay #essay writing help #essay service #dissertation writing #online essay writer #write my paper for me #types of essay writing #essay writing website #write my essay for free #reflective report #type my essay #thesis writing services #write paper for me #research paper writing service #essay paper #professional essay writers #write my essay online #essay help online #write my research paper #dissertation writing help #websites that write papers for you for free #write my essay for me cheap #pay someone to write my paper #pay someone to write my research paper #Essaywriting #Academicwriting #Assignmenthelp #Nursingassignment #Nursinghomework #Psychologyassignment #Physicsassignment #Philosophyassignment #Religionassignment #History #Writing #writingtips #Students #universityassignment #onlinewriting #savvyessaywriters #onlineprowriters #assignmentcollection #excelsiorwriters #writinghub #study #exclusivewritings #myassignmentgeek #expertwriters #art #transcription #grammer #college #highschool #StudentsHelpingStudents #studentshirt #StudentShoe #StudentShoes #studentshoponline #studentshopping #studentshouse #StudentShoutout #studentshowcase2017 #StudentsHub #studentsieuczy #StudentsIn #studentsinberlin #studentsinbusiness #StudentsInDubai #studentsininternational