The current year and the year in which the employee joined the organisation are entered through the keyboard . If the number of years for which the employee has served the organisation is greater than 3 years then the bonus of Rs.2500/- is given to the employee. If the years of service is not greater than 3, then the program should not do anything. byHarshvardhan Tandon •May 07, 2021 #include<stdio.h> void main() { //ProgramWithHarsh// int cy,yoj,noy,bonus=0; printf("\nEnter the current Year ="); scanf("%d",&cy); printf("\nEnter year of joining ="); scanf(&…
While purchasing certain items, a discount of 10% is offered if the quantity purchased is more than 1000. If quantity and price per item are input through the keyboard, write a program to calculate the total expenses. byHarshvardhan Tandon •May 07, 2021 #include<stdio.h> void main() { //ProgramWithHarsh// int qty,dis=0; float Total,rate ; printf("\n Quantity of item = "); scanf("%d",&qty); printf("\n Rate of item ="); s…