Workers at a particular company have won a 7.6% pay increase. Moreover, the increase is retroactive for six months. Create a program that takes an employee’s previous annual salary as input. And then outputs the amount of retroactive pay due the employees, the new annual salary and the new monthly salary. P.S. - Please follow my coding style because my teacher don't want any style to use.

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
icon
Related questions
Question

I am coding a program but turbo c+++ makes a wrong computation, is there any error in my codes? I can't get the output I am looking for. 

 

Here is the problem:

Workers at a particular company have won a 7.6% pay increase. Moreover, the increase is retroactive for six months. Create a program that takes an employee’s previous annual salary as input. And then outputs the amount of retroactive pay due the employees, the new annual salary and the new monthly salary.

P.S. - Please follow my coding style because my teacher don't want any style to use.

File Edit Search Run Compile Debug
Pro ject Options
Window Help
[1]:
PRACTICA.C
1=[*]¬
#include<stdio.h>
ma in()
int ps,rp,as, ms;
clrscr();
printf ("Enter the employee's previous annual salary: P");
scanf ( "zd",&ps);
rp=(ps/2)*0.076;
as=(ps*0.076)+ps;
ms=as/12;
printf ("The retroactive pay is: Pzd",rp);
printf ("nThe new annual salary is: Pzd",as);
printf ("nThe new monthly salary is: Pzd",ms);
getch();
15:64
F1 Help F2 Save F3 0pen Alt-F9 Compile F9 Make
F10 Menu
Transcribed Image Text:File Edit Search Run Compile Debug Pro ject Options Window Help [1]: PRACTICA.C 1=[*]¬ #include<stdio.h> ma in() int ps,rp,as, ms; clrscr(); printf ("Enter the employee's previous annual salary: P"); scanf ( "zd",&ps); rp=(ps/2)*0.076; as=(ps*0.076)+ps; ms=as/12; printf ("The retroactive pay is: Pzd",rp); printf ("nThe new annual salary is: Pzd",as); printf ("nThe new monthly salary is: Pzd",ms); getch(); 15:64 F1 Help F2 Save F3 0pen Alt-F9 Compile F9 Make F10 Menu
Run Compile Debug
PRACTICA.C
Project 0ptions
Window Help
1=[*]¬
File Edit Search
Enter the employee's previous annua l salary: P100000
The retroactive pay is: P-1180
The new amnual salary is: P32103
The new monthly salary is: P2675
Transcribed Image Text:Run Compile Debug PRACTICA.C Project 0ptions Window Help 1=[*]¬ File Edit Search Enter the employee's previous annua l salary: P100000 The retroactive pay is: P-1180 The new amnual salary is: P32103 The new monthly salary is: P2675
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Function Arguments
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
Database System Concepts
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)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education