-
Replied To a Post in Old old programmer needs some personal help!
You might like to see this for beginners in Python ... http://developers-heaven.net/forum/index.php/topic,46.msg89.html#msg89 You will find that Python code is also very compact ... A good (and it is also free … -
Began Watching How to reverse an integer array recursively with 2 parameters?
Hi all, I have a question on how to reverse an integer array **recursively** with only 2 paramters. #include <stdio.h> void reverseAr(int ar[], int size); int main() { int size; … -
Replied To a Post in How to reverse an integer array recursively with 2 parameters?
You could use pointers to begin and end of array ... /* recursiveReverseAry.c */ /* 2015-02-27 */ #include <stdio.h> void reverseAry( int* beg, int* end ); void printAry( const int* … -
Replied To a Post in C++ Register Class coding. Help Please
This example may help you to get started ... // classCashRegister.cpp // // 2015-02-27 // #include <iostream> #include <iomanip> #include <string> #include <vector> using namespace std; // a utility useful … -
Began Watching C++ Register Class coding. Help Please
The tools Hal’s sells are: Hammers: $10.99 Wrenches: $10.99 Levels: $19.99 Tape Measures: $4.99 Screwdrivers: $8.99 In order to make things easier in the long run you have decided to … -
Replied To a Post in C++ Register Class coding. Help Please
You need to re-read the 'problem' ... > Write a c++ program that does the following: > Create a Register class that can store all of the receipts > for … -
Replied To a Post in class myArray
But ... If you wished to take in ONLY 5 VALID int's, ALL AT ONCE, ALL on one line ... you could code something like this: // take in loop … -
Replied To a Post in class myArray
You seem more than just a little lost :) Programming can become enjoyable when you understand how to break up a problem into steps and get a working solution for … -
Replied To a Post in Difference of lowest score to highest score
You could try something like this (that also validates input) ... int main() { int ary[5] = {0}; // get 'array' to hold 5 ints ... int low, high; // … -
Began Watching class myArray
Hey everyone so here's a new code and it compiles but it won't let me separate the data and add more questions for the user. Please help me and thanks … -
Replied To a Post in class myArray
> read the five integers the user inputs then adds it to the list which reads back to you ... At first, just use an array of int to simulate … -
Began Watching Difference of lowest score to highest score
Enter five scores and display the lowest score and the difference of each score from the highest score. I'm so confused. I don't know if i'll use array or looping. … -
Replied To a Post in Difference of lowest score to highest score
> Enter five scores and display the lowest score > and the difference of each score from the highest score. You will need two loops and an array to hold … -
Began Watching How to learn c++?
Hi.I'm 16 years old and i am studying c++ at highschool.The thing is i really think what we do at class is really...useless(and easy). I mean i don't think it … -
Replied To a Post in How to learn c++?
Write lots of code and solve many coding problems ... Some great coding examples can fast-track the process provided that you study the examples and DO understand them ... You … -
Replied To a Post in How to do standard deviation in c++ (using arrays)?
@ddanbe: Just saying 'is' ... in a softer way :) Friendly folks here at Dani's place ... do not want to scare off potential fan's for Dani ... eh? -
Began Watching SQL injection with python
Hello fellow python lovers of daniweb.com. This isn't as much a question as much as the fact that I want to see how different people would go about using python … -
Replied To a Post in SQL injection with python
or? .... could use latest Python 3 with: import sqlite3 -
Began Watching whats wrong with my code?
Here is the original task: * The Fast Freight Shipping Company charges the following rates: Weight of Package Rate per Pound 2 pounds or less $1.10 Over 2 pounds but … -
Replied To a Post in whats wrong with my code?
Or ... (sorry to be a little late getting back) ... you might like to see a type of 'table look up' solution approach .. that can reduce code bulk … -
Began Watching How to do standard deviation in c++ (using arrays)?
Can you make me a program that does this: Amount of numbers:5 // any number 123 // arrays 343 424 34234 344 // random numbers output mean: //calculates the mean … -
Replied To a Post in How to do standard deviation in c++ (using arrays)?
This seems to be duplicate post about the same problem as at ... https://www.daniweb.com/software-development/cpp/threads/485784/how-to-do-standard-viariance-in- So ... please use the above for further help ... (i.e. ... do NOT open a … -
Replied To a Post in How to do standard viariance in c++
Oops ... duplicate deleted -
Began Watching How to do standard viariance in c++
how would i make a program that outputs this: amount of vairiables: 3 3123 1412 2412 mean: 1414 standard viariance: 4344 -
Replied To a Post in How to do standard viariance in c++
You might like to look here to find an example of taking in numbers ... (into an array) and finding the sum and average values ... http://developers-heaven.net/forum/index.php/topic,2019.0.htm You will probably … -
Began Watching ++++x - undefined behavior?
Is double pre-incrementing undefined behavior? Like ++++x or even ++++++++x. I think it must be since it all occurs between sequence points. But what could possibly go wrong? Or do … -
Replied To a Post in ++++x - undefined behavior?
Also ... for examples like this: int a = 1; cout << "now a = " << (++(++a)) << endl; // two increments // vs ... int b = 1; … -
Replied To a Post in Problem: C
In light of what was said above by @Schol-R-LEA ... I would like to suggest that each student compare ... the below ... fairly equivalent student type numeric input usage … -
Replied To a Post in Fractional Decimal to Binary gives wrong value (sometimes garbage value)
Just saying ... that if I was using a MinGW compiler set to C90 or C99 ... I observed these messages: C:\MinGW\examples\test_long_double\checkOutDouble.c In function 'takeInDbl': 28 9 C:\MinGW\examples\test_long_double\checkOutDouble.c [Warning] unknown … -
Began Watching Make a for loop assign different variables?
print ("The scope of this program is to multiply two matrices together\ and print the result") while True: matrix1_rows = input("How many rows does matrix one have? ") matrix1_columns = … -
Replied To a Post in Make a for loop assign different variables?
You might like to also try data entry something like this: # takeInMatrix.py # def takeInRow( numCols ): data = input( "Enter "+str(numCols)+" numbers separated by a space: ") items … -
Replied To a Post in Fractional Decimal to Binary gives wrong value (sometimes garbage value)
I think that long double is not supported in many (most?) C compilers ... So use someting like this: #include <stdio.h> #include <ctype.h> /* 2 handy utilities for many C … -
Began Watching Problem: C
1.Input three unique numbers and print the different of the highest and lowest numbers. 2.Input three integers a determine if there are equal numbers . If There are equal numbers, … -
Replied To a Post in Problem: C
We like to help ... but if you want to learn to program then you must actually *practice coding* ... Can you code an *Hello World* type prgram? Can you … -
Began Watching Fractional Decimal to Binary gives wrong value (sometimes garbage value)
I'm having problems with this program. Everytime i enter a fractional decimal number, it displays -0.0000 or sometimes garbage values. Ex: Enter any fractional decimal number: 5.7 -2.888blah blah blah … -
Replied To a Post in Fractional Decimal to Binary gives wrong value (sometimes garbage value)
Did you try using type 'double' instead of type 'long double' ? -
Began Watching solution to question
c++ program that will convert between function kilogram to convert pounds to kilogram, a function celsius to convert temprature in dgrees fahrenheit to degrees celsius, A function fahrenhiet to convert … -
Replied To a Post in solution to question
You might like to look for an example to get some ideas to get started ... https://www.daniweb.com/software-development/cpp/threads/484356/convert-programs -
Began Watching Triangular Matrices
Please suggest alternate code for Traingular matrices. #include <iostream> using namespace std; int main(void) { int rows = 5, cols = 5; int **arr; // allocate and initialize the array … -
Replied To a Post in Triangular Matrices
Note your line 7 could be changed to ... int rows = 5; //, cols = 5; // cols is not used below and you could use functions for each … -
Began Watching i just want to know what are they asking ?????
A large program has been written for a company which rents out properties to tenants for long or short periods. There are separate data files which hold information about A … -
Replied To a Post in i just want to know what are they asking ?????
Any one want to suggest using SQL and linked tables ? (Note: Python 3 now comes with SQLite ... and that might be a nice student way to begin a … -
Replied To a Post in Convert programs
Just an example to try to get Dani in the top listing of Google search ... of just part 'a' (Part 'b' should be easy to add to the menu … -
Replied To a Post in Convert programs
Just an example to try to get Dani in the top listing of Google search ... of just part 'a' (Part 'b' should be easy to add to the menu … -
Began Watching Convert programs
a. degree fahrenheit to celsius and vice versa b. centimeter to feet and inches to feet -
Replied To a Post in Convert programs
I didn't see a link to Dani (in the top links) in that Google search ... Maybe it's time to do a nice student example ... using a menu and … -
Began Watching Type Casting and Set Precision
Make a C++ program that will ask for integer value and assign that integer value to variable A. Declare another floating point data type variable and name it as B … -
Replied To a Post in Type Casting and Set Precision
Can you show us the code you have so far, so that we can see how you are doing? If you sincerely wish for help with your then submitteed code … -
Began Watching Assigning the sum of two integers to a variable
Write a program that will ask for two integer numbers. Assign the first integer to the first operand and assign the second integer to the second operand. Declare a variable … -
Replied To a Post in Assigning the sum of two integers to a variable
Can you show us the code you have so far, so that we can see how you are doing? If you sincerely wish for help with your then submitteed code …
The End.