Homework

Homework Questions? Ask a Tutor for Answers ASAP

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

percentage each number makes up...

Given a list of non-negative numbers, work out what percentage each number makes up of the

total list. Formally, assume we are given a list of numbers x1, x2, . . . xN . For each element xj ,

calculate

xj

PN

i=1 xi

Input

The first line of input is an integer N. N non-negative integers follow, each on their own line.

Output

On their own line, output the percentage each number represents.

Example Input-Output Pairs

Sample Input #1

2

1

3

Sample Output #1

0.25

0.75

Sample Input #2

4

10

10

10

10

Sample Output #2

0.25

0.25

0.25

0.25

3.4

total list. Formally, assume we are given a list of numbers x1, x2, . . . xN . For each element xj ,

calculate

xj

PN

i=1 xi

Input

The first line of input is an integer N. N non-negative integers follow, each on their own line.

Output

On their own line, output the percentage each number represents.

Example Input-Output Pairs

Sample Input #1

2

1

3

Sample Output #1

0.25

0.75

Sample Input #2

4

10

10

10

10

Sample Output #2

0.25

0.25

0.25

0.25

3.4

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

Longest common subsequence algorithm The longest common

Longest common subsequence algorithm The longest common subsequence (LCS) is often used in the fields of DNA sequence comparison or version control. Please make the LCS algorithm according to the slid… read more

Given a list of numbers, determine the second largest and

Given a list of numbers, determine the second largest and second smallest element. Hint: one of the functions provided by algorithm might make this task much easier. Input The first line of input is a… read more

Given a list of names and grades, output the names in

Given a list of names and grades, output the names in alphabetical order, with their associated grade. Input The first line of input is an integer N. N lines follow, each containing a name and a mark,… read more

Write a program that reads in a single word and converts

Write a program that reads in a single word and converts each letter into its position in the alphabet (for instance, A→ 0, B→ 1, etc). The text will only contain uppercase letters. Your output should… read more

I have a question about game theory,. A new social

. A new social networking site has been introduced. There are individuals. Simultaneously, each individual decides whether to join the site or stay out of it. The payoff from staying out is 0. The payoff from joining is − where is privately known private value of networking for player , is the number of all individuals that join the website (including player ), 0 is the cost of joining. Compute a symmetric Bayesian Nash equilibrium for each of the following case. … read more

A research institute specializing in physiology is

A research institute specializing in physiology is conducting a study on the strain and effects of commuting trips done on a bicycle or walking. When the physiological strain of commuting trips has be… read more

Assignment 3 2-9 you must submit your code together with the

Assignment 3 For questions 2-9 you must submit your code together with the output of running your code on some sensible sample input. Submit the input and the output of your program along with your co… read more

Ada programmingThe input will contain an integer N on a line by itself

Ada programming The input will contain an integer N on a line by itself, representing the number of events in the list. This is followed by N lines, each containing 3 integers: a stage number, a start… read more

You will get several big numbers. You have to sort these numbers

You will get several big numbers. You have to sort these numbers in decreasing order. Input The first line is an integer N (1≤N≤10000) means the number of big numbers. In the following lines, each lin… read more

"for logicpro"Objective:To write a program to remove

"for logicpro" Objective: To write a program to remove duplicates from an array. Assignment: Write a program that inputs an array of 10 integers from the user, and removes the duplicate array elements… read more

c++ program:Given a real number a and a non negative integer

c++ program: Given a real number a and a non negative integer n, find a^n using recursion. You are required to input a and n from the console. Given a list of integers and an element x, locate x in th… read more

HELP Please! Need Pseudo code for array comparison in Python

Attachment: 2013-05-02_122655_pseudo_code_for_later_implementation_in_python.docx I have a list of data (array) from an experiment: v1 = 23, -1, -3, ..., n v2 = 12, 0, -26, ..., n - - - vn = -1, -1, 1… read more

In this assignment you will write a Java program that prompts

In this assignment you will write a Java program that prompts the user for a string, extracts the integers from it, then displays the list of integers one line at a time. It's very similar to an earli… read more

In this assignment you will write a Java program that prompts

In this assignment you will write a Java program that prompts the user for a string, extracts the integers from it, then displays the list of integers one line at a time. It's very similar to an earli… read more

write a program that reads an integer matrix A from standard

write a program that reads an integer matrix A from standard input, and outputs the followings: • input matrix A • transpose matrix AT • product of the input matrix with its transpose A× AT The input … read more

How would I solve this 1. Given a list of N line segments

How would I solve this: 1. Given a list of N line segments on the X axis: (x1, x2) where i = 1 to N; And then a list of M queries. Each query inputs one x-coordinate and you need to output the set of … read more

can you comment on coefficient signs, statistical ...

can you comment on coefficient signs, statistical significance and magnitude for the folloing data &nbs p; coefficient tstat Pvalue lower 95% upper 95% x1 -0,09 -0,14 0,9 -0,14 &n bsp;0,12 x2 2,9 3,3 … read more

Find lim Sn (S has a line over it) for the area bounded by ...

Find lim Sn (S has a line over it) for the area bounded by f(x) = 2x, x = 1 and y = 0. Under the lim is n arrow sign Show all work… 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 >

Scott

MIT Graduate

5,697 satisfied customers

MIT Graduate (Math, Programming, Science, and Music)

LogicPro

Engineer

20,030 satisfied customers

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

Manal Elkhoshkhany

Tutor

4,843 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,852 satisfied customers

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

F. Naz

Chartered Accountant

2,280 satisfied customers

Experience with chartered accountancy

Jaun

Teacher

1,965 satisfied customers

Masters in Business Administration.

< 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.