jerusalem rose's
02-06-2006, 07:00 PM
السلام عليكم ورحمة الله وبركاته
انا جديدة في المنتدى
ومبتدئة في البرمجة
وارجو المساعدة
عندي مجموعة من الاسئلة ولكن لم استتطع حلهم
وارجو المساعدة
Q1- Write a function with three input parameter and one output parameter ,the output parameter should be set the smallest of the input parameters.
Q2- Write a function with two floating point input parameter and three output parameters .set the output parameter to the sum, product, and quotient of the input parameters. If the second input parameter equals 0 , do not compute the quotient . The function should return an int error status that is set to TRUE if the second input is 0 and otherwise set to FALSE.
Q3- Write a function that takes an array and its size as input parameter and has an output parameter that is computed to be the product of all of the elements in the array.
Q4- Write a function that has a floating point input parameter representing an amount of money and four output parameter that are computed as the number of quarters , dimes ,nickels ,and pennies in the original amount.
Q5- Write a function named array_sorting, that takes an array and its size as input parameter and has an output parameter that sort the elements of the array .
Q6- Write a function that take a string, and has an output parameter that count the number of word in this string, and output each word of the string on a separate line. "Hint: assume that the words are separated by a single blank, or comma or with a period at the end of the string."
انا جديدة في المنتدى
ومبتدئة في البرمجة
وارجو المساعدة
عندي مجموعة من الاسئلة ولكن لم استتطع حلهم
وارجو المساعدة
Q1- Write a function with three input parameter and one output parameter ,the output parameter should be set the smallest of the input parameters.
Q2- Write a function with two floating point input parameter and three output parameters .set the output parameter to the sum, product, and quotient of the input parameters. If the second input parameter equals 0 , do not compute the quotient . The function should return an int error status that is set to TRUE if the second input is 0 and otherwise set to FALSE.
Q3- Write a function that takes an array and its size as input parameter and has an output parameter that is computed to be the product of all of the elements in the array.
Q4- Write a function that has a floating point input parameter representing an amount of money and four output parameter that are computed as the number of quarters , dimes ,nickels ,and pennies in the original amount.
Q5- Write a function named array_sorting, that takes an array and its size as input parameter and has an output parameter that sort the elements of the array .
Q6- Write a function that take a string, and has an output parameter that count the number of word in this string, and output each word of the string on a separate line. "Hint: assume that the words are separated by a single blank, or comma or with a period at the end of the string."