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
Given a table of the form: Product Sold on A 1/1/1980 B 1/1/1980 C 1/1/1980 A 1/1/1980 B 1/1/1980 C 2/1/1980 A 2/1/1980 There are 30 products and 10,000 records of such type. Also the month period during which sales happened is given to u. Write the program to display the result as: Product Month No. of copies A January 12 A February 15 A March 27 B January 54 B February 15 B March 10 C January 37
Code for Small C++ Class to Transform Any Static Control into a Hyperlink Control?
We need to write the function to check the password entered is correct or not based on the following conditions.. a) It must have atleast one lower case character and one digit. b)It must not have any Upper case characters and any special characters c) length should be b/w 5-12. d) It should not have any same immediate patterns like abcanan1 : not acceptable coz of an an pattern abc11se: not acceptable, coz of pattern 11 123sd123 : acceptable, as not immediate pattern adfasdsdf : not acceptable, as no digits Aasdfasd12: not acceptable, as have uppercase character
develop a program to calculate and print body mass index for 200 employees
3. Program to find the Sum of give series. a. (1)+(1+2)+(1+2+3)+(1+2+3+4)+……………………………….. b. 1/1+1/9+1/25+1/49+……………...
Performance Algorithm A performs 10n2 basic operations and algorithm B performs 300 lg n basic operations. For what value of n does algorithm B start to show its better performance?
Ask the user to input three positive integers M, N and q. Make the 2 dimensional array of integers with size MxN, where all the elements of I (I = 1,…,M) line will be members of geometrical progression with first element equal to the number of line (I) and denominator q.
write a function that reverse the elements of an array in place.The function must accept only one pointer value and return void.
write a program using virtual function to find the transposing of a square matrix?
can you please write a program for deadlock that can detect deadlock and to prevent deadlock.
how to diplay a external image of output on winxp by using c & c++,
1+1/2!+1/3!+...+1/n!
write a program that prompt the user to enter his height and weight,then calculate the body mass index and show the algorithm used
write a program to convert temperature from fa height into celcius and vise versa,use modular programming
write a program that reads a series of strings and prints only those strings begging with letter "b"