Subprogram That Uses Input Parameter and A Return Parameter
Order ID:89JHGSJE83839 Style:APA/MLA/Harvard/Chicago Pages:5-10 Instructions:
Subprogram That Uses Input Parameter and A Return Parameter
- An iron arrowhead has an initial charge of 1.950e-6 C. How many electrons are required to give it a charge of −2.82 μC?
- Two grapes are given equal charges and held apart at a distance of 1.1 m. They experience a repulsive force of 2.2 N. Find the magnitude of the charge on each grape3. An electric field has a value of 350 N/C at a particular point in space, directed along the x axis. What is the force this field exerts at this point on a particle of charge (a) 5.00 μC? (b) −8.25 mC? (c) −525 C? (d) 5.34×10−15 C? Make sure to check the sign of your answer
- When a test charge of 6.0×10−10 C is placed at the origin, it experiences a force of 2.80e-3 N in the negative x direction from an external electric field. (a) What is the magnitude of the electric field at the origin? (b) If this field is due to a point charge at x = 4.0 m on the x axis, what is the amount of this charge?
- 6.3 μC point charge and a −1.7 μC point charge are separated by a distance of 0.00024 m. What is the electric potential energy of this system?
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 Web Tycho 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, aSubprogram That Uses Input Parameter and A Return Parameter
RUBRIC
Excellent Quality
95-100%
Introduction 45-41 points
The background and significance of the problem and a clear statement of the research purpose is provided. The search history is mentioned.
Literature Support
91-84 points
The background and significance of the problem and a clear statement of the research purpose is provided. The search history is mentioned.
Methodology
58-53 points
Content is well-organized with headings for each slide and bulleted lists to group related material as needed. Use of font, color, graphics, effects, etc. to enhance readability and presentation content is excellent. Length requirements of 10 slides/pages or less is met.
Average Score
50-85%
40-38 points
More depth/detail for the background and significance is needed, or the research detail is not clear. No search history information is provided.
83-76 points
Review of relevant theoretical literature is evident, but there is little integration of studies into concepts related to problem. Review is partially focused and organized. Supporting and opposing research are included. Summary of information presented is included. Conclusion may not contain a biblical integration.
52-49 points
Content is somewhat organized, but no structure is apparent. The use of font, color, graphics, effects, etc. is occasionally detracting to the presentation content. Length requirements may not be met.
Poor Quality
0-45%
37-1 points
The background and/or significance are missing. No search history information is provided.
75-1 points
Review of relevant theoretical literature is evident, but there is no integration of studies into concepts related to problem. Review is partially focused and organized. Supporting and opposing research are not included in the summary of information presented. Conclusion does not contain a biblical integration.
48-1 points
There is no clear or logical organizational structure. No logical sequence is apparent. The use of font, color, graphics, effects etc. is often detracting to the presentation content. Length requirements may not be met
You Can Also Place the Order at www.collegepaper.us/orders/ordernow or www.crucialessay.com/orders/ordernow