Answer the following questions | Computer Science homework help

  

Answer the following questions:
 

Create your own Subprogram that does *not* use any input parameters. You decide the theme. You should provide the pseudocode and an example Subroutine call. Be sure to provide an overview of what your subprogram is doing.
 

Create your own Subprogram that uses at least one input parameter and a return parameter. You decide the theme. You should provide the pseudocode and an example Subroutine call. Be sure to provide an overview of what your subprogram is doing.
 

In your own words, explain the difference between passing parameters by value and passing parameters by reference. Differentiate, through a pseudocode example, passing by value and passing by reference. Be sure to provide an overview of what your subprograms are doing and what makes them different.
 

In this assignment, you will design a program to perform the following task:
Write a program using functions that asks the user for the dimensions (Length and Width) of a rectangle and calculates:
a) The area and perimeter of the rectangle
b) The length of the diagonal (use the Pythagorean Theorem: c2 = a2 + b2, where c = length of the diagonal; a = length; b = width)
This is a rectangle b
a
Before attempting this exercise, be sure you have completed all of chapter 7 and course module readings, participated in the weekly conferences, and thoroughly understand the examples throughout the chapter. There are 3 main components of your submission including the problem analysis, program design and documentation, and sample test data.
1. Provide your analysis for the following problem statement: Write a program that calculates the area, perimeter, and diagonal length of a rectangle whose dimensions (Length and width) are provided by the user.
Your analysis should be clearly written and demonstrate your thought process and steps used to analyze the problem. Be sure to include what is the required output? What is the necessary input and how you will obtain the required output from the given input? Also, include your variable names and definitions. Be sure to describe any necessary formulas and sample calculations.
2. Provide your program design for the problem you analyzed for calculating and displaying the area, perimeter, and diagonal (hypotenuse) length of a rectangle. Always work for modular design where possible. Be sure to use separate function for calculating the area; separate function for calculating the perimeter, and separate function for calculating the diagonal length of the rectangle. Use subprograms for Input and Output. Be sure to describe the fundamental tasks (i.e., things your program must do) needed to solve the problem so you can use a modular design. Provide pseudocode of your overall design that includes the Main module, subprograms, functions, and the order of the module calls; Hierarchy chart for the program. Finally, display the flow charts (using Raptor, or your favorite graphics editor) for each module.
 

Include header and step comments in your pseudocode, using a similar approach as the example provided in section 2.3 (textbook page 87). See example 2.8 on pages 87-88.
 

3. Prepare at least 3 sets of input data (Test data) along with the expected outputs for testing your program. Your test data can be presented in the form of a table as was shown in Assignment 1.
 

Submission requirements:
1. Your completed assignment should be saved as Word document and submitted to your WebTycho assignment area no later than the due date listed in the syllabus. Your document should be neat, detailed, well-written with minimal grammatical and spelling errors. Your name should be clearly listed on the first page along with the class/section, professor and due date. Your document should contain page numbers at the bottom of each page. Single or double space line formatting is acceptable. The Hierarchy Chart should be included in the Word document.
2. A separate file containing the Raptor flow chart.
You should name the file yournamehw4.docx (or yournamehw4.doc). So for my name Abrom Cooper, I would name my document abromcooperhw2.docx.
Use the attached HW4.doc template file containing the required sections. You should use this document to start your writing and fill in all of the details required.
 

Your final project will be to analyze, design, and document a simple program that utilizes a good design process and incorporates sequential, selection and repetitive programming statements as well functions and subprogram call and the use of array. The specific problem you need to solve for the final project is:
Design a program that will allow a user to input a list of positive numbers (terminated by 0) into an array, find the smallest and largest number in the array and the mean (average) of the numbers in the array, and output the result. use a subprogram to input the numbers, a







Calculate Your Essay Price
(550 words)

Approximate price: $22

Calculate the price of your order

550 words
We'll send you the first draft for approval by September 11, 2018 at 10:52 AM
Total price:
$26
The price is based on these factors:
Academic level
Number of pages
Urgency
Basic features
  • Free title page and bibliography
  • Unlimited revisions
  • Plagiarism-free guarantee
  • Money-back guarantee
  • 24/7 support
On-demand options
  • Writer’s samples
  • Part-by-part delivery
  • Overnight delivery
  • Copies of used sources
  • Expert Proofreading
Paper format
  • 275 words per page
  • 12 pt Arial/Times New Roman
  • Double line spacing
  • Any citation style (APA, MLA, Chicago/Turabian, Harvard)

Our guarantees

Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.

Money-back guarantee

You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.

Read more

Zero-plagiarism guarantee

Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.

Read more

Free-revision policy

Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.

Read more

Privacy policy

Your email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.

Read more

Fair-cooperation guarantee

By sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.

Read more

Order your essay today and save 10% with the coupon code: best10