/* Calculate the total charges and the total hours for the
parking garage. */
#include <iostream>
using std::cout;
using std::cin;
using std::endl;
#include <iomanip>
Type: Posts; User: iluvmyafboys
/* Calculate the total charges and the total hours for the
parking garage. */
#include <iostream>
using std::cout;
using std::cin;
using std::endl;
#include <iomanip>
HUH?
Well...i'm supposed to write a program that uses a datafile as the input. We're supposed to create a table of salaries based on the amount of sales and commission.
The input I've created as a...
i'm still more confused now than i was before.
/* Calculate the total charges and the total hours for the
parking garage. */
#include <iostream>
using std::cout;
using std::cin;
using std::endl;
fxn userValues(a, b, c);
well...this is the program that i had.....
/* Calculate the total charges and the total hours for the
parking garage. */
#include <iostream>
using std::cout;
using std::cin;
using...
i don't know....i just ran the program, and it still doesn't work...i get this:
/tmp/ccUHX0O8.o: In function `main':
/tmp/ccUHX0O8.o(.text+0xa0): undefined reference to `calculatecharges(double,...
THANKS SO MUCH! :D all of u have been such a great help. i think i'm gonna try to find C++ for dummies....i hear that's a good book to read. thanks again!
the program still doesn't work. it says that :
man.cpp: In function `void calculatecharges(int, int, int)':
man.cpp:41: warning: assignment to `int' from `double'
man.cpp:48: warning:...
well i've changed it, but i still can't get it to work...here's what i have:
/* Calculate the total charges and the total hours for the
parking garage. */
#include <iostream>
using...
i guess that getting the program to work is my priority...but how would i change the couts to get the output to line up?
so can i put them n e where in main like this:
int main()
{
int a;
b;
c;
cout<<"Enter the number of hours for CAR 1:";
cin>>a;
well sorrrrrryyyy!!!! i told u that i know absolutely nothing about this type of programming. no need to act like that. it'd be nice if someone could explain what's wrong but obviously that's not...
/* Calculate the total charges and the total hours for the parking garage. */
#include <iostream>
using std::cout;
using std::cin;
using std::endl;
int charges (chargesa, chargesb,...
maybe i should just change my major! lol well...the exercise asks us to calculate charges for a parking garage. there's a $2.00 minimum fee for less than 3 hours, and a $0.50 charge for each...
thanks for the advice, but i'm not familiar with arrays...any other suggestions?
this is what i have so far. i wrote the notes in the beginning so that any one who sees this knows what i'm looking for. i'm not sure if i have to display each check#, or if there's a way that i...
I'm still having a problem. I changed each integer statement to the floats, and it runs, but now the output says:
Enter first integer
5
Enter second integer
8
Sum is 13
Difference is -3...
I haven't had any problems with my other programming, but this one seems to stump me. The program asks to "write a program that asks the user to enter two numbers, obtains the two numbers and prints...