Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
average
- Page 1
Re: Need Coding Help With A Project
Programming
Software Development
1 Month Ago
by Enzo_3
… on a similar assignment where I had to compute the
average
of numbers from a text file using higher-order functions… = reduce(lambda x, y: x + y, numbers)
average
= total / len(numbers) print("
Average
:",
average
) This worked perfectly for the numbers in…
Re: Question/Answering over SQL Data Using LangGraph Framework
Programming
Computer Science
2 Months Ago
by Pelorus_1
Through its combination of natural language processing and structured query generation, LangGraph makes interfacing with databases and extracting insights over SQL data easier than ever.
Re: Need Coding Help With A Project
Programming
Software Development
1 Month Ago
by Reverend Jim
I don't know why you would use `reduce` and `lambda` when you could just do sum(numbers) And the directive >You should make use of two higher-order functions (i.e., map and reduce, or something else) to simplify the design. is self-contradictory as using `map` and `reduce` instead of `sum` does not simplify the design. It …
Re: Need Coding Help With A Project
Programming
Software Development
1 Month Ago
by Reverend Jim
>Why put them down? Please explain to me how anything I said was a put down. If someone told me their methof of counting cows was "count the number of legs and divide by four", I would point out that it would be simpler just to count the number of cows. If I said "That's stupid, just count the cows", then that would be a …
Re: Need Coding Help With A Project
Programming
Software Development
1 Month Ago
by Dani
First of all, let me be blunt. I believe that Enzo only resurrected a 12 year old thread with the intent of spamming. You and I know that because, as moderators, we see in his profile his spamming attempts and his infractions. However, no one else coming across this thread sees that or knows that, so the other 2000 people reading this thread may …
Re: average(help)
Programming
Software Development
11 Years Ago
by andreas.petrou.967
…[arr_size],int history[arr_size] ,int physics[arr_size],int
average
[arr_size], int stud_num); //********************************************************* void f_name_s(char name[…+1<<": "; cin>>physics[count];
average
[count] = (math[count] + history[count] + physics[count]) /3 ;…
Average help
Programming
Software Development
17 Years Ago
by rlwright12
…], int scores[40][6], int &counter); //char assignGrade(int
average
); //Definition of main function void main() { headerfn(); //call to…}//end of outer for }//end of inputfn //***************************************************************** int calcAverage(float
average
[40][6], string names[40][2], int scores[40][6…
Re: Average help
Programming
Software Development
17 Years Ago
by WaltP
…;8; col++) //// start a loop.... why 2 to 8? { return
average
[40][6]; //// first thing done in the loop is return… an //// illegal value (last value is
average
[39][5]) cout<<
average
; //// never reaches this line } int Ptotal[40…
Re: Average help
Programming
Software Development
17 Years Ago
by rlwright12
…;8; col++) //// start a loop.... why 2 to 8? { return
average
[40][6]; //// first thing done in the loop is return… an //// illegal value (last value is
average
[39][5]) cout<<
average
; //// never reaches this line } int Ptotal[40…
Average
Programming
Software Development
13 Years Ago
by jonny93
… to create a simple code that can compute the
average
of a set of numbers read in using a… scanner. import java.util.Scanner; public class
Average
{ public static void main(String[] args) { double number = 0… should exit out of the loop and compute the
average
and print it like so. But when I enter…
Re: Average?
Programming
Software Development
17 Years Ago
by HowBil
…Ancient Dragon;516934]think about how would you calculate the
average
galles per k with pencil & paper. Given the …and gallons its just simply [icode]
average
= distance/gallons[/icode] If you want the
average
over several tanks of gas then …) math.[/QUOTE] Thanks for replying, I know about the
average
.. I just don't know how to get the sum…
Average?
Programming
Software Development
17 Years Ago
by HowBil
…someone could help. I need to calculate the
average
amount of gallons used per km driven but…include in my code(below) to include an
average
? I'd appreciate any advice you could provide…using namespace std; int main() { double gallons; double
average
;// not used yet double distance; double distancegallon; cout<…
Re: Average?
Programming
Software Development
17 Years Ago
by Ancient Dragon
think about how would you calculate the
average
galles per k with pencil & paper. Given the distance and gallons its just simply [icode]
average
= distance/gallons[/icode] If you want the
average
over several tanks of gas then sum up all the gas you bought then do the division. This is just 5th grade (or earlier) math.
average
Programming
Software Development
13 Years Ago
by newprogrammer12
…`import java.util.Scanner; import java.text.DecimalFormat; public class
Average
{ public static void main(String[]args) { int count … new DecimalFormat("##.00"); System.out.println("\nThe
Average
is "+ twoDP.format((double)(total)/count)); } else…
Re: average
Programming
Software Development
17 Years Ago
by bumsfeld
… you could approach this project: [code=python]# exploring recursion def
average
(qq=[]): """ using empty list as default will…avg = sum(qq)/len(qq) print "
average
=", avg # the function calls itself (recursion)
average
() except: # actually anything but number will…
Re: average
Programming
Software Development
17 Years Ago
by Kabooom
… to make a program that will, for example, find the
average
of 3+4+5 and then later could have 6… of three numbers. When adding a new number to this
average
it would take the number of numbers (3) and multiply… it by the
average
(4), then add in the six and divide by the…
average
Programming
Software Development
17 Years Ago
by biggz
i need to build a recursive function which calculates the
average
of specific numbers entered ... so its fine till now but ... …
Average
Programming
Web Development
15 Years Ago
by web3
I made star voting script and i was wondering how to display
average
result?
Re: Average
Programming
Web Development
15 Years Ago
by network18
[QUOTE=web3;1045106]I made star voting script and i was wondering how to display
average
result?[/QUOTE] The matter is not clear with just this, until the code is seen. at least your queries first
average(help)
Programming
Software Development
11 Years Ago
by andreas.petrou.967
How to find this
average
for this programm read 3 grades for students #include <…
Re: average array
Programming
Software Development
18 Years Ago
by mathgirl
… 0; i < n; i++) { deviation = a[i] -
average
; sum += deviation * deviation; } return sqrt(sum/ (n - 1…double grade[6]; int i, total = 0; double
average
; cout.setf(ios::fixed); cout.setf(ios::showpoint); …within that range. It should compute the
average
grade and determine the equivalent letter grade…
Average for ArrayList with user input
Programming
Software Development
14 Years Ago
by hwalsh
…+ userName + ". You can find the
average
of your test grades."); printWelcome(); } } …} { printWelcome(); } } /** * Print C calculates
average
stored from arraylist. * @return c */ [COLOR="…
average sales
Programming
Software Development
16 Years Ago
by bpacheco1227
…"") 'totalSales = ?????? iCounter = iCounter + 1 '
average
= totalSales / iCounter 'MessageBox.Show(inputSales, averageTitle, MessageBoxButtons.OK…Loop While inputSales <> String.Empty
average
= totalSales / iCounter MessageBox.Show(inputSales, averageTitle…
Re: Average with Exception Handling
Programming
Software Development
14 Years Ago
by jtylerboy222
…cannot find symbol symbol : class BadInput location: class
Average
catch (BadInput e) ^
Average
.java:48: cannot find symbol symbol : variable n… location: class
Average
n = keyboard.nextInt(); ^
Average
.java:48: cannot find symbol symbol : variable keyboard…
Average of prime number between 1 & 100
Programming
Software Development
19 Years Ago
by mindfrost82
… Find the sum, then output the
average
. Any help or suggestions would be …2, totalPrimeNumbers = 1, x; double sumOfPrimes = 2,
average
; // while loop when n <= 100 while (…++; } // calculate
average
average
= sumOfPrimes / totalPrimeNumbers; // display
average
Console.WriteLine("The
average
of all prime numbers…
Re: Average of prime number between 1 & 100
Programming
Software Development
19 Years Ago
by mindfrost82
…, totalPrimeNumbers = 0, x; double sumOfPrimes = 0,
average
; // while loop when n <= 100 while …n; totalPrimeNumbers++; } n++; }
average
= sumOfPrimes / totalPrimeNumbers; Console.WriteLine("The
average
of all prime numbers between 1 and… 100 is: {0}",
average
); } } [/code] This is what …
Average with Exception Handling
Programming
Software Development
14 Years Ago
by jtylerboy222
… { try { int n, total, sum,
average
; Scanner keyboard = new Scanner(System.in); System…sum = n + sum;
average
= sum/total; System.out.println("
Average
is " +
average
); } } catch (BadInput e…
Re: Average for ArrayList with user input
Programming
Software Development
14 Years Ago
by Overbooked
… to check your printC() method. It's not calculating the
average
correctly. I recommend using the for loop to calculate the…
average
and use a double for
average
so you can have a result of…
average functions
Programming
Software Development
14 Years Ago
by sandersfm
… work. // this is the main //Now just need to write
average
functions. [CODE]#include<iostream> using namespace std; // function… = scores[i]; scores[i] = scores[0]; scores[0] = temp; } } double
average
= (scores[1] + scores[2] + scores[3] + scores[4]) / 4; cout…
Average and report to another workbook
Programming
Software Development
9 Years Ago
by Yiannis1234
…ActiveSheet Range("K7").Formula = "=
Average
(D4:D7)" Set shtJT = ActiveWorkbook.ActiveSheet… Range("L7").Formula = "=
Average
(E4:E7)" Set shtJT = ActiveWorkbook.ActiveSheet… Range("M7").Formula = "=
Average
(F4:F7)" Set shtJT = ActiveWorkbook.ActiveSheet…
1
2
3
17
Next
Last
Search
Search
Forums
Forum Index
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
Backlink Auditor
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC