Homework

Homework Questions? Ask a Tutor for Answers ASAP

Connect one-on-one with {0} who will answer your question

Customer Question

1 Programming Problems For each of...

1 Programming Problems

For each of the following problems, use the top-down modular approach

and pseudocode to design a suitable program to solve it.

1. Input a list of positive numbers, terminated by 0, into an array Numbers.

Then, display the array and the largest and smallest number in it.

2. If X[1], X[2], …, X[N] is a list of N numbers and the mean (average)

of these numbers is M, then we define their standard deviation to

be the square root (see Section 3.4) of the number:

((X[1] – M)^2 + (X[2] – M)^2 + … + (X[N] – M)^2) / (N – 1)

Input an array of numbers, terminated by 0 (which is not considered

one of the numbers), and find its mean and standard deviation.

3. Input a list of employee names and salaries, and determine the

mean (average) salary as well as the number of salaries above and

below the mean.

4. Input the selling prices of all homes in Botany Bay sold during the

year 2002 and determine the median selling price. The median of a

list of N numbers is

The middle number of the sorted list, if N is odd.

The average of the two middle numbers in the sorted list, if N is

even.

(Hint: After inputting the prices into an array, sort that array.)

5. A magic square is a two-dimensional array of positive integers in

which

The number of rows equals the number of columns.

and

Every row, every column, and the two diagonals add up to the

same number.

For each of the following problems, use the top-down modular approach

and pseudocode to design a suitable program to solve it.

1. Input a list of positive numbers, terminated by 0, into an array Numbers.

Then, display the array and the largest and smallest number in it.

2. If X[1], X[2], …, X[N] is a list of N numbers and the mean (average)

of these numbers is M, then we define their standard deviation to

be the square root (see Section 3.4) of the number:

((X[1] – M)^2 + (X[2] – M)^2 + … + (X[N] – M)^2) / (N – 1)

Input an array of numbers, terminated by 0 (which is not considered

one of the numbers), and find its mean and standard deviation.

3. Input a list of employee names and salaries, and determine the

mean (average) salary as well as the number of salaries above and

below the mean.

4. Input the selling prices of all homes in Botany Bay sold during the

year 2002 and determine the median selling price. The median of a

list of N numbers is

The middle number of the sorted list, if N is odd.

The average of the two middle numbers in the sorted list, if N is

even.

(Hint: After inputting the prices into an array, sort that array.)

5. A magic square is a two-dimensional array of positive integers in

which

The number of rows equals the number of columns.

and

Every row, every column, and the two diagonals add up to the

same number.

Show More

Show Less

Was this answer helpful?

Describe your issueThe assistant will guide you

Chat 1:1 with a tutorLicensed Experts are available 24/7

100% satisfaction guaranteeGet all the answers you need

Related Homework Questions

For logicpro only Data Structures Lab - 2D Triangular Array

for logicpro only Data Structures Lab - 2D Triangular Array* Purpose: Triangular array* Complete the fillAry & prntAry function* int **fillAry(int *,int);* void prntAry(int **,int *,int)Modify the fun… read more

For logicpro only TestCase 0TestCase 1TestCase 2TestCase 3

for logicpro only TestCase 0TestCase 1TestCase 2TestCase 3 Executed: TruePoints 0 out of 5User OutputRead·in·a·2·dimensional·array·of·characters·and·sort·by·Row↵ Input·the·number·of·rows·<=·20↵ Inp… read more

For logicpro only A10 Sort using a 2-Dimension Array of

for logicpro only A10 Sort using a 2-Dimension Array of characters. 15pts F8 Sort using a 2-Dimension Array of characters. 15ptsTask-> Same as others which means implement the function prototypes t… read more

Question 4 An image file called image.txt consists of m+2

Question 4 An image file called image.txt consists of m+2 records as follows: Line 1 the number of rows in the image (m) Line 2 the number of columns in the image (n) Line 3 to Line m+2 the rows for t… read more

Suppose a researcher wanted to study the role of religious

Suppose a researcher wanted to study the role of religious belief, or religiosity, in society. This researcher sets up an inventory of properties, contrasting the mental images of a religious person a… read more

Goal: Using MATLAB Create a single *.m file (a MATLAB script

Goal: Using MATLAB Create a single *.m file (a MATLAB script file) that completes the five problems given below. At the beginning of your script file include comments with your name, section number an… read more

Determine the median selling price of all homes in a subdivision

Determine the median selling price of all homes in a subdivision named Botany Bay sold during one year. Allow the user to enter the number of houses sold and store their selling prices in an array. Th… read more

Write a complete Java class that will create a 2D array of

Write a complete Java class that will create a 2D array of randomly generated ints that of size 5 rows and 10 columns. Print the values of each cell to a 5x10 table. Write a method that computes the a… read more

ATLProg, Hey man, your work has been sucessful. All my assignments

ATLProg, Hey man, your work has been sucessful. All my assignments have been 100%. I have this next assignment to complete and a Final exam next week. Again this is simple programming and I'm sure you… read more

Lab # XXXXX (Two Programs) Program A. Develop a program

Lab # XXXXX (Two Programs) Program A. Develop a program containing 4 separate C++ functions to perform the following on a one-dimensional integer array LIST of dimension N: 1. Determine (i.e. “return”… read more

Due NLT 19 July. Problem has two parts. The project will

Due NLT 19 July. Problem has two parts. The project will be to analyze, design, and document a simple program that utilizes a good design process and incorporates sequential, selection and repetitive … read more

Hi LogicPro, I need your assistance again. Please be very detailed.

Hi LogicPro, I need your assistance again. Please be very detailed. Nice bonus will follow. I need the answer by next Wednesday. Thank you once again Input a list of positive numbers (terminated by 0)… read more

given the following Line class class Line{ private int length; public

given the following Line class class Line{ private int length; public Line(int length){ this.length = length; } public void multiply(int factor) { length *= factor; } public String toString() { return… read more

You will implement a menu system managing array of data. Your

You will implement a menu system managing array of data. Your program will ask the user to enter some data (double type) from standard input and store them in an array. Once the array is entered, the … read more

write a program that reads in a list of integer into an array

write a program that reads in a list of integer into an array with base type int. The output is to be a two-column list. The first column is a list of distinct array element;the second column is the c… read more

I have these three assignments on C++ program that are due

I have these three assignments on C++ program that are due today and i can not get them to work at all... i have trying for hours and hours....I really need help. These are the assignments and they mu… read more

Match the letter of the definition on the right to the appropriate

Match the letter of the definition on the right to the appropriate symbol on the left. Symbols Definitions 1. S (Uppercase Sigma) a. Population size 2. m (Mu) b. Summation 3. s (Lowercase Sigma) c. Fa… read more

I need help with writing a pseudocode for inputing the selling

I need help with writing a pseudocode for inputing the selling prices of all homes sold in Botany Bay In a year, and determine the median selling price. It is my assignment for IT 210 week 5 checkpoin… read more

Disclaimer: Information in questions, answers, and other posts on this site ("Posts") comes from individual users, not JustAnswer; JustAnswer is not responsible for Posts. Posts are for general information, are not intended to substitute for informed professional advice (medical, legal, veterinary, financial, etc.), or to establish a professional-client relationship. The site and services are provided "as is" with no warranty or representations by JustAnswer regarding the qualifications of Experts. To see what credentials have been verified by a third-party service, please click on the "Verified" symbol in some Experts' profiles. JustAnswer is not intended or designed for EMERGENCY questions which should be directed immediately by telephone or in-person to qualified professionals.

Ask-a-doc Web sites: If you've got a quick question, you can try to get an answer from sites that say they have various specialists on hand to give quick answers... Justanswer.com.

JustAnswer.com...has seen a spike since October in legal questions from readers about layoffs, unemployment and severance.

Web sites like justanswer.com/legal

...leave nothing to chance.

...leave nothing to chance.

Traffic on JustAnswer rose 14 percent...and had nearly 400,000 page views in 30 days...inquiries related to stress, high blood pressure, drinking and heart pain jumped 33 percent.

Tory Johnson, GMA Workplace Contributor, discusses work-from-home jobs, such as JustAnswer in which verified Experts answer people’s questions.

I will tell you that...the things you have to go through to be an Expert are quite rigorous.

Wonderful service, prompt, efficient, and accurate. Couldn't have asked for more. I cannot thank you enough for your help.

Freshfield, Liverpool, UK

This expert is wonderful. They truly know what they are talking about, and they actually care about you. They really helped put my nerves at ease. Thank you so much!!!!

Los Angeles, CA

Thank you for all your help. It is nice to know that this service is here for people like myself, who need answers fast and are not sure who to consult.

Hesperia, CA

I couldn't be more satisfied! This is the site I will always come to when I need a second opinion.

Kernersville, NC

Just let me say that this encounter has been entirely professional and most helpful. I liked that I could ask additional questions and get answered in a very short turn around.

Woodstock, NY

Thank you so much for taking your time and knowledge to support my concerns. Not only did you answer my questions, you even took it a step further with replying with more pertinent information I needed to know.

Elkton, Maryland

He answered my question promptly and gave me accurate, detailed information. If all of your experts are half as good, you have a great thing going here.

Dallas, TX

< Previous | Next >

LogicPro

Engineer

14,482 satisfied customers

Expert in Python,Java C++ C C# VB Javascript Design SQL HTML

Manal Elkhoshkhany

Tutor

4,720 satisfied customers

More than 5000 online tutoring sessions.

Linda_us

Finance, Accounts & Homework Tutor

3,138 satisfied customers

Post Graduate Diploma in Management (MBA)

Chris M.

M.S.W. Social Work

2,850 satisfied customers

Master's Degree, strong math and writing skills, experience in one-on-one tutoring (college English)

F. Naz

Chartered Accountant

2,270 satisfied customers

Experience with chartered accountancy

Bizhelp

CPA

1,887 satisfied customers

Bachelors Degree and CPA with Accounting work experience

Jabi

Tutor

1,795 satisfied customers

I've been an Expert on JustAnswer since July 2010.

< Previous | Next >

Disclaimer: Information in questions, answers, and other posts on this site ("Posts") comes from individual users, not JustAnswer; JustAnswer is not responsible for Posts. Posts are for general information, are not intended to substitute for informed professional advice (medical, legal, veterinary, financial, etc.), or to establish a professional-client relationship. The site and services are provided "as is" with no warranty or representations by JustAnswer regarding the qualifications of Experts. To see what credentials have been verified by a third-party service, please click on the "Verified" symbol in some Experts' profiles. JustAnswer is not intended or designed for EMERGENCY questions which should be directed immediately by telephone or in-person to qualified professionals.