# Desperate for a written code.

So I have spent three days working on a code for the sum of random numbers, that I completely forgot about a second code I needed to do in C#. Right now we are working on loops, PLEASE help me!! I am getting ready to take a test so I am out of time for this code.

Write an application ExpectedEarnings that will enable a vendor to see what earnings he can expect to make based on what percentage he marks up an item. Allow the user to input the wholesale item price. In a tabular form, show the retail price of the item marked up at 5%, 6%, 7%, 8%, 9% and 10% and display the expected earnings. One approach to solving the assignment: [1] Prompt the user to enter the wholesale price. Check if the data entered is valid. If invalid data is entered prompt the user to re-enter the price again. [Hint: Checking if a valid data is entered can be done using TryParse(String,Double) in a while loop. TryParse(String,Double) converts the string representation of a number to its double-precision floating point number equivalent. A return value indicates whether the conversion succeded or failed.] [2] Write a method that takes the wholesale price as a parameter and calculates and displays the expected earnings. [Hint: For loop where the percentage is initialized to 5% i.e 0.05 and increments by 0.01 until 10% (0.10). Expected earnings = itemPrice + (percentage * itemPrice)] Display the output in a tabular format. Sample output: Please enter the wholesale price of the item: 120 Percentage Increase Item Price 0.05 0.06 0.07 0.08 0.09 0.10 \$120 \$126.00 \$127.20 \$128.40 \$129.60 \$130.0 \$132.00

by Winchester81 via /r/csharp