Hi I'm having some issues with aligning this program I'm working on. I am completely lost on what to do so if anyone could help me out I would greatly appreciate it.
/*************************************
* Dr. Thad Zalfolkz Fee Calculator *
* Written by: Joshua Thompson *
* Date: October 9, 2012 *
*************************************/
#include <iostream>
usingnamespace std;
#include <iomanip>
#include <cstdlib>
#include <string>
#define NAME Joshua Thompson // Name of who printed the schedule
int main ()
{
int ACCU; // Patient account number
int CONSM; // Consultation date month
int CONSD; // Consultation date day
int CONSY; // Consultation date year
char SLASH; // Unsed / in date
float FEE; // Treatment fee
float INIT; // Initial payment
float TOTAL; // Total balance due
int C; // Counter
int NPAY; // Numbered payments
int DPAY; // Payment due dates
float TPAY; // Total amount payed
float BAL; // Outstanding balance
/* Intro. & Instructions */
cout << "Dr. Thad Zalfolkz Fee Calculator\n\n";
cout << "Written by Joshua Thompson - 9 October 2012\n\n";
cout << "This program will ask you for your patient account number, consultation date,\n";
cout << "treament fee, and initial payment. The program will then calculate the number of\n";
cout << "payments needed, the payment due dates, the total amount payed on those dates,\n";
cout << "and finally the outstanding balance. Dr. Zalfolkz charges an initial payment followed\n";
cout << "by monthly payments until the contract amount has been fully payed for. These monthly\n";
cout << "payments will be due on the first of every month starting the month following the\n";
cout << "consultation date.\n";
system ("cls"); // Clear the screen
/* Data Input Section */
cout << "PATIENT ACCOUNT NUMBER: ";
cin >> ACCU;
if (ACCU <= 1000 || ACCU >= 9999)
{
cout << "Please enter a correct account value.";
}
else
{
cout << "CONSULTATION DATE: ";
}
cin >> CONSM;
cin >> SLASH;
cin >> CONSD;
cin >> SLASH;
cin >> CONSY;
if (CONSM < 1 || CONSM > 12) cout << "Please enter a valid date.";
elseif (CONSD < 1 || CONSD > 31) cout << "Please enter a valid date.";
cout << "\nTREATMENT FEE: $ ";
cin >> FEE;
cout << "INITIAL PAYMENT: $ ";
cin >> INIT;
BAL = FEE - INIT;
cout << "BALANCE DUE: $ " << BAL;
/* Calculation Section */
cout << "\n\nPAYMENT NUMBER";
C = 1;
do
{
C = C + 1;
}
while (C < 15);
return 0;
}