Answer:
Following are the program in C++ language :
#include <iostream> // header file
using namespace std; // using namespace
int main() // main method
{
int amount,total=0; // two int variable declaration
cout<<" enter amount:";
cin>>amount; // read input amount first time
total=total+amount; // first calculation
cout<<" enter amount:";
cin>>amount; //read input amount second time
total=total+amount;// second calculation
cout<<" enter amount:";
cin>>amount;// read input amount third time
total=total+amount;// third calculation
cout<<"total:"<<total; // display total
return 0;
}
Output:
enter amount:12
enter amount:12
enter amount:12
total:36
Explanation:
Following are the explanation of program which is mention above
- Declared the two variable total and amount of int type .
- Initialize the variable total to "0".
- Read the 3 input in "amount" variable in one by one by using cin function and adding their value to the "total "variable .
- Finally display the total.
The correct term you're looking for in this instance is capacity as it limits the amount of storage on a secondary device
Answer:
Check the explanation
Explanation:
File: Seat.h:
typedef struct Seat
{
int seatNumber;
string customerFullName;
double seatCost;
};
File: Stadium.h
class Stadium
{
//Data Members
private:
Seat seats[1000];
string stadiumName;
int numOccupiedSeats;
public:
Stadium(string); //Constructor
void assignSeat(double, string);
void unAssignedSeat(int seatNumber);
int getNumberOfAssignedSeats();
double getCostOfSeat(double seatNumber);
}
Not in high school but i tried my best to help
(Sorry that its blurry )