CS 151 – HOMEWORK 2

(due: Thu, 9/12/13)

StudyAcer homework Experts at a Glance, Save Time and Excel

Writer avatar
Dr.Emma

Rating: 5/5    Reviews 482

Success rate 98%

Completed projects: 783

Hello, I am Prof Writers, I am a bold, accurate, and experienced tutor committed to providing clients with high quality, original, and timely work. As a writer, proficiency in several disciplines in academic writing is necessary, and that is why I prioritize on delivering quality and appropriate work. Be assured that I will always follow the lai...

Writer avatar
Dr.JamesPhD

Rating: 4.9/5    Reviews 373

Success rate 99%

Completed projects: 592

Hello, I am a full-time professional freelance writer with over 6 years experience in academic writing. I have a PhD in Strategic Management and have done several projects in business management, marketing and other subjects. This experience has helped me reinforce my ability to work in various fields and handle simple and complex topics. I am a...

Writer avatar
Dr.Success

Rating: 5/5    Reviews 1326

Success rate 97%

Completed projects: 1976

Hello :) My name is Dr.Success, I've started on my path as a professional writer mostly by writing essays. However, in the years since then, I've written various other academic papers, from research works to book reviews. From Sydney to New York, there are hundreds of students all over the world that are happy with the services I've provided the...

Writer avatar
MarvellousTutor

Rating: 5/5    Reviews 371

Success rate 99%

Completed projects: 1173

Hi there! Im MarvellousTutor, your perfect author with huge writing experience in English, Art and Business. What? Need assignment on another subject? No worries: I can deal with anything! If you're dreaming of the reliable, responsible and always-on-time writer, here I am! I manage my time greatly, thus, your deadline is highly important for me...

Writer avatar
Prof_Stephen

Rating: 4.7/5    Reviews 891

Success rate 97%

Completed projects: 1136

Hello there! My name is Prof Stephen. I have been a full-time freelance researcher and writer for a period of over 6 years. I have successfully completed over 1000 projects and assignments. I have had a good professional relationship with my clients who always come back for more quality papers since I highly value quality, professionalism, and i...

Writer avatar
Prof.TzKelly

Rating: 4.9/5    Reviews 244

Success rate 96%

Completed projects: 479

I'm ProfTzKelly, talented wordsmith, grammar afficionado, and writing machine. I'm written everything from outlines to screenplays and book reviews to advanced research papers. All you have to do to be well on your way to a great grade is chat with me! I'm experienced in all major styles, including APA, MLA, Chicago, Harvard, and Vancouver. You ...

Writer avatar
ProfAcer

Rating: 5/5    Reviews 465

Success rate 97%

Completed projects: 852

Hey! My name is ProfAcer, and my goal is to help you to get through a tough period of your life. I've been a student, and I know that the amount of work some professors expect you to do can be unfair and overwhelming. And that's without even accounting for the job you probably have an active social life each student should have. There is no sham...

Writer avatar
ProfessorEunice

Rating: 4.9/5    Reviews 412

Success rate 96%

Completed projects: 719

In academic writing, quality, originality, and deadlines are vital, and these are my primary offerings to all my clients. I have two years of experience as a full-time academic writer, with over 300 finance, economics, marketing, business, and general papers written from scratch. Since joining this site, I have also tackled sociology, healthcare...

Writer avatar
Think_Tank

Rating: 4.8/5    Reviews 319

Success rate 97%

Completed projects: 584

Hello! People call me ThinkTank, and I've been earning money as an academic writer for years. With a lot of works under my belt, you can bet that I've dealt with dozens of various topics and different forms of papers, including essays, research papers, and even dissertations. I like the challenge that comes with this job. I first fell in love wi...

 

CS 151 – HOMEWORK 2

(due: Thu, 9/12/13)

Do Not Copy. Order Custom, Original Paper.

 

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:

 

 

 

 


Need help with writing

 

CS 151 – HOMEWORK 2

(due: Thu, 9/12/13)

Get help



  • StudyAcer

    4.7/5
  • Trustpilot

    4.6/5
  • Sitejabber

    4.6/5

Please fill in the Order, to get Instant Homework Help


Attach files for the writers' reference