write a c program to calculate the income tax of the
employees in an organization where the conditions are given as.
(I.T. = 0 if income <100000
I.T = 10% if income _< 200000
it = 20% if income >_ 200000)
Answer Posted / manivannan
int I.T,income;
printf("Enter Your income");
scanf("%d",&income);
if(income<100000)
I.T=0;
elseif(income<200000)
I.T=income * 10/100;
elseif(income>200000)
I.T=income * 20/100;
income=income+I.T;
| Is This Answer Correct ? | 60 Yes | 90 No |
Post New Answer View All Answers
What is derived datatype in c?
Write a program to know whether the input number is an armstrong number.
What's the best way of making my program efficient?
Why do we use int main instead of void main in c?
An arrangement of information in memory in such a way that it can be easily accessed and processed by a programming language a) string b) data structure c) pointers d) array
Explain what is the difference between text files and binary files?
How does struct work in c?
What are multidimensional arrays?
Where we use clrscr in c?
In cryptography, you could often break the algorithm if you know what was the original (plain) text that was encoded into the current ciphertext. This is called the plain text attack. In this simple problem, we illustrate the plain text attack on a simple substitution cipher encryption, where you know each letter has been substituted with a different letter from the alphabet but you don’t know what that letter is. You are given the cipherText as the input string to the function getwordSets(). You know that a plain text "AMMUNITION" occurs somewhere in this cipher text. Now, you have to find out which sets of characters corresponds to the encrypted form of the "AMMUNITION". You can assume that the encryption follows simple substitution only. [Hint: You could use the pattern in the "AMMUNITION" like MM occurring twice together to identify this]
Differentiate between null and void pointers.
count = 0; for (i = 1;i < = 10; i++);count = count + i; Value of count after execution of the above statements will be a) 0 b) 11 c) 55 d) array
Explain the use of function toupper() with and example code?
How do we open a binary file in Read/Write mode in C?
What is meant by 'bit masking'?