Click here to Skip to main content
15,911,646 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionGDI- How to draw concentric circles in the client area of window Pin
tamila_tamila13-Oct-05 7:00
tamila_tamila13-Oct-05 7:00 
AnswerRe: GDI- How to draw concentric circles in the client area of window Pin
S. Senthil Kumar13-Oct-05 21:59
S. Senthil Kumar13-Oct-05 21:59 
QuestionRuntime Error, dbgheap.c Line:612 Pin
Jader8913-Oct-05 6:21
Jader8913-Oct-05 6:21 
GeneralRe: Runtime Error, dbgheap.c Line:612 Pin
David Crow13-Oct-05 7:06
David Crow13-Oct-05 7:06 
GeneralRe: Runtime Error, dbgheap.c Line:612 Pin
Jader8913-Oct-05 8:13
Jader8913-Oct-05 8:13 
QuestionRe: Runtime Error, dbgheap.c Line:612 Pin
David Crow13-Oct-05 10:20
David Crow13-Oct-05 10:20 
AnswerRe: Runtime Error, dbgheap.c Line:612 Pin
Jader8914-Oct-05 7:44
Jader8914-Oct-05 7:44 
QuestionHelp with Multi Functions Pin
WackoWolf13-Oct-05 6:12
WackoWolf13-Oct-05 6:12 
I have been working on this all night and into the day. Can someone please help me with the mistakes that I have made. Please help.


// This is the main project file for VC++ application project
// generated using an Application Wizard.

#include "stdafx.h"
#include <math.h>

//#using <mscorlib.dll>

//using namespace System;

void display_statement (double, double, double, double, int, double);
double Tinterest_paid(double, int);
double payment_amount (double, double, int);



int main(void)

{
double a=1;
double b=1;
double c=1;
double d=1;
double e=1;
double x=1;
double i; // Interest_Rate Monthly
double p; // Principal
int n ; // Number Payments display_statement
double Payment_Amount;
double payment;
double Total_Amount;
double total_amount;
double Tamount_paid;
double total_interest;
double Tinterest_paid(double, int);
double payment_amount (double, double, int);


printf("Please Enter Interest Rate "); // Key As n.n
scanf("%lf",&i);
printf("Please Enter Loan Amount "); // Amount of Loan
scanf("%lf",&p);
printf("Please Number Of Monthly payments "); // Number Of Monthly
scanf("%d",&n);

payment = Payment_Amount (i,p,n);
Total_Amount = Tamount_paid(payment,n);
total_interest=Tinterest_paid(total_amount,p);

void display_statement (double, double, double, double, int, double);

}

{
double x;

x = Tinterest_paid(200000, 150000);
printf("The result is\n\n %f', X);

return 0;



}

double Tinterest_paid (double amount_paid, double Principal)

{

double int_paid;

int_paid = amount_paid - Principal;

return (int_paid);

{

double x;
x = Payment_Amount(5.5, 100000, 60);

}

double Payment_Amount (double Interest_Rate, double Principle, int Number_Payments)

{
double a, payment;

a = Interest_Rate/100;
a= a/12;

payment = (a* Principle)/ (1 - pow((1+a), -Number_Payments));
return(payment);
}

{
display_statement (a, b, c, d, x, e);
return 0;


void display_statement (double payment, double loan_payment, double Tinterest, double Principal, int Number_Payments, double interestrate)

{

printf("Monthy Payment: $%.2f\n\n", payment);
printf("Total Loan Amount; $%.2f\n\n", loan_Amount);
printf("Total Interest Payment: $%.2f\n\n", Tinterest);
printf("Principal: $%.2f\n\n", Principal);
printf("Number Of Payments: %d\n\n", Number_Payments);
printf("Interest Rate %.3f percent\n\n", interestrate);

}


Joseph L. Gelsomino
AnswerRe: Help with Multi Functions Pin
Maximilien13-Oct-05 6:35
Maximilien13-Oct-05 6:35 
GeneralRe: Help with Multi Functions Pin
WackoWolf13-Oct-05 7:16
WackoWolf13-Oct-05 7:16 
AnswerRe: Help with Multi Functions Pin
ky_rerun13-Oct-05 8:54
ky_rerun13-Oct-05 8:54 
AnswerRe: Help with Multi Functions Pin
jmkhael13-Oct-05 9:44
jmkhael13-Oct-05 9:44 
QuestionEncrypted shared memory Pin
Chintoo72313-Oct-05 5:18
Chintoo72313-Oct-05 5:18 
QuestionMissing pointer between threads Pin
bispenho13-Oct-05 5:16
sussbispenho13-Oct-05 5:16 
AnswerRe: Missing pointer between threads Pin
David Crow13-Oct-05 5:42
David Crow13-Oct-05 5:42 
GeneralRe: Missing pointer between threads Pin
bispenho13-Oct-05 6:20
sussbispenho13-Oct-05 6:20 
GeneralRe: Missing pointer between threads Pin
David Crow13-Oct-05 7:12
David Crow13-Oct-05 7:12 
GeneralRe: Missing pointer between threads Pin
André RB13-Oct-05 7:31
André RB13-Oct-05 7:31 
GeneralRe: Missing pointer between threads Pin
David Crow13-Oct-05 10:18
David Crow13-Oct-05 10:18 
AnswerRe: Missing pointer between threads Pin
LighthouseJ13-Oct-05 8:19
LighthouseJ13-Oct-05 8:19 
GeneralRe: Missing pointer between threads Pin
André RB13-Oct-05 9:20
André RB13-Oct-05 9:20 
QuestionGlobals and namespace Pin
karmendra_js13-Oct-05 4:14
karmendra_js13-Oct-05 4:14 
AnswerRe: Globals and namespace Pin
Chris Losinger13-Oct-05 5:29
professionalChris Losinger13-Oct-05 5:29 
AnswerRe: Globals and namespace Pin
toxcct13-Oct-05 5:29
toxcct13-Oct-05 5:29 
AnswerRe: Globals and namespace Pin
ddmcr13-Oct-05 5:52
ddmcr13-Oct-05 5:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.