23
1
// C# syntax
2
// Login and Fork to a new fiddle.
3
// Add code lines under each direction.
4
// Calculate the overtime
5
// Hit Save.
6
// Copy your fiddle link and submit it into the Blackboard assignment.
7
8
using System;
9
10
public class Program
11
{
12
public static void Main()
13
{
14
Console.WriteLine("ASP.Net 1-2");
15
16
double dblHoursWorked = 43.5;
17
18
// Create an if statement that checks the variable to see if the hours is over 40.
19
// If so, Display "Regular Hours Worked : 40, Overtime Hours Worked: 3.5"
20
// If not, Display "Regular Hours Worked : <variable value>"
21
22
}
23
}
Cached Result