I need to learn to completely follow through on my code when making edit. I had changed in the variable but failed to recognize to change it to double[items].
Type: Posts; User: xenhancd
I need to learn to completely follow through on my code when making edit. I had changed in the variable but failed to recognize to change it to double[items].
I am doing this for a class and the book that is assigned to help us actually really sucks. I've found reading stuff online and through forums helps to learn a lot more efficiently. I am a complete...
cout << "** Sales Item " << count + 1 << ": $" << setw(9) << setprecision(2) << price[count] << " **" << endl;
Ended up doing it that way and it works like a charm!
I found one big...
I do have that in my code and it displays correctly, however, I want to number my items. I want it to ask "Input sales item 1" "Input sales item 2" "Input sales item 3" and then on the receipt I want...
DUH! Not sure why I changed that from the get go, I originally had total = 0.
However, I still cannot get the sales receipt portion to look the way I need to. It seems I cannot simply just add a...
How would I go about doing that?
#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
char rerun;
do //The do-while for a program rerun option
{
I have created a program allows you to input the amount of items purchased, and then input the price of each item and the sales tax. It then creates a receipt which totals all the prices and sales...
FIXED IT! Works the way i want it!
THANK YOU EVERYONE THAT HELPED!!!! Finally have it working the way I need it.
Made some progress, the program finally loops back to the very beginning,however another issue arises now. When input the number of items for example 5, the program only asks for the price of 3...
the count++?
I am completely new to C++ so I don't quite understand...
Made some progress, the program finally loops back to the very beginning but now when you input a number for amount of items, it only asks for the price of just one item... what am I overlooking here...
I have even tried to put the char rerun outside of the do/while loop but then the program just opens and closes instantly.
When I do that, I get an undeclared identifier error...
// TipCalculator.cpp
// Neel Patel
// Homework4, Sales Receipt, Because it can calculate and print to the screen a user inputted sales...
I am not sure I follow with the looping and including the variables
#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
I need help rerunning the program from the very beginning and I can't figure out what I am doing wrong...
#include <iostream>
#include <iomanip>
using namespace std;
int main()
{