Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Help with Multi Functions

Help with Multi Functions

Scheduled Pinned Locked Moved C / C++ / MFC
c++help
5 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W Offline
    W Offline
    WackoWolf
    wrote on last edited by
    #1

    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 //#using //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", int

    M K J 3 Replies Last reply
    0
    • W WackoWolf

      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 //#using //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", int

      M Offline
      M Offline
      Maximilien
      wrote on last edited by
      #2

      can you help us a bit here ? what is not working ?


      Maximilien Lincourt Your Head A Splode - Strong Bad

      W 1 Reply Last reply
      0
      • M Maximilien

        can you help us a bit here ? what is not working ?


        Maximilien Lincourt Your Head A Splode - Strong Bad

        W Offline
        W Offline
        WackoWolf
        wrote on last edited by
        #3

        none of it, I can't seem to get pass the build Joseph L. Gelsomino

        1 Reply Last reply
        0
        • W WackoWolf

          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 //#using //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", int

          K Offline
          K Offline
          ky_rerun
          wrote on last edited by
          #4

          WackoWolf wrote:

          #include //#using //using namespace System; void display_statement (double, double, double, double, int, double);

          I'm going to guess that your first problem is that the compiler can't find include file void. You need to start small wirte a hello world progam get that to compile then try agin with this project. Its had for us to help with compile erros when you don't post the messages.


          a programmer trapped in a thugs body

          1 Reply Last reply
          0
          • W WackoWolf

            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 //#using //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", int

            J Offline
            J Offline
            jmkhael
            wrote on last edited by
            #5

            Your problem is that you have a lot of NON matching braces for example: { <-------------------------------- here 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) { <-------------------------------- here 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); } <-------------------------------- here Papa while (TRUE) Papa.WillLove ( Bebe ) ;

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups