Questions: 1 835

Answers by our Experts: 1 539

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

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.


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.


LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS