Description of this paper

Loading

Create the logic for a program that accepts an annual salary as-(Answered)

Description

Step-by-step Instant Solution


Question

Create the logic for a program that accepts an annual salary as input. Pass the salary to a method that calculates the highest monthly housing payment the user can afford, assuming that the year?s total payment is no more than 25 percent of the annual salary.


#include<stdio.h>

 

float Calculate_Month_Rent(float Sal)

 

{

 

float housing_rent, monthly_Sal;

 

monthly_Sal = Sal/12;

 

housing_rent = monthly_Sal/4;

 

return housing_rent;

 

}

 

int main()

 

{

 

float...

 

Paper#9256669 | Written in 27-Jul-2016

Price : $16
SiteLock