CSCI250L Sample Exam 1 Spring 2020- Write a program that prompts the user to enter the name, the number of children, and the basic salary of a The program will then: Calculate the bonus: Calculate the new salary: • Apply a tax of 10% and find the paid salary: The program will then display all the information needed as shown in the sample run below Sample Run:

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter5: Repetition Statements
Section5.6: Nested Loops
Problem 5E: (Mathematical functions) Write a program that calculates and displays values for y when y=xz/(xz)...
icon
Related questions
Question
100%
CSCI250L
Sample Exam 1
Spring 2020-2021
Write a program that prompts the user to enter the name, the number of children, and the basic salary of an cmployee.
The program will then:
Calculate the bonus:
Calculate the new salary:
• Apply a tax of 10% and find the paid salary:
The program will then display all the information neceded as shown in the sample run below
Sample Run:
Enter the name of the employee: Jamal
Enter the number of children of the employee: 4
Enter the salary of the employee (in $): 1500
The calculated bonus is $100 for 4 children.
The new salary is $1600.0
The paid salary for Jamal is $1440.0
Page
2 1 3
Transcribed Image Text:CSCI250L Sample Exam 1 Spring 2020-2021 Write a program that prompts the user to enter the name, the number of children, and the basic salary of an cmployee. The program will then: Calculate the bonus: Calculate the new salary: • Apply a tax of 10% and find the paid salary: The program will then display all the information neceded as shown in the sample run below Sample Run: Enter the name of the employee: Jamal Enter the number of children of the employee: 4 Enter the salary of the employee (in $): 1500 The calculated bonus is $100 for 4 children. The new salary is $1600.0 The paid salary for Jamal is $1440.0 Page 2 1 3
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Types of Loop
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.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage