I need to know how I would setup my program so that after I make it a .exe and install it on another computer it give me the option to connect to a database on a server? Can someone guide me to a sample or a link as to how to do this. Thank You WackoWolf Joseph L. Gelsomino
WackoWolf
Posts
-
How To Connect to Database after Deployment -
Help with Multi Functionsnone of it, I can't seem to get pass the build Joseph L. Gelsomino
-
Help with Multi FunctionsI 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
-
Need Help With CalculationThe program works, but the calculation is wrong. The is written in C. Could someone tell me what I am doing wrong? Thank You #include "stdafx.h" #include #using using namespace System; // Function prorotypes void sphere_volume (double); // PI is a constant const double PI=3.14159; int _tmain() { // Integer local to Main to store initial radius value double r; printf("Please Enter A Positive Radius Value\n"); scanf("%lf", &r); // If Else Function To Make Sure The User Types A Positive and Not A Negative Integer. if (r >= 0) sphere_volume (r); else printf("You Must Enter A Positive Integer!!!! Not A Negative Integer!!!\n"); return 0; } // This Is The Fnction That Does The Calculations For The Volume. void sphere_volume (double radius) { double radius_cubed; double exponent=3; double volume; printf("This Is The Test To See If R Was Passed To The Function: %lf\n", radius); radius_cubed=pow(radius, exponent); volume=(4/3)*PI*radius_cubed; printf("The Volume Of The Sphere is %lf\n", volume); } Joseph L. Gelsomino