No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
I've written a program that takes a file, students.txt, which is constructed as such: Student1 name test1 score test2 score test3 score Student2 name test1 score test2 score test3 score etc. The program has three functions, one that reads the file, one the prints the file and one that sorts … |
|
I'm working on a program for my C++ class. The assignment uses a file that includes student names and three test scores. For example: Name Test1 Test2 Test3 Name Test1 Test2 Test3 My teacher wrote the main part of the program for us and we are to write the functions. … |
|
I'm learning about arrays in my C++ class and am having some trouble with them. We have an assignment that states: Write a program that will: (1) Ask the user how many times a simulated pair of dice should be thrown. (2) Ask whether the user wants to see each … |
|
I'm having so much trouble with this assignment, and I was wondering if anyone would be able to help me out. Here is the assignment: This program uses the file "cities.txt", which contains over 136,000 location names in the United States. Each line of the file contains a place name … |
|
Hello everyone :) My C++ class just started learning strings the other day. We were given a simple program that's due tomorrow, but I'm having a bit of trouble with it. I've emailed my teacher, who says I'm on the right track but need to fix something in my while … |
|
Hey everyone :) I'm writing a program for my class that has the user input 5 test scores and then from the inputted numbers, return the letter grade. I've begun writing the LetterGrade function, but it's not working. I'm getting a strange array of numbers/letters instead of the actual letter … |
|
I'm writing a program for my C++ class that goes off of a previous assignment. The previous assignment asked the user how many numbers they wanted to enter, asked them to then enter the numbers and then found the sum, average, largest and smallest number from the inputted numbers. The … |
|
I'm writing a program that asks the user how many numbers they would like to input, then proceeds to ask the user to enter the said amount of numbers. At the end, the program computes the sum, average, largest number and smallest number. I've got the entire program figured out, … |
|
I'm new to C++ and I'm having trouble understanding how to determine what to put inside a loop. I know it differs from program to program, but a lot of my assignments deal with the user inputting a number of how many numbers they want to input (it can be … |