Answer Posted / hrpynux@gmail.com
We can convert int to String in java using String. valueOf() and Integer. toString() methods. Alternatively, we can use String.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
The program will first compute the tax you owe based on your income. User is prompted to enter income. Program will compute the total amount of tax owed based on the following: Income Tax 0 - $45,000 = 0.15 x income $45,001 - $90,000 = 6750 + 0.20 x (income – 45000) $90,001 - $140,000 = 15750 + 0.26 x (income – 90000) $140,001 - $200,000 = 28750 + 0.29 x (income – 140000) Greater than $200,000 = 46150 + 0.33 x (income – 200000) Dollar amounts should be in dollars and cents (float point numbers with two decimals shown). Tax is displayed on the screen.
main(){char *str;scanf("%s",str);printf("%s",str); }The error in the above program is: a) Variable 'str' is not initialised b) Format control for a string is not %s c) Parameter to scanf is passed by value. It should be an address d) none
What is keyword in c?
Explain the difference between strcpy() and memcpy() function?
What are types of preprocessor in c?
how to find anagram without using string functions using only loops in c programming
What is difference between structure and union in c?
Describe newline escape sequence with a sample program?
Why do we use pointer to pointer in c?
What are types of structure?
What is a char in c?
What is property type c?
Are pointers integer?
What are the 4 data types?
What are the string functions? List some string functions available in c.