## Gtr_1

1. Write a program with one user-defined function to convert weight from pound to kg.

2. By using three user-defined functions, you are asked to write a program to calculate the area of a circle.
Function calculate_area – calculate the area of the circle
Function display – display the radius and the area of the circle

3. By using three user-defined functions, you are asked to write a program to count the total of 10 marks entered by user and the average. Then, the program should be able to process number of marks that are bigger than the average. The program will display all the marks entered, average and the number of marks that are bigger than the average.
Function 1 – to enter 10 marks
Function 2 - to find the average
Function 3 – to count a number of marks entered that are bigger than average

guyyssss i need help from u

## Reverend Jim 3,203

We won't do your homework for you but if you show us what you have done so far and where you are stuck perhaps we can help.

## Gtr_1

Function 3 didnt get. help me how to solve

## Reverend Jim 3,203

Please post the code in the thread (not as an attachment that I have to open in another application).

## Gtr_1

``````#include<iostream>
using namespace std;
void printAverage(int);

int main(){
int n, i;
float num, sum=0, average;

for (i = 0; i < 10; ++i) {
cout << i + 1 << " Enter number: ";
cin >> num[i];
sum += num[i];
}
}

void printAverage(int); {
average = sum / 10;
cout << "Sum = " << sum << " Average = " << average << endl;
}``````

## DGPickett 20

Once you have the average, you need another loop that reviews the input against it and prints the desired items.
{"ft_lang_label":"__label__en","ft_lang_prob":0.88907063,"math_prob":0.95209366,"size":878,"snap":"2020-10-2020-16","text_gpt3_token_len":191,"char_repetition_ratio":0.1590389,"word_repetition_ratio":0.20125785,"special_character_ratio":0.21753986,"punctuation_ratio":0.05421687,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9915717,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-04-03T05:02:16Z\",\"WARC-Record-ID\":\"<urn:uuid:6d8a8067-e43c-46af-8a38-343536c78991>\",\"Content-Length\":\"57708\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:60229a29-9376-4136-8c04-f7ce3cbbbf49>\",\"WARC-Concurrent-To\":\"<urn:uuid:eec77143-6a12-4fcc-9736-fe52faf7380f>\",\"WARC-IP-Address\":\"169.55.25.107\",\"WARC-Target-URI\":\"https://www.daniweb.com/programming/threads/522066/can-u-help-this\",\"WARC-Payload-Digest\":\"sha1:YQ7ZML73FF4AVBHTLNXWZ4YCDCSTK2TE\",\"WARC-Block-Digest\":\"sha1:BX364VAWEIO4MDO3WLWN4HBXRWNPBXGV\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-16/CC-MAIN-2020-16_segments_1585370510287.30_warc_CC-MAIN-20200403030659-20200403060659-00196.warc.gz\"}"}