address of the first record in the array + (account number - 1000) * sizeof(int).
I am supposed to read this file into 4 separate arrays. And, be able to request a user-entered account number and...
Type: Posts; User: gator6688
address of the first record in the array + (account number - 1000) * sizeof(int).
I am supposed to read this file into 4 separate arrays. And, be able to request a user-entered account number and...
I only told it to do 2 for now to simplify the testing purpose. When I get it running right then I will change it to 20.
It's telling me that this function does not take 1 arguement.
...
I am trying to open a file with a program but it keeps failing. I typed the file into notepad and saved it as a .dat file. Does anyone have any ideas why this is happening?
#include "stdafx.h"...
I think I did what you told me to do but now I am getting a run time error because it is giving me a negative for my final grade.
#include "stdafx.h"
#include <iostream>
#include <fstream>...
The way I have it set up now it assigns the letter grade of the second student to both students. How can I get it to assign each student their own letter grade? Also, I would rather output the letter...
OK. I got that working now. So how could I get something like this to work?
for (int i = 0; i<Grades; i++)
{
if (finalGrade>90)
cout<<"A";
else if (finalGrade>80)
...
So I need to put something like 0.20*gTable[i].getExamOne, etc.?
I have to write a program that can input up to 20 students name, exam 1 and 2 grades, homework average, and final exam grade. Then it says I have to calculate a final grade using the formula...
It makes sense but how can I make it loop like that?
I wrote this program and so far so good but now I have to be able to count how many 1's, 2's, 3's, and 4's were entered. I am at a complete loss of where to begin. Could someone help me get started?...
OK. Thanks. I should have known that!
How could I write these so that they would work?The "A" and the "F" work but the other 3 don't.
cout << "Letter Grades" <<endl;
for (int i = 0; i < MAXGRADES; i++)
{
if (grade[i]>89)...
Would a for loop work? Maybe something like this:
for (i=0; grade[i] < Avg; i++)
{
cout << "*" << grade[i];
}
I am trying to set this program up so that any grade that is below the average will have an * placed next to it. When I compile I keep getting these two errors. 2446 is no conversion from double to...
My teacher said to use global variables.
It's not looking fine on my computer. It looks jumbled.
When I type in the date it is putting the Sept. in the date spot but it is putting 30, 2007 in the pay to the order slot. Any ideas why?
Also, when it asks for my input it asks for the date just...
When I type in the date it is putting the Sept. in the date spot but it is putting 30, 2007 in the pay to the order slot. Any ideas why?
#include "stdafx.h"
#include <iostream>
#include...
I figured out how to get the data displayer but when I enter the date as Sep. 30, 2007 it only shows up as Sep. Any ideas what I am doing wrong?
How can I get the data I enter to show up on the check?
Could anyone tell me if I have the check set up right? And if it is in the right place?
I am rather new to C++ and I have to write a program that will accept data for today's date, first name, last name, and amount to an enterData() function and pass it to a printCheck() function. Then...