I have to write a file that has 4 columns and an unspecified number of rows. It has to have 3 void functions, the first is a readgrades function with two parameters double grades [][4], and int n...
Type: Posts; User: brutal
I have to write a file that has 4 columns and an unspecified number of rows. It has to have 3 void functions, the first is a readgrades function with two parameters double grades [][4], and int n...
Ok, i have this problem where i have to return the largest and smallest of 3 numbers using a funcion with 5 parameters. Here is what I got so far. It doesn't compile right for some reason, where is...
the code is supposed to display the following
5 10 15 20
15 20 25 30
25 30 35 40
35 40 45 50
Here is my code
#include <iostream.h>
You've helped me alot prelude, thanks.
"write a program to have the user enter 10 numbers into an array of integers. Then have the program fill another array which contains the squares of the elements in the first array. Print out the...
Still playing with functions, here is a program that reads in 2 integers and points to a function for largest and a second fuction that sums them up calling them get_big and add_two. Take a look at...
I decided not to use an array and go with a so called easier way. here is the question again
"write a program to read in 3 doubles then call 2 functions get_sum and get_big. The functions get...
Ok folks, i'm stumped again. here is the question
"write a program to read in 3 doubles then call 2 functions get_sum and get_big. The functions get passed the 3 doubles and return, respectively,...
you guys are the best, thanks. I'll just study both of these for a while heh
Here is what I got so far based on your help, and the books. i am having a big problem with the start of the program and have the end figured out. I've almost got it, but i'm still hitting a wall. ...
Prof put this problem up today, and it is worded weird so i am having a very difficult time with it. If anyone can figure it out I'd appreciate it, i need to study a working version of it and none...
nice monster, guess i should re-read the nested for loop crap again. thanks .
nutshell's program was similar to the one i made, and it gave wrong values. question c gave good advice, but i need to do this problem with a for loop. I just can't think of a good way to go around...
I need to compute the sum of 1 + 1 * 2 + 1 * 2 * 3.... n (n being the number). so if n was 5 it would be 1 + 1 * 2 + 1 * 2 * 3 + 1 * 2 * 3 * 4 + 1 * 2 * 3 * 4 * 5 (exiting at 5). so far I got...
I'm just starting here, so please have a little patience with me. Here is the problem to start with.
"Write a program that reads in two numbers, n and k, from the data, then computes the sum of...