Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a program in C language to calculate his gross salary. Gross salary is the sum of basic salary and all the allowances. You program
Write a program in C language to calculate his gross salary. Gross salary is the sum of basic salary and all the allowances.
You program should prompt user to enter Alis basic salary and display his Gross salary
Ali's basic salary is input through the keyboard. If his basic salary is greater than or equal to 50,000 Rs then his medical allowance is 30% of his basic salary & travelling allowance is 20 % of his basic salary. If his basic salary is less than 50,000 then his medical allowance is 20 % of his basic salary. & Travelling allowance is 15% of his basic salary Write a program in C language to calculate his gross salary. Gross salary is the sum of basic salary and all the allowances. You program should prompt user to enter Ali's basic salary and display his Gross salary Sample Input Sample Output Ali's gross salary is 90000 Rupees. Enter Ali's basic salary:60000 --> Enter Ali's basic salary:30000 --> Ali's gross salary is 40500 Rupees. Part a) Provide at least two more sample input and output [1 mark] Part b) Descriptive solution [upto 1 mark] OR step-wise pseudo-code (may or may not be executable) (upto 2 marks] OR Submit executable program code with proper indentation and comments (using C Language) (upto 4 marks]Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started