Can someone answer the task below?
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
Can someone answer the task below?

Transcribed Image Text:CSC511 - INTRODUCTION TO C++
Semester 1 - 2021
ASSIGNMENT 2 - 10%
Due Date: 30th April, 11: 55PM
In this assignment you will demonstrate the use of a combination of selection and loop
structure in C++ programming.
Part A:
For this assignment you are required to create a program for Mastiff Hotel Group of Companies
to assist them in automating the Income Tax Calculation process for all its employees. The
employee tax deduction varies based on their age and annual income. The Tax calculation
table below has the details:
Age < 55
08 tax if annual income < 10 000,
108 tax if 10 000 s annual income s 50 000
20% tax if 50 000 < annual income s 100 000
30% tax if annual income > 100 000
55 S Age < 80
0s tax if annual income < 20 000,
10% tax if 20 000 s annual income s 70 00
20% tax if 70 000 < annual income s 150 000
30% tax if annual income > 150 000
Age 2 80 and Age s 120
08 tax if annual income (No Tax)
Exception-handling - the program should allow only legitimate Age and Annual
Income.
Tax Calculation Program
The program should request for the employee names, FNPF#, Age and Annual Income. Using
the information entered, the program must generate the Income Tax slip for the employee.
Once that information has been captured, the program must then ask the user if they need
to generate an income tax slips for another employee. The program must allow the user to
continue generating tax calculation slips until the user enters 'N' for NO, which marks the end
of the session.
A sample User Prompt screen is provided below:
Michael Buadromo
100200
Enter Employee Names:
Enter Employee FNPF# :
Enter Employee Age:
Enter Employee Annual Income: 40000
38
csc511 Introduction to C++
Page 1 of 3
A sample tax slip for employee Michael Buadromo is provided below:
Mastiff Hotel Group of Companies
Employee Name:
FNPF:
Michael Buadromo
100200
Summary:
----
Annual Income:
$ 40000.00
Age:
Income Tax Rate:
38
10%
Income Tax Amount
$ 4000.00
Note that the first column is left-justified, and the right column is
right justified.
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 3 steps with 2 images

Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you

Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON

Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education