Questions: 1 362

Answers by our Experts: 1 362

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

write a C# console application program that prompts the user for a name, Social security number, hourly pay rate, and number of hours worked. Display input data as well as the following
I have homework assignment in C#
Create a console application that implements a simple cellular automaton called the Game of Life
Requirements:
 Implement the grid as a 2-dimensional int array with 25 rows and 40 columns.
 At the beginning all cells are dead except for a continuous horizontal block of 13 living cells in the 14th row ( row index 13, column index 14 – 26 inclusive) and for 3 short vertical blocks (column index 12, 20, and 28, row index 8 - 10 inclusive) Tip: It might be easier to read and write if you only declare the grid as a field but initialize it with a private method from the constructor. This method would create a new 2-dimensional array of the appropriate size with the default initialization 0 (dead), set the cells specified above to 1 (living), and use it to initialize the field (i.e. assign it to the grid)
Display the initial cells until the user presses enter Display a message below the grid that informs the user that he needs to press enter to start the game
 Use different Use different colors for living cells and dead cells
You can choose whether you want to use colors for foreground, background, or both. Just make sure that living cells are easily distinguishable from dead cells
 Update the cells in their place Position the cursor to draw at the right locationAllow the user to stop the game by pressing a key. Change the original message to informs the user about this option
 Set the height and width of the Console window so that your grid is approximately centered Tip: the class Console has a static method called SetWindowSize
 A main part of this assignment is figuring out how to update the individual cells. Break up this task into sub-tasks. Use private methods with clearly defined responsibilities and descriptive names to perform these sub-tasks.
My question is how to write a C # console application that prompts the user fora name , social security number, hourly pay rate, and number of hours worked. Display all the input data as well as the the following:

--Gross Pay, defined as hourly pay rate times hours worked
--Pension fund, defined as 12% of the gross pay
--State withholding tax, defined as 15% of the gross pay
net pay, defined as gross pay minus taxes?
How do you write a c# application program that ask three numbers and prints the average value?
NB. the program must have only two console.writeline statements.
hi all i have question ..
what is the differance between

classA a=new ClassA(); , ClassA b=new ClassB(); and ClassB c=new ClassC();
as show in bellow code.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
ClassA a = new ClassA();
a.MethodeA();
a.MethodeAB();
Console.WriteLine("***************************************************************");
ClassA b = new ClassB();
b.MethodeA();
b.MethodeAB();
b.MethodeABCBase();

ClassB objb= new ClassB();
a = (ClassA)objb;
a.MethodeAB();
Console.WriteLine("***************************************************************");
ClassA c=new ClassC();
c.MethodeA();
Console.WriteLine("**************************************************************
what is the code for the following output in programming in c:

"my"\n name \t"
what is the code for the following output:

"hello"\nworld"
Write an application that will accept two decimal values in textboxes and calculate the sum and the quotient.When button Calculate1 is clicked • The two numbers are stored in variables • Call one method Calculate to perform calculations • Display results on labels Methods.Method Calculator uses call-by-value and call-by-reference(Ref) parameters to return thevalues.
Create a program that solves for the sum of all positive integers starting from 1 until the number given by the user. Use a recursive fuction to address this problem. Assume that the user will always enter a positive number.

Example:

Enter number: 100
Sum of integers from 1 to 100 is 5050.
Write an application that will accept two decimal values in textboxes and calculate the sum, the difference, the product, and the quotient .Must have two buttons.
When button Calculate1 is clicked
• The two numbers are stored in variables
• Call four methods Add,Subtract, Multiply and Divide to perform the calculations
• Display the results on labels
When button Calculate2 is clicked
• The two numbers are stored in variables
• Call one method Calculate to perform calculations
• Display results on labels

Methods Add, Subtract, Multiply and Divide use call-by-value parameters and return a double value
Method Calculator uses call-by-value and call-by-reference(Ref) parameters to return thevalues.
LATEST TUTORIALS
APPROVED BY CLIENTS