Computer Science, asked by aditisingh12468, 10 months ago

This question is for computer geeks plz answer​

Attachments:

Answers

Answered by brightstar1234
2

Answer:

I'm wiriting main logic

Explanation:

int x= input.nextint(); //hour of worked

int y=inpu.nextint(); //sales

double per_commsion=0;

if (y<100 && y<1000){

per_comission = (y/100)*1 ; }

else if (y<1000 && y<10000){

per_comission = (y/100)*10 ; }

else if (y<10000 && y<25000){

per_comission = (y/100)*15 ; }

else if ( y>25000){

per_comission = (y/100)*20 ; }

double t_salary =(x*100)+per_commission; //wage of person with commission

mark it as brainliest.

Similar questions