Questions: 1 835

Answers by our Experts: 1 539

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

Create a class Int based on Q 1 . Overload four integer arithmetic operators (+, -, *, and /) so that they operate on objects of type Int. If the result of any such arithmetic operation exceeds the normal range of ints


Create a program to generate student attendance record in which teacher mark absent or present of each student and student have capability to see their attendance record of their each subjects.

Note: Your work must be done on console application.


TASK # 01: Write an efficient program that, given a color board (provided below), user has to fill up the color board with red ‘r’, green ‘g’ or blue ‘b’. you have to make sure that no color is repeated on connected positions. Ask user for the positions one by one for color filling. If the color filling is appropriate then increase the score, if it conflicts then decrease the score.

Your program should ask the user to enter his or her name before starting the game and show the score at the end. There should be a list of top 10 highest scorer and should be updated after every game. You have to:

·      Show the top scorer list on start of the game

·      Show the score and remaining tries after each try

·      Show the color board, total score and the rank of the user at the end of the game

In the following color board, a ‘0’ indicates not included position, an empty position indicates the place you have to fill colors on.


Write an efficient program that, given a color board (provided below), user has to fill up the color board with red ‘r’, green ‘g’ or blue ‘b’. you have to make sure that no color is repeated on connected positions. Ask user for the positions one by one for color filling. If the color filling is appropriate then increase the score, if it conflicts then decrease the score.

Your program should ask the user to enter his or her name before starting the game and show the score at the end. There should be a list of top 10 highest scorer and should be updated after every game. You have to:

·      Show the top scorer list on start of the game

·      Show the score and remaining tries after each try

·      Show the color board, total score and the rank of the user at the end of the game

In the following color board, a ‘0’ indicates not included position, an empty position indicates the place you have to fill colors on.



Write an efficient program that, given a color board (provided below), user has to fill up the color board with red ‘r’, green ‘g’ or blue ‘b’. you have to make sure that no color is repeated on connected positions. Ask user for the positions one by one for color filling. If the color filling is appropriate then increase the score, if it conflicts then decrease the score. 

Your program should ask the user to enter his or her name before starting the game and show the score at the end. There should be a list of top 10 highest scorer and should be updated after every game. You have to:

  • Show the top scorer list on start of the game 
  • Show the score and remaining tries after each try
  • Show the color board, total score and the rank of the user at the end of the game

In the following color board, a ‘0’ indicates not included position, an empty position indicates the place you have to fill colors on.



Create a system used in a restaurant. Clients can buy several food and beverages. Your system shall have several types of food: appetizer, main course and dessert. Beverages can be hot and cold drinks.
The system shall calculate the amount of a client needs to pay. Among the things that need to be included are the unit price per food and beverage, the number of food and beverage that a customer orders per table.
If a customer chooses all types of food (excluding beverage), that customer can be given a discount of 5% towards the total amount before tax. Additional 2% discount is given when the customer orders more than 5 items (including beverage) from the total amount before tax.
The total amount is subjected to a Sales and Service tax of 8%
Create a class Int based where ther is one data member int i. define both constructors. Overload four integer arithmetic operators (+, -, *, and /) so that they operate on objects of type Int. If the result of any such arithmetic operation exceeds the normal range of ints (in a 32-bit environment)— from 2,147,483,648 to –2,147,483,647—have the operator print a warning and terminate the program. Such a data type might be useful where mistakes caused by arithmetic overflow are unacceptable. Hint: To facilitate checking for overflow, perform the calculations using type long double. Write a program to test this class.
Func: void getInt()
void putInt()
Int operator + (Int i2)
HPC handles three types of employees: doctors, paramedical staff and receptionists. The
system needs to record their details; which for all staff includes a four-digit employee number,
their name, address, gender, contact number and qualification. Doctors must be qualified; the
system will store their highest medical qualification, date of degree awarded and their Pakistan
Medical Council registration number. For lab assistant, the system will need to store
experience, and for receptionists, the system will store duty hours.
National Health Center wants to computerize its patient and employee records system named
HealthPlus (HPC). A patient must register as outdoor and indoor patient and the system needs
to store their name, address and mobile number and date of admission in case of indoor
patients and name, address and mobile number and date of birth in case of outdoor patients.
Each patient is given a unique four-digit patient number. The system will keep a count of how
many patients the HPC currently has.
how do you add a text file to the command line arguments, read it into the code and then convert it to an array