1.What is a Data Structure? Explain its need?
2.What is a Directed Graph? Write an algorithm to find
whether a Directed Graph is connected or not?
3.Explain the process of converting a Tree to a Binary Tree.
Answer Posted / gsrinivas
1.Data structure is mathematicle model to represent a data
in a computers memory.programming becomes easy.
| Is This Answer Correct ? | 12 Yes | 4 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.
Explain what is the benefit of using enum to declare a constant?
What is #include called?
What is the difference between the expression “++a” and “a++”?
Is sizeof a keyword in c?
How can you find the exact size of a data type in c?
What is static identifier?
What is a void pointer in c?
Explain what are preprocessor directives?
What are lookup tables in c?
What is the use of function in c?
Can we declare a function inside a function in c?
What is a spanning Tree?
Write a program to generate random numbers in c?
What are disadvantages of C language.