Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

TASEK1:allow the user to enter the data TASK2:calculate the raise amount and new

ID: 3620033 • Letter: T

Question

TASEK1:allow the user to enter the data
TASK2:calculate the raise amount and new pay amount
TASK3:print out the name, department, current yearly income, raise percentage,raise amount,and new pay amount.
___________________
what did i do wrong? i am stuck with entering the income and raise percentage i used ci:current income,rp:raise percentage,npa:new pay amount. I didn't start with the new pay amount because im stuck at raise percentage.
This is the data i need to enter
Name: larry jones
department:mathmatics
current yearly income:$58147.75
raise percentage:5.7%
________________________________________

#include
void main ()
{
char name[11], department[12];
double ci,rp;
double ra;

printf("enter name");
gets(name);
printf("enter department");
gets(department);
printf("enter current income and raise percentage");
scanf("%d%d", &ci,&rp);
ra=(ci*rp/100);
printf("%s has a raise amount of %d " ,name , ra);



}

Explanation / Answer

please rate - thanks you were entering and printing the type double characters as integers. Hope you don't mind I added the last part #include<stdio.h>
#include<conio.h>
int main ()
{
char name[11], department[12];
double ci,rp;
double ra,npa;

printf("enter name ");
gets(name);
printf("enter department ");
gets(department);
printf("enter current income and raise percentage ");
scanf("%lf %lf", &ci,&rp);
ra=(ci*rp/100.);
npa=ci+ra;
printf("%s has a raise amount of $%.2f " ,name , ra);
printf("New pay is $%.2f ",npa);
getch();
return 0;


}