Qadratic Formula and Percentages

I've got two questions I have no idea how to begin =S

1) create a program for quadratic formula, to display x (subscript 1) and x (subscript 2) . The output should look like

Enter perameter string:

a=2, b=4, c=20

2) write program that computes dividends per share as percentage of profit after taxes calculated as profitBeforeTaxes=revenue-cost. the net profit is computed as: profitBeforeTaxes*(1-taxRate). The imput and output operations should display:

Enter Revenue:

enter Cost: (this part the user enters the numbers)

enter tax rate:

Enter number of shares

enter percentage of div

and then the program is suppose to give you all the answers

:confused:

any help would be much appreciated!