SUBJECT: 2024 SUMMER – INFO TECH & MOBILE APPLICATION (ITS-537-A03) – FIRST BI-TERM
PROJECT – CHAPTER 11, PG. 215, EXERCISE #13
Modify the MealRater app created in Exercise 6 in Chapter 10 to include a Save button. The button should save the restaurant name, meal, and rating to Core Data.
/
Chapter 11 programming Exercise 13.cpp : This file contains the ‘main’ function.
Program execution begins and ends there.
/
#include
using namespace std;
class BankAccount
{
public:
//variable to store account number
int accountNumber;
//variable to store account balance
double Balance;
public:
//constructor to initialize account number and balance
BankAccount(int Accno, double Bal) {
accountNumber = Accno;
Balance = Bal;
}
//default constructor
BankAccount()
{
}
//function to return current balance
double getBal()
{
return(Balance);
}
//function to return account number
int getAccNo()
{
return(accountNumber);
}
//function to set new balance
void setBal(double amount)
{
Balance = amount;
}
//function to set new account number
void setAccNo(int Accno)
{
accountNumber = Accno;
}
//virtual function to display account information
void virtual showAccNo()
{
cout