Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

the c c program for questions 1-6, then compile and run your program Paste copie

ID: 3789424 • Letter: T

Question


the c c program for questions 1-6, then compile and run your program Paste copies of your code and a small sample size (Le. about 10 lines) showing your results onto your answer sheet. Also make all programs automat reboot by using a while loop.Finally, ex7is a bonus for 100 pts, but it is not required 1) The Tasmanian income tax table is given below, write ac/c program that will calculate and print out the tax that is owed when the user enters his annual income. INCOME YEAR TAxon INCOME 7.5 .ons 0-6000.00 450.00 18 on each dollar 6000 6001-25000 3870.00 28% on each dollar over 25000 10870.00 45 on each dollar over 50000 50001-75000 22120.00 48% on each dollar over 75000 75001-100000 34120,00 50% for income exceeding 100000 In addition, there is a 3% medical tax on all income less than $50 k. so persons with income higher than s 50 k max out at a med tax of s 1500.00) Use cout statements to display the calculated taxes on the screen. Also use while loop to allow user to input multiple incomes. After writing your program, test run for incomes of $5k s22 k,s40 k,s60 k, $90 k and 220 k 2.) write c/c+ code to Calculate the real part, imaginary part, amplitude and phase angle of the following complex function: Print out a table of values for Real, lmaginary, amplitude and phase as t varies from 0to 20 in step sizes of 0.5

Explanation / Answer

As per chegg policy I will be answering only top 3 questions:

1)

#include<iostream>
using namespace std;
int main()
{
   float income,tax;

   int i=1;
while(i==1){
   cout<<"Enter annual income";
   cin>>income;
   if(income<=6000)
   {
       tax=7.7*60+0.03*income;
   }
   else if(income>6000 && income<=25000)
   {
           tax=450+0.18*(income-6000)+0.03*income;
          
   }
       else if(income>6000 && income<=25000)
   {
           tax=450+0.18*(income-6000)+0.03*income;
          
   }
       else if(income>25000 && income<=50000)
   {
           tax=3870+0.28*(income-25000)+0.03*income;
          
   }
       else if(income>50000 && income<=75000)
   {
           tax=10870+0.45*(income-50000)+1500;
          
   }
       else if(income>75000 && income<=100000)
   {
           tax=22120+0.48*(income-75000)+1500;
          
   }
   else
   {
       tax=34120+0.50*(income-100000)+1500;
   }
   cout<<"Your tax is "<<tax<<endl;
   cout<<"Want to calculate another tax press 1 for yes, 0 for exit"<<endl;
   cin>>i;
  
  
}
   return 0;
}

2)

#include<iostream>
#include<math.h>
using namespace std;
int main()
{
   float x,y;

   int i=1;
   float val;
while(i==1){
   cout<<"Enter x,y"<<endl;
   cin>>x>>y;

   if(x>=0 && y>=0)
   {
   val=3*pow(x-9*y,4);  
   }
       if(x>=0 && y<0)
   {
   val=2*sqrt(x+y)-3/pow(x*y,y-x);  
   }
       if(x<0 && y>=0)
   {
   val=12*x*x*y-12*y*y*x;  
   }
   else
   {
       val=pow(x/y+y/x,(x+y)/y-x);
   }
   cout<<"The value of equation is: "<<val<<endl;
   cout<<"Want to calculate more press 1 for yes, 0 for exit"<<endl;
   cin>>i;
  
  
}
   return 0;
}

3)

float TEMPR_FC(int option)
{
    if (option == '1')
{
cout << "Please enter temperature in Celsius Degrees:" << endl;
cin >> degrees;
float f = (degrees * 1.8) + 32;
       return f;
}
else
{
cout << "Fahrenheit to Celsius" << endl;
cin >> degrees;
float c = (degrees - 32) / 1.8;
return c;
}

}