Yes, thanks.
Type: Posts; User: JDK721
Yes, thanks.
How would I have text after a variable is entered so for example: I need to put a comma after the first number.. so it'd say 5, 5 instead of 55.
cout << "The slope of every horizontal line is "...
We use microsoft visual C++ 5.0 at school, which I believe is 1998 so thats why you see old headers.
Not the enter key, something else.. enter key is used to close the program.
Write a program that declares a character array named alphabet and initializes the array to "ABCDEFGHIJKLMNOPQRSTUVWXYZ" In your program, include a FOR LOOP that replaces one character of the array...
Alrighty.. I got it, thanks for the help!
I put this.. it still is saying your total so far is, and what variable do I input for it?
case 'T':
running_total = sales_tax(running_total);
cout << "Your total sale including tax is...
I don't understand how to make it when they press T to say "Your total sale is ___" and add the running total to the sales tax instead of continuing to say Your total so far is.
My last problem is.. when they hit T I need it to add the current total to the amount of sales tax and for it to say "Your final total is ___"
Its just saying "Your running total is __"
That tells them if they enter an invalid choice. They can only enter S, C, P, B, R, L, X, or T.
Okay thanks, the while loop works now.. but it isn't calculating the tax right on some situations! Oh yeah and for the second question, it displays the menu prices right.. but when it gives me the...
Hello, I have a few problems with my program. First off, let me tell you what the program is.
The snack bar sells only six different items : a sandwich, chips, pickle, brownie, regular drink, and...
I have to use a DO WHILE loop.
I got this, but theres two problems. It repeats the same statement everytime you enter a number, and when you enter 0 the program closes.
#include <iostream.h>
#include <string.h>...
I believe I know the largest and smallest. But i'm not sure, the others one i'm clueless. And I forgot what the counters purpose is, the teacher said you needed to have one.
if (number >...
"Write a program that asks the user for a series of integers one at a time. When the user enters the integer 0, the program displays the following information.
1) the number of integers in the...