Login|Contact Us
Question and Answer

Programming

Ask a Programming Question, Get an Answer ASAP!

  • Ask A Question
  • Browse Answers
  • Meet The Experts
  • How JustAnswer Works

1. Allow users to enter 10 numbers in double format 2.

 
Simit's Avatar
  • Answered by:Simit
  • Programming Tutor
  • Positive Feedback: 99.1 %
  • Accepted Answers: 226
Verified Expert
in Programming

Recent Feedback

Positive
Thank you,but this should be easy to find on the website.Not have to go through...
Positive
Knows so much and is patient!
Positive
Love it! Why didn't I ask earlier? I was already going to ship out that RAM to...
Positive
I did the reset as suggested. From the install CD I tried an install. Will not...
Positive
Simit gave thoughtful, knowledgeable and detailed answers to my questions and...
Positive
fast svc. good result
Positive
PERFECT!
Positive
GREAT AND FAST
Positive
answered my question - bought the cord computer works fine now!
Positive
Thanks very much for the help. Dick Turner

Customer Question

1. Allow users to enter 10 numbers in double format

2. Store the numbers in an array

3. Create and use a function to calculate the average of the numbers in the array

4. Output the average

 

Optional Information:
Computer OS: Windows XP
Browser: IE
Programming Language: C++
Compiler: Dev-C++

Submitted: 965 days and 9 hours ago.
Category: Programming
Value: $45
Status: CLOSED
Picture
Expert:  Simit replied 965 days and 9 hours ago.

Chat Conversation Started

Simit :

Hello. I can help you with this.

Simit :

When do you need this by?

Customer :

tonight

Simit :

Ok. I'll have this shortly.

Customer :

ok

Simit :

OK. I have posted the code at the link below:

Simit :

http://pastebin.com/tHXJ0fDV

Simit :

Let me know if you need any help with it. if that answered your question, please don't forget to click the ACCEPT button.

Picture
Expert:  Simit replied 965 days and 9 hours ago.

Chat Conversation Ended

If you are still working with your Expert on this question, you can post additional replies and receive additional information on this page.  If you received a satisfactory answer in Chat, you can accept the chat conversation above.

Picture
Expert:  Simit replied 965 days and 9 hours ago.

Let me know if you need help with that code:

http://pastebin.com/tHXJ0fDV

 

Customer replied 965 days and 9 hours ago.

Why does the program when run only say....press any key to continue?

Picture
Expert:  Simit replied 965 days and 9 hours ago.

It asks you for 10 numbers, then outputs the 10 numbers, and then says that.

Just to make sure you copied and pasted the whole thing, can you confirm the first and last lines of the code that you copied over there?

Customer replied 965 days and 9 hours ago.

using namespace std;

 

}

 

I copied it and put into dev-C++ it does not show error but window opens and it only says press any key to continue.

Picture
Expert:  Simit replied 965 days and 9 hours ago.

What version of Dev-C++ are you using?

Try this:

Click File -> New -> Source File
Then paste in that code.
Then press F9, and save that file with a different name than the previous ones.

Does it still do the same thing?

Customer replied 965 days and 8 hours ago.

yes it did. I'm not sure why

Picture
Expert:  Simit replied 965 days and 8 hours ago.

What version of Dev-C++ are you using?

Customer replied 965 days and 8 hours ago.

4.9.9.2

Picture
Expert:  Simit replied 965 days and 8 hours ago.

Take out the system ("pause"); near the end, and then recompile and run it. What happens then?

Customer replied 965 days and 8 hours ago.

I removed that and the window did not open at all. I added return(0) at the end and I did the same thing as before.... press any key

Picture
Expert:  Simit replied 965 days and 8 hours ago.

It sounds like a problem with your installation of Dev-C++. Try using DevC++ portable, which would be a default installation of DevC++, but it is completely self contained, so it won't mess with your current installation. You can get it from the link below:

http://sourceforge.net/projects/devcpp-portable/

Customer replied 965 days and 8 hours ago.

i tried downloading it twice. I'm trying it in visual C++ 2008 it compiled with no errors but I can't get it to run

Picture
Expert:  Simit replied 965 days and 8 hours ago.

Just in case there was a problem with the copy and paste, I zipped it up and uploaded it to the link below. Try that one:

http://wikisend.com/download/434576/average10nums.zip

Customer replied 965 days and 8 hours ago.

did it and still same result. could you type up psuedocode for this?

Picture
Expert:  Simit replied 965 days and 8 hours ago.

OK. I zipped up the whole copy of DevC++ portable, with the source code for this file in there as well. Just unzip it, and then run the dev-cppPortable.exe. Then go to "File -> Open", and point it to the .cpp file. Then press F9 after it loads.

Let me know if that doesn't work.

Customer replied 965 days and 8 hours ago.

where did you upload it to

Accepted Answer

Picture
Expert:  Simit replied 965 days and 8 hours ago.

Sorry about that. Here is the link:

http://wikisend.com/download/575368/Dev-CppPortable.zip

Expert TypeProgramming Tutor
Category: Programming
Pos. Feedback: 99.1 %
Accepts: 226
Answered: 8/22/2010

Experience: I have my Bachelor in Computer Engineering. I took many programming classes in college.

Ask this Expert a Question >
 
Tweet

3 Programmers are Online Right Now

Ask Your Question Now
Programming Questions Date Submitted
C ProgrammingDecode LabYour assignment is to write a C 4/9/2013
Reference the following instructions to assist you when completing 4/8/2013
First you will present the pseudo code with all the modules 4/8/2013
NA-112 4/8/2013
The first programming project involves completing a program 4/8/2013
RA-201 4/7/2013
This is my final exam for my c programming class. It is due 4/7/2013
Program Description Your program will display (see the sample 4/6/2013
RA-211 4/3/2013
ra-614 4/2/2013
RSS
Next 10 >
Ask A Programmer
Type Your Programming Question Here...
characters left:

Top Programming Experts

See More Programmers

In The News

Nbc
Washington Post
New York Times
Cnn
Learn More

How It Works

  • Ask an Expert
  • Get a Professional Answer
  • Ask Followup Questions
  • 100% Satisfaction Guarantee
Learn More
close
Find Expert answers related to your question.
Sign up using email
We will never post anything without your permission.
Already have an account? Sign in

Ask a Programmer

Get a Professional Answer. 100% Satisfaction Guaranteed.
81 Programmers are Online Now
Type Your Programming Question Here...
characters left:
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.
Truste
Contact Us | Terms of Service | Privacy & Security | About Us
© 2003-2013 JustAnswer LLC