help wanted

I was encoding a C program as my assignment and got stuck. Following is the part of my assignment where i got stuck

Please enter the employee's pay period information :
Income for the current pay period : -2400
**Value must be greater than 0.0
**Try again. : 2400..
**Trailing character encountered
**Try again. : 2400.00

declare an input variable and a flag variable
set a flag to false
ask the question
do
obtain the user input
switch input variable
wrong input:
display warning
set flag false
break
right input:
do this
set flag true
break
while flag is false repeat

Thank you very much friend. Your solution helped me alot. Thank you once again

I see the possibility of an switch inside a do/while loop

declare an input variable and a flag variable
set a flag to false
ask the question
do
obtain the user input
switch input variable
wrong input:
display warning
set flag false
break
right input:
do this
set flag true
break
while flag is false repeat

I have a 2d matrix with dimension (3, n) called A, I want to calculate the normalization and cross product of two arrays (b,z) (see the code please) for each column (for the first column, then the second one and so on).
the function that I created to find the ...

Write a C program that should create a 10 element array of random integers (0 to 9). The program should total all of the numbers in the odd positions of the array and compare them with the total of the numbers in the even positions of the array and indicate ...