113 Answered Questions for the topic C#

C#

09/13/22

#### C# Programming Exercise Question

Write a GUI program named ProjectedRaisesGUI that allows a user to enter an employee’s salary. Then display, with explanatory text, next year’s salary, which reflects a 4 percent increase.

05/17/22

#### Updating averages

Hello,I'm analyzing some data and calculating averages. Basically what im doing is calculating the average ranges of gps coordinates from a central location. My issue is that I want to update said... more
C#

06/08/21

#### Solve in C# the Quadratic Formula

solutions by The Quadratic Formula: // For ax2 + bx + c = 0, the values of x which are the // solutions of the equation are given by: // x = (-b -/+ sqrt((b^2-4ac)))/2a
C#

06/08/21

#### Generate Sum of to Number in C#

Generate the sum of to numbers.
C#

06/06/21

#### Create a guessing game in C#

//The Computer decides on 12 + 34 = 46. The computer/game then randomly//displays Operator is + and Value 2 is 34. The player should now begin//guessing numbers. If the player guesses 12 and 20 The... more
C#

06/06/21

#### Create a Long Jump Average application in c#

Create a Long Jump Average application to prompt the user for the lengths of four jumps and then display the average jump length. Ask the user for the specific units.

06/02/21

#### Why is my visual studio c# code not working on .net fiddle c# compiler?

Here is my code. It should ask the user and let it input.The compiler is called dotnetfiddle.netI can't submit from any other compiler. Please fix the problem in code if needed.using System;class... more

05/21/21

#### CREATE A C# PROGRAM.

Research a rule called "Zeller's Congruence". This rule provides a complex formula that can be used to determine what day of the week any particular date occurred. For example, if the user entered... more

05/20/21

I want to add this: String [] strs = { "Fortune for Sunday","Fortune for Monday","Fortune for Tuesday","Fortune for Wednesday","Fortune for Thursday","Fortune for Friday","Fortune for... more

05/20/21

#### Your program should use Zeller's rule to output the day of the week any date occurred and for each weekday, output a proverb, fortune, piece of wisdom, etc....

I have everything but just need the fortunes. For example, "Tuesday's child is full of grace.".Please help me add them to my code.Here is the code:using System;class dttimeex57{ static void... more

05/16/21

#### Create a program should use Zeller's rule to output the day of the week any date occurred and for each weekday, output a proverb, fortune, piece of wisdom, etc.

The program should use Zeller's rule to output the day of the week any date occurred and for each weekday, output a proverb, fortune, piece of wisdom, etc...For example, September 4, 1984, was a... more

05/12/21

#### Create a program should use Zeller's rule to output the day of the week any date occurred and for each weekday, output a proverb, fortune, piece of wisdom, etc.

I am creating a Zeller's program but not sure how to. Please help me out.Research a rule called "Zeller's Congruence". This rule provides a complex formula that can be used to determine what day of... more

05/10/21

#### Objective: Leap years as we know them began in 1582. You are going to create a program that allows the user to enter a year and be told whether it is a leap year or a common year.

Specifications:  When your program opens, give a brief description of what a leap year is and why we have them.  Ask the user to enter a year. You must use TryParse to determine if the user has... more

05/03/21

#### help me output either a list of failing students (Less than 65) or a list of students on honor roll(above 90). ONLY USING A LOOP AND IF STATEMEN

using System;public class Program{ public static double[] arrayAvg(double[, ] a) { double[] tempArray = new double[a.GetLength(0)]; double sum = 0; for (int i = 0; i < a.GetLength(0);... more

04/22/21

nt[, ] arr = new int[4, 5]; int a = 0; foreach (int i in arr) { Console.Write(i + " "); } Console.WriteLine(" "); for (int i = 0; i < arr.GetLength(0); i++) { for (int j = 0; j... more

04/22/21

#### Declare and initialize a 3 by 2 array that contains integer values. You decide what the values are.

Declare and initialize a 3 by 2 array that contains integer values. You decide what the values are.

04/15/21

#### The array declared as int rooms[4] will not be able to store a value in?

The array declared as int rooms[4] will not be able to store a value in? rooms[0] rooms[1] rooms[2] rooms[3] rooms[4]

04/12/21

#### What am I doing wrong in my code?

using System; public class Program{ public static void Main() { Console.WriteLine("How many people are in your class? ") classSize = int.Parse(Console.ReadLine()); string students = new... more

04/09/21

#### Convert the following methods from Java to C and then write a function to test each output with at least 4 test cases to see if the method work correctly.

//Convert an 2D array to a string     String int2DArrayToString(int[][] input)     {         return Arrays.stream(input).map(x -> Arrays.stream(x).                 mapToObj(i ->... more

04/05/21

#### C# Random Numbers.

create an array of 10 random numbers from 1 to 100. We will use a for loop to populate the array. output the numbers in their original order on one line. We will sort the list and output the... more

03/24/21

#### What does each line of code does? For example: static private float Median(float[] array) //method heading for the Median method

static private float Median(float[] array)  { float[] tempArray = array; int count = tempArray.Length; Array.Sort(tempArray); float medianValue = 0; if (count % 2 == 0) { float... more

03/24/21

#### Please help me plug in the median method into my code. I have the method in the public class program. it is static private.but don't know how to print/output. it in the main.

using System;using System.Linq;public class Program{ static private float Median(float[] array) { float[] tempArray = array; int count = tempArray.Length; Array.Sort(tempArray); float... more

03/18/21

#### C# language - a program that will allow the user to enter the mass in grams andthe radius and height in centimeters of their cylinder, sphere, or cone and calculate the density of their object.

C# ONLY. a program that will allow the user to enter the mass in grams andthe radius and height in centimeters of their cylinder, sphere, or cone and calculate the density of their object.
C# C++

01/27/21

#### Write a program to convert kilogram to gram and pound

Declare an array as a global variable, called kilo with 4 elements. - In main(): Call function get_input(). Call function convert_gram(). Call function convert_pound(). - In get_input(): Using... more

01/12/21

#### Type in textbox C#

Hi!I need help with a programming question. I am not sure how to put it into words but Ill try my best:I want to have a textbox with a text written in it in advance. Let's imagine this is how it... more

## Still looking for help? Get the right answer, fast.

Get a free answer to a quick problem.
Most questions answered within 4 hours.

#### OR

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.