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
write a program that prompt the user to enter his height and weight,then calculate the body mass index and show the algorithm used
Code for Two Classes for Doing Gzip in Memory?
how to diplay a external image of output on winxp by using c & c++,
write a program using virtual function to find the transposing of a square matrix?
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.)
develop a program to calculate and print body mass index for 200 employees
A suduco given & u hv 2 check if it is incomplete(blanks left),or correct or incorrect
How to Split Strings with Regex in Managed C++ Applications?
output for printf("printf");
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
write a program that can LOCATE and INSERT elements in array using c++ programming languages.
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++
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?
How can I Draw an ellipse in 3d space and color it by using graph3d?
can you please write a program for deadlock that can detect deadlock and to prevent deadlock.