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 need help with understanding how to initialize a one dimensional array of vending items in a vending machine to sentinel values and also how to read the data into the one dimensional array of vending items. Please help!! There are no more than 20 diff items in the vending … |
|
I'm trying to find the min/max of the number of years played and the min/max batting average of a list of players in an input file inputted in by the user that looks like this, the file is read and checked and then the program goes and gets the name, … |
|
[code=cplusplus] #include <iostream> #include <fstream> #include <string> using namespace std; const double PRICEA = 9.95; const double PRICEB = 14.95; const double PRICEC = 19.95; const int ONE = 10; const int TWO = 20; const double EXTRA1 = 2.00; const double EXTRA2 = 1.00; int main() { int hours; … |
|
I am currently writing a program that has to have a while loop that reads a file and then the while loop has a switch statement inside and inside of the switch is an if/else. I'm confused on how and where to put the correct placement for it to read … |