Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~8K People Reached
Favorite Forums
Favorite Tags
c++ x 55
Member Avatar for afg_91320

im making a grade book code using functions and SINGLE arrays (multi arrays would be easier, but my teacher wants this in our code) outline: from main() ask the user for info about 4 students ---> use functions getStudentInfo() 4x (once per student; im assuming this will have the students …

Member Avatar for mrboolf
0
292
Member Avatar for afg_91320

i cant seem to find what is wrong with this piece of code: looks good to me-but my hw says it has an error in the code. [code] struct TwoVals { int a = 5; int b = 10; }; int main() { TwoVals varray[1]; varray.a[0] =1; return0; } [/code]

Member Avatar for Narue
0
164
Member Avatar for afg_91320

im designing a program where it calls a function that uses the linear search algorithm to locate one of the values. function must keep a count of the comparisons it makes until it finds the value. the program then calls the binary search (a sep. function) to locate the same …

Member Avatar for Lerner
0
108
Member Avatar for afg_91320

i have this given structure: [code] struct Tempscale { double farenheit; double centigrade; }; struct Reading { int windSpeed; double humidity; Tempscale temperature; }; [/code] i am then asked: define a Reading structure variable is this ok: Reading data; write statements that will display following data: wind speed : 37mph …

Member Avatar for Ancient Dragon
0
391
Member Avatar for afg_91320

hi guys i have a problem that asks me to work with a given structure and to set an array of 35 and initialize the elements. then i take a loop statement that will step through the entire array and display the contents of each element. since the question only …

Member Avatar for Lerner
0
3K
Member Avatar for afg_91320

im brushing over some of my notes for a midterm tommorow. questions i have when i was reading: what exactly does a parameter do? i know it passes a value to a function-but how is it always like that? or is it more complicated than that? is it kind of …

Member Avatar for Ancient Dragon
0
94
Member Avatar for afg_91320

int numberArray [9][11]; write a statement that assigns 145 to the first colum of the first row of this array. write a statement that assigns 18 to the last col of the last row of this array this is what i have [code] numberArrray [1][1] = 148; numberArray [9][11] = …

Member Avatar for skatamatic
0
99
Member Avatar for afg_91320

how would i write a code that will take the values of one array and copy it to another? ex: array1 and array2 have 100 elements so would it be: [code] array1 [100] = array2 [100] [/code] or does that just pass a reference?

Member Avatar for skatamatic
0
2K
Member Avatar for afg_91320

[code] int array1[4], array2[4] = {3, 6, 9, 12}; array1 = array2; [/code] and this one: [code] void showValues (int nums [4][]) { for (rows = 0; rows < 4; rows++) for (cols = 0; cols < 5; cols++) // is this the line of error? cols is not declared …

Member Avatar for Alex Edwards
0
549
Member Avatar for afg_91320

ive been slaving over this code and i would appreciate if you could help me see the errors that are in this program. this is a program that i have made with functions and switch statements the goal is to make a program that will be a 'geometry calculator' and …

Member Avatar for azy422
0
197
Member Avatar for afg_91320

im gonna make a program that will create a 2d array that will have test data. its should have 8 rows and 10 columns and set seed of random generator to 11. (numbers should go from 0.0 to 99.9) the rows and columns should have random numbers and [I]must be …

Member Avatar for DemonGal711
0
70
Member Avatar for afg_91320

[code] int table [10]; for (int x = 0; x < 20, x++) { cout << “Enter the next value: “; cin >> table [x] } [/code] is it at the cin line? and im not sure if a semicolon is needed. thanks:icon_cheesygrin:

Member Avatar for dickersonka
0
82
Member Avatar for afg_91320

im making a program where i have a txt file that has names of student basically i have to pull out those names using c++ strings and set them in alphabetical order. for that i will be using a while loop that will read the students and update as to …

Member Avatar for Ancient Dragon
0
63
Member Avatar for afg_91320

i have this code here that i have written out and im i want to convert it using functions. basically it is a geometry calculator that will let you calculate the area for any geometric object (ie rectangle, cirlce, triangle) basically i have to rewrite the code and add a …

Member Avatar for dumparun
0
158
Member Avatar for afg_91320

hey guys its me again with the rock paper scissors game. well after spending the whole day on it (ok not really) i was able to write a proper code for the game that would ask user for their input and randomly select one for the computer. now it should …

Member Avatar for chococrack
0
127
Member Avatar for afg_91320

im making a program that will let you play rock paper scissors with the computer. the code will be in function format with a switch statement for the menu. this is how it should look: welcome to rock paper scissors! select a choice 1. rock 2. paper 3. scissors 4. …

Member Avatar for kenji
0
344
Member Avatar for afg_91320

its me again! (and yes im stuck on yet another problem ***) i have created a code where the user is asked to choose a geometry formula and can solve a problem using any of the choices that are shown. now this code uses the switch function, but for my …

Member Avatar for Lerner
0
194
Member Avatar for afg_91320

i have this code where i have to take user input of sales and display it as a chart. (see code/sample run below) my problem is if the user enters like $923.89, it should round down to $900 -but with the code i have, it moves it up to 1000. …

Member Avatar for Ancient Dragon
0
69
Member Avatar for afg_91320

im making a program where i will displaying the sales of each store using a sales bar chart. user will input sales for each store. after the input, a sales chart must be displayed using a for loop, with each '*' = $100 in sales question: how can i make …

Member Avatar for afg_91320
0
275
Member Avatar for afg_91320

hi. i am working on an assignment where i have a file that has a list of numbers. using those numbers, i should be able to create a program, where when prompted, i can find the mean of the numbers from that file, the biggest numbers, etc. the output would …

Member Avatar for WaltP
0
86
Member Avatar for afg_91320

hi guys. its me again. after going thru my prblm i was able to get thru a few of the kinks. however, i still am having issues with the mathematical statements. my assognment is to to create a program that will calciulate the monthly payment along with the loan and …

Member Avatar for WaltP
0
87
Member Avatar for afg_91320

hello ive been working on this project for the past couple of days, and i keep on getting the same error. it tells me that the term will not evaluate a function with two arguments. please help me! thanks [CODE]#include <iostream> #include <cmath> using namespace std; int main () { …

Member Avatar for vmanes
0
76