Can Someone Assist Me In Finding A website With C++ Solutions For Labs!?!?

closed account (i6vpDjzh)
Can someone help me find a website that provides the solutions for labs based on C++ chapters? Am currently doing a lab called Quartsal.cpp. Any assistance would be appreciated! ........ Thanks in advance "TheStorm"
What do you mean by labs?
closed account (i6vpDjzh)
am currently working on this and a few other arrays and I have no idea as to what am doing. The Professor is very hard. I've found a website that had the previous assignments and codes and I shared it with my classmates and we all are struggling but the site only provided us with a few solutions....... WE NEED HELP!!!




// This program will input an undetermined number of student names
// and a number of grades for each student. The number of grades is
// given by the user. The grades are stored in an array.
// Two functions are called for each student.
// One function will give the numeric average of their grades.
// The other function will give a letter grade to that average.
// Grades are assigned on a 10 point spread.
// 90-100 A 80-89 B 70-79 C 60-69 D Below 60 F
// PLACE YOUR NAME HERE
#include <iostream>
#include <iomanip>
using namespace std;
const int MAXGRADE = 25;
// maximum number of grades per student
const int MAXCHAR = 30;
// maximum characters used in a name
typedef char StringType30[MAXCHAR + 1];// character array data type for names
// having 30 characters or less.
typedef float GradeType[MAXGRADE]; // one dimensional integer array data type
float findGradeAvg(GradeType, int); // finds grade average by taking array of
// grades and number of grades as parameters
char findLetterGrade(float);
// finds letter grade from average given
// to it as a parameter
int main()
{
StringType30 firstname,
lastname;//
two arrays of characters defined
int numOfGrades;
//
holds the number of grades
GradeType grades;
//
grades defined as a one dimensional array
float average;
//
holds the average of a student's grade
char moreInput;
//
determines if there is more input
cout << setprecision(2) << fixed << showpoint;
// Input the number of grades for each student
cout << "Please input the number of grades each student will receive." << endl
<< "This must be a number between 1 and " << MAXGRADE << " inclusiveā€¯
<< endl;
cin >> numOfGrades;
Lesson 7A
127
while (numOfGrades > MAXGRADE || numOfGrades < 1)
{
cout << "Please input the number of grades for each student." << endl
<< "This must be a number between 1 and " << MAXGRADE
<< " inclusive\n";
cin >> numOfGrades;
}
// Input names and grades for each student
cout << "Please input a y if you want to input more students"
<< " any other character will stop the input" << endl;
cin >> moreInput;
while (moreInput == 'y' || moreInput == 'Y')
{
cout << "Please input the first name of the student" << endl;
cin >> firstname;
cout << endl << "Please input the last name of the student" << endl;
cin >> lastname;
for (int count = 0; count < numOfGrades; count++)
{
cout << endl << "Please input a grade" << endl;
// Fill in the input statement to place grade in the array
}
cout << firstname << " " << lastname << " has an average of ";
// Fill in code to get and print average of student to screen
// Fill in call to get and print letter grade of student to screen
cout << endl << endl << endl;
cout << "Please input a y if you want to input more students"
<< " any other character will stop the input" << endl;
cin >> moreInput;
}
return 0;
No way. If you have no idea what you are doing and somebody else does your homework for you, then you will still have no idea and you have learned nothing. The idea of homework is that you learn by doing yourself.


PS. Use the code tags: http://www.cplusplus.com/articles/jEywvCM9/
Topic archived. No new replies allowed.