Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Write a function- oriented to convert the input dollar(s)
into its equivalent peso. Assume that one dollar is
equivalent to 51.60

Answer Posted / sreejesh1987


void main()
{
float dlr;
float peso(float d);
clrscr();
printf("Enter the amount of dollors with you: ");
scanf("%f",&dlr);
printf("\nYour dollars are equivalent to %.2f
peso",peso(dlr));
getch();

}
float peso(float x)
{
return x*51.60;
}

Is This Answer Correct ?    9 Yes 20 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

write a program that prompt the user to enter his height and weight,then calculate the body mass index and show the algorithm used

4846


Code for Two Classes for Doing Gzip in Memory?

3250


how to diplay a external image of output on winxp by using c & c++,

3436


write a program using virtual function to find the transposing of a square matrix?

3356


Write a (n) algorithm that sorts n distinct integers, ranging in size between 1 and kn inclusive, where k is a constant positive integer. (Hint: Use a kn-element array.)

4977


develop a program to calculate and print body mass index for 200 employees

2652


A suduco given & u hv 2 check if it is incomplete(blanks left),or correct or incorrect

2871


How to Split Strings with Regex in Managed C++ Applications?

3649


output for printf("printf");

2526


write a program to calculate the amount of investment after a period n years if the principal investors was p and interest is calculated using compound interest,formular=a=p(1+r)^n

2849


write a program that can LOCATE and INSERT elements in array using c++ programming languages.

4010


Question 1: Implement a base class Appointment and derived classes Onetime, Daily, Weekly, and Monthly. An appointment has a description (for example, “see the dentist”) and a date and time. Write a virtual function occurs_on(int year, int month, int day) that checks whether the appointment occurs on that date. For example, for a monthly appointment, you must check whether the day of the month matches. Then fill a vector of Appointment* with a mixture of appointments. Have the user enter a date and print out all appointments that happen on that date. *This Should Be Done IN C++

1150


Write a program that print in screen a tree with its height taken from user by entering number of 4 digits and find the odd numbers then calculate the sum of odd numbers so he get the height of tree?

3348


How can I Draw an ellipse in 3d space and color it by using graph3d?

2609


can you please write a program for deadlock that can detect deadlock and to prevent deadlock.

3228