// Directions: Code Practice 9-1
// 1) Create a nested if structure based on the comments below.
// 3) Save your fiddle and submit the link in Blackboard.
using System;
public class Program
{
public static void Main()
string strHoursWorked = "82.5";
string strHourlyRate = "45.25";
double dblHoursWorked;
double dblHourlyRate;
double dblPay;
// Construct a nested if structure that does the following:
// * TryParse the strHoursWorked variable in the dblHoursWorked variable.
// * if the strHoursWorked variable can be parsed
// * continue with a second if statement that TryParses the dblHourlyRate.
// * if the strHourly rate can be parsed
// * Calculate and store the dblPay.
// * Display a message to the user with the total pay. Example: "The pay is $3,773.13". Use the variables in your code. Do not hard code the answer.
// * else
// * Display "Hours Worked cannot be parsed."
// * Display "Hourly Rate cannot be parsed."
// *
}