Nov 23, 2024
HEP 456 Module 6 Section 14 Communication and Dissemination of The Findings Arizona State University
HEP 456 Module 6 Section 14 Communication and Dissemination of The Findings HEP 456: Health Promotion Program ā¦
Create a working version of it based on your flowchart. This should be a working program that accepts user input, does some calculation, and shows the results. It does not have to use conditional expressions, loops, and the like.
//Calculate a loan payment schedule
#include < iostream >
#include < iomanip > #include < cmath > using namespace std;
int main() {
int startingBalance = 0.0; int loanLength = 0.0; int interestRate = 0.0; int monthlyPayment = 0.0; int finalCost1 = 0.0; int finalCost2 = 0.0; int MontPropPayment = 0.0; int intSav = 0.0;
cout \<\< fixed \<\< showpoint;
//User input loan balance cout \<\< "Enter loan amount: "; cin >> startingBalance;
//User input length of loan cout \<\< "Enter length of loan: "; cin >> loanLength;
//User input interest rate cout \<\< "\nAnnual interest rate: "; cin >> interestRate;
//User input Proposed Monthly Payment cout \<\< "Proposed Payment: "; cin >> MontPropPayment;
{ monthlyPayment = (startingBalance \*interestRate) / loanLength; finalCost1 = startingBalance \* interestRate; finalCost1 = startingBalance \* interestRate;
finalCost2 =
((startingBalance / MontPropPayment) - loanLength) \* interestRate; intSav = finalCost1 - finalCost2; if (MontPropPayment > monthlyPayment)
{ cout \<\< "Total owed will be " \<\< finalCost2 \<\< endl; cout \<\< "your monthly payment is " \<\< MontPropPayment \<\< endl; cout \<\< "Interest Saved is " \<\< intSav \<\< endl;
}
if (MontPropPayment > monthlyPayment);
{ cout \<\< "Total owed will be " \<\< finalCost1 \<\< endl; cout \<\< "your regular monthly payment is " \<\< monthlyPayment \<\< endl;
}
} return 0;
}
HEP 456 Module 6 Section 14 Communication and Dissemination of The Findings HEP 456: Health Promotion Program ā¦
NTR 100 COMPLETE Syllabus and Academic Integrity Acknowledgement Question 1 1 / 1 pts I have read the ASU ā¦
HEP 456 Module 5 Section 12 and 13 Planning for Analysis and Interpretation and Gantt chartĀ Name HEP 456: ā¦