No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Ok, the code button is not working for me today, so I'kk be brief. This is homework, but it's been turned in and graded (A). My question is how do I make it so pressing enter clicks my button? for example: private void computeButton_Click(object sender, EventArgs e) { double hoursWorked … |
|
I am never taking a C# class again. My question this time is I am trying to create an object named "newEmployee" in my main class that calls the employee class constructor method. My TL;DR constructor code is: // Constructor method public Employee(double hrsWorked, double rate) // These are defined … |
|
I have NO idea why C# is so difficult for me when C++ is a breeze. I want to preface this post with this: Yes, this is for a class still. But I'm only coming to people more knowledgable than I because... I just don't get it. I've read my … |
|
I ran into another problem using if looping. What I want to do, in plain english, is if a variable is one thing (it will be Quit in this case), exit the program. Otherwise, I want it to ask for any other inputs and execute the program. My code: using … |
|
New to C#. This is the code I am working with: using SC = System.Console; public class Lab01 { // Main Method public static void Main() { string hoursWorkedAsString; string payRateAsString; double hoursWorked = 24; double payRate = 11.5; double grossPay = hoursWorked * payRate; double stateTax = 0.04; double … |