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

Write a function-oriented program that scans a number n and then
output the sum of the powers from 1 to n. Thus, if the input is 3, the output should be 14
because: 11
+ 22
+ 33
= 1 + 4 + 9 = 14

.Write a simple encryption program using string functions which apply the substitution method. Here is the given Substitution Table. Substitution Table: A * E $ I / O + U -


Write a program using one-dimensional array that searches a number if it is found on the list of the given 5 input numbers and locate its exact location in the list.


Sample input/output dialogue:


Enter a list of numbers: 5 4 8 2 6 Enter a number to be searched: 2 2found in location 4


Write a program using two-dimensional arrays that computes the sum of data in rows and sum of data in columns of the 3x3 (three by three) array variable n[3[3]. Sample input/output dialogue: 5 9 8 = 22 3 8 2 = 13 4 3 9 = 16 --------------------- 12 20 19


Create a program to compute the volume of a sphere. Use the formula: V= (4/3)*πr 3 where π is equal to 3.1416 approximately. The variable r is the radius. Display the volume of a sphere.


ABC private Ltd wants to maintain Employee’s Information. You need to define an Entity class to hold Employee Information and generate a DLL. You also need to test this class usage by writing a Console application as a client.


Task 1: Define a class called “Employee” with the following fields: EmployeeId, Employee Name, Address, City, Department, Salary Define the functions to set the values of each property and to get the value of the Salary in the class: Compile the class to generate a DLL.


Task 2: Create a Console application and use this class. Create an object of this class. Accept the values from the user and assign the members.


Task 3: Modify the console application to define an array of objects to hold 10 records of Employee. Accept the details of 10 employees from the user using a loop. Display the Employee Name and Salary of all the employees.


Task 4: Modify the class to add properties using get, set blocks. Modify the console application to use the properties.


Write a program to create Product class name and products are tv Boolean is Smart and mobile Boolean is 5G with

productID > 0,

name > 3,

MFGDate < Today,

ExpDate add 2 years,

price > 0,

Quantity > 0,

Tax > 1 and < 30 ,

Discount > 1 and < 50,

struct price GST -> Basic

Enume GST5 or GST8

override display()


in outpu:-

display

productID,

name,

mfgDate,

ExpDate,

price,

ActualPrice = price + Tax - Discount,

TotalCost = ActualPrice * Quantity

Price.Get GSTPrice * Discount * Quantity


Write a program that will accept the currency value and the name of the country and will display the equivalent in U.S. dollar, based on the given list:


COUNTRY CURRENCY U.S. DOLLAR EQUIVALENT British Pound 0.6 U.S. dollar Canadian Dollar 1.3 U.S. dollar Japanese Yen 140 U.S. dollar German Mark 1.7 U.S. dollar Philippines Peso 53 U.S. dollar


Write a program that takes data, a word at a time and reverses the words of the line. Sample input/output dialogue: Input string value: birds and bees


Reversed: bees and birds


Write a program that takes nouns and forms their plurals on the basis of these rules:a.If a noun ends in “y”, remove the”y” and add “ies”


b. If a noun ends in “s”, “ch” or “sh”, add “es” c. In all other cases, just add “s” 


LATEST TUTORIALS
APPROVED BY CLIENTS