Transcribed TextTranscribed Text

Introduction to Structured Programming Assign 2a (5pts) Write a "C" program to implement the function interface below as an external function. Test your solution using the stub program shown below. void CalculateTaxes (float gross, float deferred, float *fedtax, float *statetax, float *ssitax); //3.5 float CalcFedtax(float gross,float deferred) ; //3.5.1 float CalcStatetax (float fedtax); 11 3.5.2 float CalcSSItax(float gross, float deferred) ; //3.5.3 11 Stub program code #include #define ADDR (var) &var int main (void) ( float ft,st,ssit; CalculateTaxes (1000, 100, ADDR (ft), ADDR (st), , ADDR (ssit) ; printf FedTax = $8.2f\n",ft); printf StateTax printf SSITax - 88.2f\n,ssit); fflush(stdin); 11 on some Unix/Linux systems, fflush() does not work as in Windows // substitute the following: while (getchar() != '\n'); getchar (). return 0; } Assign 2b (5pts) Convert the source of Assignment 2a to utilize only and . Staple and submit this assignment in the following order: a) A copy of the program hierarchy chart. b) A copy of the program flowchart. c) A listing of your program source file. d) A copy of the report produced.

Solution PreviewSolution Preview

This material may consist of step-by-step explanations on how to solve a problem or examples of proper writing, including the use of citations, references, bibliographies, and formatting. This material is made available for the sole purpose of studying and learning - misuse is strictly forbidden.

#include <iostream>
#include <iomanip>

using namespace std;
extern void CalculateTaxes(float gross, float deferred,
                            float *fedtax,
                            float *statetax,
                            float *ssitax);

int main(){
    float ft,st,ssit...
$20.00 for this solution

PayPal, G Pay, ApplePay, Amazon Pay, and all major credit cards accepted.

Find A Tutor

View available C-Family Programming Tutors

Get College Homework Help.

Are you sure you don't want to upload any files?

Fast tutor response requires as much info as possible.

Upload a file
Continue without uploading

We couldn't find that subject.
Please select the best match from the list below.

We'll send you an email right away. If it's not in your inbox, check your spam folder.

  • 1
  • 2
  • 3
Live Chats