User Profile
Collapse
-
Thanks alot, i will post back in a few days with my code if i have any problems. Thanks again. -
I dont have much yet, i need help starting. Then i will see what happens, and post back with questions.
ThanksLeave a comment:
-
Help on program
Can someone please help me with this program.
How would i go about writing a program which determines the prime numbers from 2 to 1000 in increasing order using the “sieve method of Eratosthenes”. AND Display the values determined to be prime for the user at the display device -
How would i do this
I need to create an array with 11 integers. They are 1,2,3,3,3,2,2,1 ,3,4,5.
I need to create an array from the source data list.
And I need to determine the mode of the array from above.
The program should account for the “exception” that no “mode” occurs – no value in the array occurs more than once.
Thanks much -
-
Thank you very much majiri, but can you explain to me how u did it?? I would like to know how to do this myself for future programs. Thanks.Leave a comment:
-
My program just says to use appropriate console output to make the process user friendly.Leave a comment:
-
How to find the mode of an array??
I dont know how to find the mode of an array.
I am to do the following.
(1) Given the following:
· A list of 11 integers; 1,2,3,3,3,2,2,1 ,3,4,5
(2) The program should:
· Creates an array from the source data list
· Determines the “mode” of the array (mode is a proper statistical term that is the value that occurs “most often”)
... -
Help starting program
I dont even know how to do this program can someone help me.
I am to create a program that when
(1) Given the following:
· A list of 11 integers; 1,2,3,3,3,2,2,1 ,3,4,5
(2) The program should:
· Creates an array from the source data list
· Determines the “mode” of the array (mode is... -
Alphabetically sorting
My program displays the unsorted list of names in the array. How do i display these names in alphabetical order also.
Here is my code.
#include <iostream>
using namespace std;
const int numNames = 10;
const int nameSize = 17;
void showArray(char [][nameSize],char);
void selectionSort(i nt [][nameSize], int);
int main()
{
... -
Help Degugging My Program
I am trying to write a program which sorts an array of supplied names.
These are the errors i am getting.
.cpp:39: error: expected identifier before '[' token
40: error: ISO C++ forbids declaration of `parameter' with no type
In function `void selectionSort(c har*, int*, int)':
41: error: expected `;' before "counter"
44: error: `counter' was not declared in this scope... -
Help Asap Debugging My Program
I am trying to write a program which sorts an array of supplied names.
Here are the errors i am getting.
33: error: expected unqualified-id before "for"
37: error: expected declaration before '}' token
AND HERE IS MY CODE
#include <iostream>
using namespace std;
const int numNames = 10;
const int nameSize = 17;
void... -
k1ckthem1dget started a topic Help Needed Asap Please Dealing With Sorting A List Of Names In An Arrayin CHelp Needed Asap Please Dealing With Sorting A List Of Names In An Array
I need to display the unsorted list of names and display the sorted list of names.
My program is getting a bunch of errors though, and i dont know why.
I am getting the following errors.
28: error: cannot convert `char (*)[17]' to `int*' for argument `1' to `void showArray(int*, int)'
33: error: expected unqualified-id before "for"
33: error: expected constructor, destructor, or... -
Help Sorting an array of supplied names
I need to display the unsorted list of names and display the sorted list of names.
My program is getting a bunch of errors though, and i dont know why.
I am getting the following errors.
28: error: cannot convert `char (*)[17]' to `int*' for argument `1' to `void showArray(int*, int)'
33: error: expected unqualified-id before "for"
33: error: expected constructor, destructor, or...
No activity results to display
Show More
Leave a comment: