C# Answers

Questions answered by 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

St. Joseph school planned to create a system to store the records of students studying in their school. They need to store various kinds of data about their students. Write a C# program based on the class diagram given below and initialize the variables with proper values and print it


SCHOOL DEMO:

rollNumber : int

studentName : string

age : bytr

gender : char

dateOfBirth : DateTime

address : string

precentage : float


Write a program to define a two dimensional array of numbers to store 5 rows and 6 columns. Write a code to accept the data, assign it in array, and print the data entered by the user.


Define a single dimension array of strings to hold the name of City. Accept some values from the user and store them in the array. Use foreach loop to print all the data of the array.


Create a class named ProductDemo which accepts the details of the product, converts the details into reference types using boxing and displays them by converting them into their relevant types using unboxing and calculate the amountPayable. Refer the class diagram given below.


Input:-

Enter the id of product : 101

Enter the name of the product : Segate HDD

Enter Price : 9000

Enter quantity : 2


Output:-

Product Details :

Product id : 101

Product name : Segate HDD

Price : 9000

Quantity : 2

Amt Payable : 18000.00


Using Structures write an interactive program in C language to create an application program for a small office to maintain the employee’s database. This application should be having menu options like

• Creating a New Record

• Reading/Listing of Records

• Modify the record

• Delete the record

Each employee record should have Employee Name, Employee ID, Department Name, Salary, Position, Date of Joining, etc.). The application should be designed user-friendly.


You need to write a program to manage the Inventory of the used cars.


Task 1: Create a simple text-based “Console Application” in C# to maintain a catalog of used cars. The catalog keeps track of each car's make, model, year, and sale price. The program begins with an empty catalog. The program can perform the following operations:

• Adding a new car

• Modify the details of a particular car

• Search for a particular car in the Catalog

• List all the cars in the Catalog

• Delete a car from the Catalog

• Quit


If an unknown command is entered, the user should be informed and asked to enter another command. Hint:

1) Create a class called as Car. Create appropriate constructors (Default and Parameterized), Properties for the Car class.

2) Use Array to store the Objects of a car.


Once the code is ready, get a peer review done. Maintain the list of issues / bugs identified during the review. You are supposed to fix those issues.


Working with struct data type and arrays:


Use C# 6.0 and 7.0 features, wherever applicable


Write a program to define a two dimensional array of numbers to store 5 rows and 6 columns. Write a code to accept the data, assign it in array, and print the data entered by the user.


Define a single dimension array of strings to hold the name of City. Accept some values from the user and store them in the array. Use foreach loop to print all the data of the array.


Create a class named ProductDemo which accepts the details of the product, converts the details into reference types using boxing and displays them by converting them into their relevant types using unboxing and calculate the amountPayable. Refer the class diagram given below.


Output:

Enter the id of product : 101

Enter the name of the product : Segate HDD

Enter Price : 9000

Enter quantity : 2


Product Details :

Product id : 101

Product name : Segate HDD

Price : 9000

Quantity : 2

Amt Payable : 18000.00


St. Joseph school planned to create a system to store the records of students studying in their school. They need to store various kinds of data about their students. Write a C# program based on the class diagram given below and initialize the variables with proper values and print it


SCHOOL DEMO:

rollNumber : int

studentName : string

age : bytr

gender : char

dateOfBirth : DateTime

address : string

precentage : float

_______________

+Main(string[] args)



Create a Console application to test usage of Switch case construct. Accept some integer from user as command line argument and using a switch case construct, check if the value entered is 1, 2, 3, 4 or 5. Print some message in each case. If the value is other than the above values, then print error message.


Amit wants to develop an Arithmetic Calculator to perform some arithmetic functions. Develop a program to achieve the same.


Task 1: Create a library project to define a class ArithmeticOperations to perform the operations like Add, Subtract, Multiply, Divide and Modulus on two numbers of integer type, and double type. Use the class in a console application. Accept the details from the user and perform the operation based on user’s choice


Write a function-oriented program that calculates the sum of the sequence number from 1 to n. Thus, if the input is 5, the output should be 15 because: 1 + 2 + 3 + 4 + 5 = 15


Write a function-oriented program to convert the input dollar(s) into its equivalent peso. Assume that one dollar is equivalent to 53.80 pesos.


LATEST TUTORIALS
APPROVED BY CLIENTS