This is a C program. I want you to convert it to a C++ program. Also provide a screenshot that it is still working.Here is the program to be converted:
/* Write a program that will compute and display sales commission ofa Sales Representative given as input his total sales. The sales commissionis computed as 15% of the total sales. Moreover, a bonus of 1000.00 is givenif the computed sales commission exceeds 20,000.00. */
#include #include int main(){ float TS,SC; clrscr(); printf("Enter your Total Sales: Php "); scanf("%f",&TS); SC=TS*0.15; if (SC<> printf("The Sales Commission is Php %0.2f\n",SC); else { printf("For Exceeding Php 20000.00 Sales Commission\nYou are entitled for Php 1000.00 bonus!!!\n\n"); SC=SC+1000.00; // SC+=1000.00 printf("Your Total Sales Commission is Php %0.2f\n",SC); } getch(); return(0);}
clrscr(); printf("Enter your Total Sales: Php "); scanf("%f",&TS); SC=TS*0.15; if (SC<> printf("The Sales Commission is Php %0.2f\n",SC); else { printf("For Exceeding Php 20000.00 Sales Commission\nYou are entitled for Php 1000.00 bonus!!!\n\n"); SC=SC+1000.00; // SC+=1000.00 printf("Your Total Sales Commission is Php %0.2f\n",SC); } getch(); return(0);}
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here