Find Jobs
Hire Freelancers

Create a GUI windows application using Visual Studio C++

$30-75 USD

Closed
Posted about 16 years ago

$30-75 USD

Paid on delivery
I need a graphical user interface, windows application for a C++? program that allows a user to create a bank account and deposit, withdraw and transfer money into that account. I am pretty familiar with dos coding, but have no clue how to transfer code into windows using Visual Studio. I can provide you with the? bank programming? code for the dos application, all I need is to have it? used to make the GUI.? Furthermore, I need this done by Wednesday, April 23 12:00 a.m. pacific time.? ? ## Deliverables /** * * This program allows the user to create a bank account and * deposit, withdraw, and transfer money in that account. * */ #include <string> #include <iomanip> #include <iostream> using namespace std; int main(void) { // Interest rates for each type of account. const double BASIC_IR = .025; const double PREMIUM_IR = .035; const double PLATINUM_IR = .045; // Minimum amounts for account types. const double BASIC_MINIMUM = 0; const double PREMIUM_MINIMUM = 1000; const double PLATINUM_MINIMUM = 5000; double balance = 0; // Total balance of account. double checkingBalance = 0; // Checking account balance. double savingsBalance = 0; // Savings account balance. string name = ""; // Name of the person. int choice = 0; // Choice entered by the user. int choice2 = 0; // Secondary choice entered by the user. double enteredAmount = 0; // Amount entered by the user. cout << "Welcome to CS100 BANK" << endl; // Ask user for name. cout << "What is your name? "; getline(cin, name); // Get initial Savings deposit. cout << "Initial deposit into Savings: "; cin >> enteredAmount; // Make sure the user entered a positive number. if ( enteredAmount <= 0 ) { cout << "Invalid choice (number must be positive)." << endl; } // Set savings to amount entered. savingsBalance = enteredAmount; // Get initial Checking deposit. cout << "Initial deposit into Checking: "; cin >> enteredAmount; // Make sure the user entered a positive number. if ( enteredAmount <= 0 ) { cout << "Invalid choice (number must be positive)." << endl; } // Set Checking to amount entered. checkingBalance = enteredAmount; // Update total balance with checking and savings amounts. balance = checkingBalance + savingsBalance; // Format output. cout << fixed << showpoint << setprecision(2); // Determine type of account and display balance on screen. if ( balance >= PLATINUM_MINIMUM ) { cout << name << "'s Platinum Account balance: " << balance << " (S: $" << savingsBalance << ", C: $" << checkingBalance << ")" << endl; } else if ( balance >= PREMIUM_MINIMUM ) { cout << name << "'s Premium Account balance: " << balance << " (S: $" << savingsBalance << ", C: " << checkingBalance << ")" << endl; } else { cout << name << "'s Basic Account balance: " << balance << " (S: $" << savingsBalance << ", C: $" << checkingBalance << ")" << endl; } // Display initial menu options. cout << "\nBank Options:\n"; cout << " 1. Deposit Money\n"; cout << " 2. Withdraw Money\n"; cout << " 3. Transfer Money\n"; cout << " 4. Quit\n"; // Prompt for user's choice. cout << "Your choice: "; cin >> choice; // Make sure the user entered a number from 1-4. if ((choice < 1) || (choice > 4)) { cout << "Invalid choice (not an option)." << endl; } // Display options depending on the menu item that the user selected. switch (choice) { case 1: // Deposit money. // Display options. cout << "\nDeposit Money Options:" <<endl; cout << " 1. Deposit to Checking" << endl; cout << " 2. Deposit to Savings" << endl; cout << " 3. Cancel\n"; // Prompt for user's choice. cout << "Your choice: " ; cin >> choice2; // Make sure the user entered a number from 1-3. if ((choice2 < 1) || (choice2 > 3)) { cout << "Invalid choice (not an option)."; } // Deposit to Checking. if (choice2 == 1) { cout << "Amount to deposit to Checking: "; cin >> enteredAmount; // Make sure the user entered a positive number. if ( enteredAmount <= 0 ) { cout << "Invalid choice (number must be positive)." << endl; } // Update Checking balance and display message. checkingBalance += enteredAmount; cout << "You deposited $" << enteredAmount << " to Checking.\n" ; } // End if. // Deposit to Savings. else if (choice2 == 2) { cout << "Amount to deposit to Savings: "; cin >> enteredAmount; // Make sure the user entered a positive number. if ( enteredAmount <= 0 ) { cout << "Invalid choice (number must be positive)."; } // Update Savings balance and display message. savingsBalance += enteredAmount; cout << "You deposited $" << enteredAmount << " to Savings." << endl; } // End if. // Cancel. else if (choice2 == 3) cout << "Canceled Deposit." << endl; break; // End "Case 1". case 2: // Withdraw money. // Display options. cout << "\nWithdraw Money Options:\n"; cout << " 1. Withdraw from Checking\n"; cout << " 2. Withdraw from Savings\n"; cout << " 3. Cancel\n"; // Prompt for user's choice. cout << "Your choice: " ; cin >> choice2; // Make sure the user entered a number from 1-3. if ((choice2 < 1) || (choice2 > 3)) { cout << "Invalid choice (not an option)."; } // Withdraw from Checking. if (choice2 == 1) { cout << "Amount to withdraw from Checking: "; cin >> enteredAmount; // Make sure amount is positive and less than current Checking balance. if (enteredAmount <= 0) { cout << "Invalid choice (number must be positive)." <<endl; } else if (enteredAmount > checkingBalance) { cout << "Invalid choice (you don't have that much in your Checking)." << endl; } else { // Update balance and display message checkingBalance -= enteredAmount; cout << "You withdrew $" << enteredAmount << " from Checking." << endl; } } // End if. // Withdraw from Savings. else if (choice2 == 2) { cout << "Amount to withdraw from Savings: "; cin >> enteredAmount; // Make sure amount is positive and less than current Savings balance. if (enteredAmount <= 0) { cout << "Invalid choice (number must be positive).\n" ; } else if (enteredAmount > savingsBalance) { cout << "Invalid choice (you don't have that much in your Savings).\n"; } else { // Update balance and display message. savingsBalance -= enteredAmount; cout << "You withdrew $" << enteredAmount << " from Savings."; } } // Cancel. else if (choice2 == 3) cout << "Canceled Withdraw.\n"; break; // End "Case 2". case 3: // Transfer money. //Ran over character limit, .cpp file attached
Project ID: 3888487

About the project

2 proposals
Remote project
Active 16 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
2 freelancers are bidding on average $57 USD for this job
User Avatar
See private message.
$51 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
See private message.
$63.75 USD in 1 day
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED STATES
United States
0.0
0
Member since Apr 22, 2008

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.