online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
//$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ // Author: Maria Logan $ // Date: 08/30/2022 $ // $ // Program for: accepting input of customer and $ // billing info that also calculates and $ // displays the amount due. $ // $ // $ //$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ #include <iostream> #include <iomanip> using namespace std; int main () { //variables for reg and prem double reg_serv,prem_serv, reg_serv_ovr, prem_serv_over_day, prem_serv_ovr_night ; reg_serv = 10.00; prem_serv = 25.00; reg_serv_ovr = 0.20; prem_serv_over_day = 0.10; prem_serv_ovr_night = 0.05; // variables and customer input int accountNumb, minUsed_reg, minUsed_prem_day, minUsed_prem_night; char servCode; cout << "Please enter your Account number and regular minutes used with Premium day time and night time minutes used" << endl; cin >> accountNumb >> minUsed_reg >> minUsed_prem_day >> minUsed_prem_night; // calculate reg usage double reg_total; if (minUsed_reg >= 51) reg_total= reg_serv + ((minUsed_reg -50) * reg_serv_ovr); else reg_total = reg_serv; //calculate premium usage daytime double prem_day_total; if (minUsed_prem_day >= 76) prem_day_total = prem_serv + ((minUsed_prem_day - 75) * prem_serv_over_day); else prem_day_total = prem_serv; // calculate premium night usage double prem_night_total; if (minUsed_prem_night >= 101) prem_night_total = ((minUsed_prem_night - 100) * prem_serv_ovr_night); else prem_night_total = 0; double prem_total; prem_total = prem_night_total + prem_day_total; // calcualtes bill total double grandTotal; grandTotal = reg_total + prem_day_total + prem_night_total; // add and display content cout << "_____________________________________________________________________________________________________________________" << endl; cout << "Here is the billing statement for " << accountNumb << ". You used " << minUsed_reg << " Regular minutes at $" << reg_total << "." << endl; cout << "And " << minUsed_prem_day << " Premium day time minutes and " << minUsed_prem_night << " Premium night time minutes at $" << prem_total << "." << endl; cout << "Your total is $" << grandTotal << " today. Thank you for your prompt payment!" << endl; }

Compiling Program...

Command line arguments:
Standard Input: Interactive Console Text
×

                

                

Program is not being debugged. Click "Debug" button to start program in debug mode.

#FunctionFile:Line
VariableValue
RegisterValue
ExpressionValue