This is just a most basic program, the way it is described, the amountPaid will always be higher than the amountDue. Since I can't seem to get an int variable to use decimal places even with:
fixed...
Type: Posts; User: cantcoderight
This is just a most basic program, the way it is described, the amountPaid will always be higher than the amountDue. Since I can't seem to get an int variable to use decimal places even with:
fixed...
#include<iostream>
#include<string>
#include<iomanip>
usingnamespace std;
int main()
{
//declare variables
int dollars = 0;
int quarters = 0;
int dimes = 0;
They would seem out of place converting strings to integers and doubles, especially in this, but it is what is required for this particular exercise.
This is just the psuedocode for what is...
I kinda figured it was all over the place. The first class I took for this was so basic and elemtary that it ended barely covering a quarter of what I'm expected to here. I'm obviously lost in this...
#include <iostream>
#include <string>
using namespace std;
string getInput(string);
void start(string);
void getName(string);
void getAge(int);
void getMileage(double);
//declare variables...