Question: Assignment Objectives: Develop programs using an IDE in order to Edit, Debug and Run the code @2 Declare variables with some basic data types, and

Assignment Objectives: Develop programs using an IDE in order to Edit, Debug and Run the code @2 Declare variables with some basic data types, and implement some arithmetic operations @2 Perform simple operations on 1-D array @1 @2 Discuss your solution in front of your professor and teaching assistant @3 Q1: Computing Taxes (4 marks] The personal income tax is calculated based on the status and taxable income. There are three statuses: Single (S), Married (M), and Head of Household (H). The tax rates for 2020 are shown in the below table. Write a program that prompts the user to enter the status as a character: S, Mor H, and taxable income and computes the tax. Tax rate Single Married Head of household 10% 15% 27% 30% 35% Up to 6,000 6,000 -27,950 27,951 - 67,700 67,701 - 141,250 141,251 - 307,050 Up to 12,000 12,001 - 46,700 46,701 - 112,850 112,851 - 171,950 171,951 - 307,050 Up to 10,000 10,001 - 37,450 37,451 - 96,700 96,701 - 156,600 156,601 - 307,050 38.6% 307,051 or more 307,051 or more 307,051 or more Q2: Computing Vowels [3 marks] Write a program that defines an array of 7 characters (string). You need to prompt the user to read the string entered then compute how many vowels in that string. You should use switch statement to solve this question Example: if the user inputs: hello the number of vowels is 2 Q3: Displaying numbers in words [3 marks] Write a C code that prompts the user to input a 2-digit positive number and displays the number in words. You should use switch statement to solve this question. Example: if the number is 52 the program should displays: fifty-two (Hint: you need to split the number into its digits]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
