Q1. Write a C++ program which initializes the earning of an employee. The program should calculate the income tax to be paid by the employee as per the criteria given below: Slab rate IT rate Nil Upto Rs. 50,000 Upto Rs. 60,000 Upto Rs. 1,50,000 Above Rs. 1,50,000 30% on additional amount 10% on additional amount 20% on additional amount

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
Jan-May-2022
Q1. Write a C++ program which initializes the earning of an employee. The
program should calculate the income tax to be paid by the employee as per
the criteria given below:
Slab rate
IT rate
Upto Rs. 50,000
Upto Rs. 60,000
Upto Rs. 1,50,000 20% on additional amount
Above Rs. 1,50,000 30% on additional amount
Nil
10% on additional amount
Q2. Create a class for a bank database the database should support the
following operations.(Menu Driven Program)
1. Deposit a certain amount into an account,
2. Withdrawing a certain amount from an account,
3. Return a value specifying the amount (i.e. balance) in an amount.
Q3. A bookshop maintains the inventory of books that are being sold at the
shop. The list includes details such as author, title, price, publisher and stock
position. Whenever a customer wants a book, the sales person inputs the title
and author and the system searches the list and displays whether it is available
or not. If it is not, an appropriate message is displayed. If it is, then the system
displays the book details and requests for the number of copies required. If the
requested copies are available, the total cost of the requested copies is
displayed; otherwise "Required copies not in stock" is displayed.
Design a system using a class called books with suitable member functions and
constructors.
Q4.Define a "Clock" class that does the following: -
a. Accept hours, minutes and seconds.
b. Check the validity numbers.
c. Set the time to AM/PM mode.
Use necessary constructors and methods to do the above task.
Q5.Write method of date class to support the following:-
a. Method for validating that the integer-representing month is between 1
& 12 and checking that the day part of the date objects is within the correct
range for a month.
b. Obtaining the next day from a given date.
Q6. Create a class 'Student' with three data members which are name, age
and address. The constructor of the class assigns default values name as
"unknown", age as '0' and address as "not available". It has two members
with the same name 'setinfo'. First method has two parameters for name
and age and assigns the same whereas the second method has three
parameters which are assigned to name, age and address respectively. Print
the name, age and address of 10 students.
Hint - Use array of objects
Reply..
Q7. Create a class to print an integer and a character with two methods
having the same name but different sequence of the integer and the
character parameters.
For example, if the parameters of the first method are (int n, char c), then
that of the second method will be of the form (char.c int nl
Transcribed Image Text:Jan-May-2022 Q1. Write a C++ program which initializes the earning of an employee. The program should calculate the income tax to be paid by the employee as per the criteria given below: Slab rate IT rate Upto Rs. 50,000 Upto Rs. 60,000 Upto Rs. 1,50,000 20% on additional amount Above Rs. 1,50,000 30% on additional amount Nil 10% on additional amount Q2. Create a class for a bank database the database should support the following operations.(Menu Driven Program) 1. Deposit a certain amount into an account, 2. Withdrawing a certain amount from an account, 3. Return a value specifying the amount (i.e. balance) in an amount. Q3. A bookshop maintains the inventory of books that are being sold at the shop. The list includes details such as author, title, price, publisher and stock position. Whenever a customer wants a book, the sales person inputs the title and author and the system searches the list and displays whether it is available or not. If it is not, an appropriate message is displayed. If it is, then the system displays the book details and requests for the number of copies required. If the requested copies are available, the total cost of the requested copies is displayed; otherwise "Required copies not in stock" is displayed. Design a system using a class called books with suitable member functions and constructors. Q4.Define a "Clock" class that does the following: - a. Accept hours, minutes and seconds. b. Check the validity numbers. c. Set the time to AM/PM mode. Use necessary constructors and methods to do the above task. Q5.Write method of date class to support the following:- a. Method for validating that the integer-representing month is between 1 & 12 and checking that the day part of the date objects is within the correct range for a month. b. Obtaining the next day from a given date. Q6. Create a class 'Student' with three data members which are name, age and address. The constructor of the class assigns default values name as "unknown", age as '0' and address as "not available". It has two members with the same name 'setinfo'. First method has two parameters for name and age and assigns the same whereas the second method has three parameters which are assigned to name, age and address respectively. Print the name, age and address of 10 students. Hint - Use array of objects Reply.. Q7. Create a class to print an integer and a character with two methods having the same name but different sequence of the integer and the character parameters. For example, if the parameters of the first method are (int n, char c), then that of the second method will be of the form (char.c int nl
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY