Homework

Homework Questions? Ask a Tutor for Answers ASAP

Ask an Expert,
Get an Answer ASAP!

This answer was rated:

6) Write a program that contains a main function and three…

6) Write a program that...
6) Write a program that contains a main function and three other functions that
will return various attribute information about an array of floating point
numbers:array_sum - total sum of all array elements
array_avg - average of all array elements
array_min - the smallest number of the array elementsThe main function should print the values returned from each function at the
end of the program.
Show More
Show Less
Ask Your Own Homework Question
Answered in 5 minutes by:
10/15/2017
LogicPro
LogicPro, Engineer
Category: Homework
Satisfied Customers: 13,507
Experience: Expert in Java C++ C C# VB Javascript Design SQL HTML
Verified
Hi
Ask Your Own Homework Question

welcome

Ask Your Own Homework Question
Customer reply replied 10 months ago
Hi
Customer reply replied 10 months ago
I need it by Tuesday.
Customer reply replied 10 months ago
Function prototypes need to be at the begining of the function
Is it in cpp?
Ask Your Own Homework Question
Customer reply replied 10 months ago
What is cpp
Customer reply replied 10 months ago
No,it is in c

ok

Ask Your Own Homework Question

Here you go: ArrayOperations.c

Let me know or

Leave your rating by selecting five stars located on the top right of the question page. Giving a positive rating compensates the Expert for their time with you. Please remember that your Expert will not be paid until you leave a positive rating for the answer. If the stars are grayed out or you cannot click on the stars to rate your experience, reply to your Expert and let them know so they can adjust your question and allow you to rate.

Please consider adding bonus after rating
http://ww2.justanswer.com/help/what-if-expert-does-really-fantastic-job-hl
You can also come back and add a bonus at a later date by using the "Write a review or give a bonus" button on your question page.
We can continue the conversation until you're satisfied and rate my answer as excellent to credit me. I can address follow up questions and I'm always here to help.

You can ask me again using "For LogicPro only" at the start of your questions like other customers to get instant answers. It will ensure that question is for me.
Please bookmark my profile page:
http://www.justanswer.com/homework/expert-logicpro/
so you can come back and ask me a question anytime.

Thank you for using this site!

LogicPro

Ask Your Own Homework Question
Customer reply replied 10 months ago
Sorry, i didn't mention earlier. It needs to look like this.
//**************************************************************/
// Function: getHours
//
// Purpose: Obtains input from user, the number of hours worked
// per employee and stores the result in an local variable
// that is passed back to the calling function.
//
// Parameters: clockNumber - The clock number of the employee
//
// Returns: hoursWorked - hours worked by the employee in a given week
//
//**************************************************************/
float getHours (long int clockNumber)
{
float hoursWorked; /* hours worked in a given week */

I'll check and reply

Ask Your Own Homework Question
Customer reply replied 10 months ago
Add some comments to my code in my function.Also. each function needs a function comment header.Comment each local variable declaration.
Customer reply replied 10 months ago
Thank you

can you provide full code. Looks like it truncated

Ask Your Own Homework Question
Customer reply replied 10 months ago
Add file comment block here per coding standards with your name */#include <stdio.h>/* constants */
#define NUM_EMPL 5
#define OVERTIME_RATE 1.5f
#define STD_WORK_WEEK 40.0f/* function prototypes */
/* I added one below to get you started */
float getHours (long clockNumber);
void printData (long int clockNumber[], float wageRate[], float hours[],
float overtime[], float gross[], int size);/* IMPORTANT: Add other function prototypes here as needed */int main()
{/* Variable Declarations */long int clockNumber[NUM_EMPL] = {98401,526488,765349,34645,127615}; /* ID */
float gross[NUM_EMPL]; /* gross pay */
float hours[NUM_EMPL]; /* hours worked in a given week */
int i; /* loop and array index */
float overtime[NUM_EMPL]; /* overtime hours */
float wageRate[NUM_EMPL] = {10.60,9.75,10.50,12.25,8.35}; /* hourly wage rate */for (i = 0; i < NUM_EMPL; ++i)
{/* Function call to get input from user. */
hours[i] = getHours (clockNumber[i]);/* Function call to calculate overtime *//* Function call to calculate gross pay */}/* Print the header info *//* Print all the employees - call by reference */
printData (clockNumber, wageRate, hours,
overtime, gross, NUM_EMPL);return (0);}//**************************************************************/
// Function: getHours
//
// Purpose: Obtains input from user, the number of hours worked
// per employee and stores the result in an local variable
// that is passed back to the calling function.
//
// Parameters: clockNumber - The clock number of the employee
//
// Returns: hoursWorked - hours worked by the employee in a given week
//
//**************************************************************/float getHours (long int clockNumber)
{float hoursWorked; /* hours worked in a given week *//* Get Hours for each employee */
printf("\nEnter hours worked by emp # %06li: ", clockNumber);
scanf ("%f", &hoursWorked);return (hoursWorked);
}//**************************************************************/
// Function: printData
//
// Purpose: Prints out all the employee information in a
// nice and orderly table format.
//
// Parameters:
//
// clockNumber - Array of employee clock numbers
// wageRate - Array of employee wages per hour
// hrs - Array of number of hours worked by an employee
// overtime - Array of overtime hours for each employee
// gross - Array of gross pay calculations for each employee
// size - Number of employees to process
//
// Returns: Nothing (call by reference)
//
//**************************************************************/void printData (long int clockNumber[], float wageRate[], float hours[],
float overtime[], float gross[], int size)
{/* This is an example of a "Stub" ... you need to add code ... */
/* but you can set up and call it and fill in the details later */
/* Add a loop here and print information on each employee */
/* in a nice orderly table, just like you have done before */
/* HINT: The loop and code setup is similar to how the getInput */
/* function is implemented in the alternate template (by reference)*/
}/* Add other functions here as needed */
/* ... remember your comment block headers for each function */

It is till truncated

Zip all files; upload the zipped file to http://wikisend.com and post download link here.

Ask Your Own Homework Question
Customer reply replied 10 months ago
This is just an example, i need the function you send it to me to look something like this

ok.

Ask Your Own Homework Question
This answer is protected
Would you like to ask this question?
If you've already paid for this answer, simply Login.
LogicPro
LogicPro, Engineer
Category: Homework
Satisfied Customers: 13,507
Experience: Expert in Java C++ C C# VB Javascript Design SQL HTML
Verified
LogicPro and 87 other Homework Specialists are ready to help you
Ask your own question now
Customer reply replied 10 months ago
Thanks
Was this answer helpful?

How JustAnswer works

step-image
Describe your issueThe assistant will guide you
step-image
Chat 1:1 with a tutorLicensed Experts are available 24/7
step-image
100% satisfaction guaranteeGet all the answers you need
Ask LogicPro Your Own Question
LogicPro
LogicPro
LogicPro, Engineer
Category: Homework
Satisfied Customers: 13,507
13,507 Satisfied Customers
Experience: Expert in Java C++ C C# VB Javascript Design SQL HTML

LogicPro is online now

A new question is answered every 9 seconds

How JustAnswer works:

  • Ask an ExpertExperts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional AnswerVia email, text message, or notification as you wait on our site. Ask follow up questions if you need to.
  • 100% Satisfaction GuaranteeRate the answer you receive.

JustAnswer in the News:

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

What Customers are Saying:

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

Mary C.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!!!!

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

GPHesperia, CA

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

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

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

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

DianeDallas, TX

< Previous | Next >

Meet the Experts:

LogicPro

LogicPro

Engineer

13,507 satisfied customers

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

Manal Elkhoshkhany

Manal Elkhoshkhany

Tutor

4,556 satisfied customers

More than 5000 online tutoring sessions.

Linda_us

Linda_us

Finance, Accounts & Homework Tutor

3,138 satisfied customers

Post Graduate Diploma in Management (MBA)

Chris M.

Chris M.

M.S.W. Social Work

2,699 satisfied customers

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

F. Naz

F. Naz

Chartered Accountant

2,194 satisfied customers

Experience with chartered accountancy

Bizhelp

Bizhelp

CPA

1,887 satisfied customers

Bachelors Degree and CPA with Accounting work experience

Seanna

Seanna

Tutor

1,781 satisfied customers

3,000+ satisfied customers, all topics, A+ work

< Previous | Next >

Related Homework Questions
I need help writing a program. Here are the requirements: CMIS 141: Java Programming Pro
I need help writing a program. Here are the requirements: CMIS 141: Java Programming Project 3 This project focuses on demonstrating your understanding of Classes and objects. In addition you will dem… read more
LogicPro
LogicPro
Engineer
Bachelor of Technology
13,507 satisfied customers
Design a program that will allow a user to Input a list of
Design a program that will allow a user to Input a list of his family members along with their relation (i.e. brother, sister, etc.), age and state where they reside. Determine and print the average a… read more
Ansh P.
Ansh P.
System Analyst
Bachelor\u0027s Degree
6,393 satisfied customers
For ATLPROGDo the following two programs: 1. Write a Java
For ATLPROGDo the following two programs: 1. Write a Java application that inputs three integers from the user and displays the sum, average, product, smallest and largest of the numbers. Use a Scanne… read more
ATLProg
ATLProg
Sr Software Engineer
Master\u0027s Degree
46 satisfied customers
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
ATLProg
ATLProg
Sr Software Engineer
Master\u0027s Degree
46 satisfied customers
1. Write a program that reads integers from the keyboard. If
1. Write a program that reads integers from the keyboard. If any of the numbers are negative, it returns a negative number. If all the numbers are positive, it returns their average. 2. Write a progra… read more
ehabtutor
ehabtutor
C.E.O
Bachelor\u0027s Degree
12 satisfied customers
Write a program that reads the name of a data file which contains
Write a program that reads the name of a data file which contains student ids (such as c1004400) and their scores. The program will find and print the average score, the number of students processed, … read more
LogicPro
LogicPro
Engineer
Bachelor of Technology
13,507 satisfied customers
Your job is to change the program so that it no longer uses
Your job is to change the program so that it no longer uses indexes anywhere within the executable code but instead uses pointers into the array. Hint: This will be easy to think about if you change a… read more
Raj
Raj
SAP ABAP Consultant
Master\u0027s Degree
27 satisfied customers
Exercise P1.1. Write a program that prints the message, “Hello,
Exercise P1.1. Write a program that prints the message, “Hello, my name is Hal!” Then, on a new line, the program should print the message “What would you like me to do?” Then it's the user's turn to … read more
LogicPro
LogicPro
Engineer
Bachelor of Technology
13,507 satisfied customers
A. Write a Java program that: Asks for an integer value n; Then
A. Write a Java program that: Asks for an integer value n; Then asks for n number(s) from the user; Finally displays the average of all the numbers typed in by the user. B (5 points) Write a program s… read more
ATLProg
ATLProg
Sr Software Engineer
Master\u0027s Degree
46 satisfied customers
1) Write a macro, MIN5 (A, B, C, D, E), which takes five arguments
1) Write a macro, MIN5 (A, B, C, D, E), which takes five arguments and returns smallest value. 2) Write a function which will determine how many words are in a given string. You can assume that one or… read more
LogicPro
LogicPro
Engineer
Bachelor of Technology
13,507 satisfied customers
1. A Write a Java program that: Asks for an integer value
1. A Write a Java program that: Asks for an integer value n; Then asks for n number(s) from the user; Finally displays the average of all the numbers typed in by the user. B (5 points) Write a program… read more
ATLProg
ATLProg
Sr Software Engineer
Master\u0027s Degree
46 satisfied customers
COSC1415/COSC1436 Lab - Arrays Objectives: At the end
COSC1415/COSC1436 Lab - Arrays Objectives: At the end of this lab you should be able to: 1. use one-dimensional arrays in a program 2. initialize an array and store data in the array 3. find the sum, … read more
LogicPro
LogicPro
Engineer
Bachelor of Technology
13,507 satisfied customers
FOR LOGICPRO ONLY. Deadline: I need this by 3/12/2013 please. For
FOR LOGICPRO ONLY. Deadline: I need this by 3/12/2013 please. For this assignment please include: 1) Each function needs a fuction comment header 2) Comment each local variable in each function 3) Add… read more
LogicPro
LogicPro
Engineer
Bachelor of Technology
13,507 satisfied customers
C Programming C Programming Directions: Answer all
C Programming C Programming Directions: Answer all questions and follow the rules below. Please send one single text file (not Word or other formats) with all your code. Do not send multiple files! I … read more
LogicPro
LogicPro
Engineer
Bachelor of Technology
13,507 satisfied customers
For ATLProg OnlyCreate the pseudocode design that creates
For ATLProg Only Create the pseudocode design that creates and prints an array of sales amounts, determines the sum of the sales amounts, the average of the sales amounts, and find the highest of the … read more
ATLProg
ATLProg
Sr Software Engineer
Master\u0027s Degree
46 satisfied customers
1. Write a C++ program that reads following data from 2 input
1. Write a C++ program that reads following data from 2 input files called “gradein.txt”. 89 56 75 48 34 93 62 99 78 55 48 65 92 61 89 65 75 76 34 99 60 29 56 77 48 34 73 59 99 86 75 68 54 103 67 Seco… read more
R.R. Jha
R.R. Jha
Bachelor\u0027s Degree
150 satisfied customers
2. Write a Java application which tests the random number
2. Write a Java application which tests the random number generation abilities of Java. Random number generation is explained below.Your application should simulate rolling a pair of dice some number … read more
ATLProg
ATLProg
Sr Software Engineer
Master\u0027s Degree
46 satisfied customers
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
R.R. Jha
R.R. Jha
Bachelor\u0027s Degree
150 satisfied customers
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.

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.

Show MoreShow Less

Ask Your Question

x