Ok guys, I could use a little programming help. I have two programming problems that I have to figure out, and I've been pounding my brain for the last two weeks trying to solve them. I'm not a programmer, basic reason why. If anyone can help me on this, I can't do anything for ya except give my thanks. Here's one program:

I. Write a program that will input non-negative integer and call a function DWARF to determine if the integer is DWARF or not.

Output Specifications

The factors of N:

The sum of its factors are :

Half of N is

N is DWARF

Sample Input

Input N? 6

Sample Output

Factors are 1,2,3

The sum of its factors are 1+2+3=6

Half of the number is 3

6 is DWARF

Sample Input

Input N ? 9

Sample Output

Factors are 1,3

The sum of its factors are 1+3=4

Half of number is 4.5

9 is DWARF

The other is this

II. ARRAY - An instructor gave a multiple choice test, which consists of 5 questions, each of which is answered by a choice of one of the #s 1 - 5. The program should grade the test. If the student choice is 1, give 1 point. If the choice is 2, give 2 points, and so on. Otherwise no point is given. The programe should compute the average score of the student on the given test.

Input Specifications

Write a program that will accept student name and the set of their test answer.

Output Specifications

Print the name of the student, his/her total score, and the set of their test answer.

Sample Input

Enter Student Name: Mae

Enter Answer 1? 2

Enter Answer 2? 3

Enter Answer 3? 5

Enter Answer 4? 5

Enter Answer 5? 4

Sample Output

Mae, your total score is 19 and your average score is 3.8.

I hope you guys can understand all this. I'm not that good in programing, but if anyone can give me something that I can put into turbo C++ to make these work, I will owe you lunch if I could give it to ya. Thanks

Kev