8 Archived Topics
Remove Filter Hi, I am having trouble getting the item and its calories to match. Could anyone tell me what is wrong with this bubble sort? Thanks [CODE]int main() { string food[100]; string search; int calories[100]; int x = -1; bool look = false; do { x++; cout << "Enter a menu … | |
Here is the piece of code I am having problems with. It is supposed to let me look up any items I put in the program previously. If the user did not enter a product earlier it should say "product not found". My problem is that it remembers the first … | |
I have to write a program that calculates the avg, min, and max. The program runs fine, but when a user decides he doesn't want to enter any scores (enter: -1) in the beginning it still tries to calculate the avg,min and max. I need the program to end w/o … | |
Hi, I'm having trouble writing a program that asks the user 3 questions.(3 possible answers for each) I am using a string to remember all the answers with a getline(cin,answer) statement. My problem is the first two questions have choices for the answers that can be the same such as … | |
Hi. I'm having trouble making a simple calculator. The code I have so far compiles, but it does not run. Right now I only have addition in because I wanted to make sure I was going in the right direction before I added anything else. I have to use a … | |
I'm have serious trouble with this program. The average and the range do not work. The program runs...I just don't know how to fix this. Please help. I have to find the average and the range of an unlimited number of integers between 0 and 100. [CODE] #include <iostream> using … | |
The End.