alright so im going crazy with this program i ust cant think anymore..this program needs you to enter your name, the internet package you purchased, and the amount of hour you used for that month. Then show the bill for the name, package, and hours used.
Package(A)- For $9.95 per month 10 hours of access are provided. Each additional hour is $2.00.
Once i get how to do this one i can do the rest. My problem is that i dont know how to get the program to accumulate $2.00 per hour after 10 hours plus the initial cost of 9.95. I realize that i am probably dumb for not knowing how to do this..But im having a huge brain cramp from doing too much programming..I know some of the code below is totally wrong...im just so confused im messing everything up. PLEASE HELP ME!
#include <iostream>
#include <string>
using std::cout;
using std::cin;
using std::endl;
int main () {
int pause;
int package;
int hours;
int amountdue;
const double package_1= 9.95, package_2= 14.95, package_3=19.95;
char name;
amountdue=package_1+hours;
cout << "Please enter your name: \n";
cin >> name;
cout << "Which internet package did you purchase?: \n";
cout << " " << "Package(A)\n";
cout << " " << "Package(B)\n";
cout << " " << "Package(C)\n";
cin >> package;
cout << "How many hours did you use?\n";
cin >> hours;
{
if (package=='A')
{
if (hours <= 10)
{
amountdue=package_1;
std::cout << " " << "Customer Name: " << name;
std::cout << " " << "Package Purchased: " << package;
std::cout << " " << "Hours Used: " << hours;
std::cout << "The total amount due is $" << package_1;
}
if (hours > 10)
{
amountdue=package_1+hours++2;
std::cout << " " << "Customer Name: " << name;
std::cout << " " << "Package Purchased: " << package;
std::cout << " " << "Hours Used: " << hours;
std::cout << "The total amount due is $" << amountdue;
}