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

All the banks operating in India are controlled by RBI. RBI has set a well defined guideline (e.g. minimum interest rate, minimum balance allowed, maximum withdrawal limit etc) which all banks must follow. For example, suppose RBI has set minimum interest rate applicable to a saving bank account to be 4% annually; however, banks are free to use 4% interest rate or to set any rates above it.
We want to calculate the total marks of each student of a class in Physics,Chemistry and Mathematics and the average marks of the class. The number of students in the class are entered by the user. Create a class named Marks with data members for roll number, name and marks. Create three other classes inheriting the Marks class, namely Physics, Chemistry and Mathematics, which are used to define marks in individual subject of each student. Roll number of each student will be generated automatically.
1.) A circular racetrack is composed of 4 portions: concrete, mud, sand, and asphalt. Schumacher’s car takes 15 seconds to cross the concrete, 20 seconds to cross the mud, 35 seconds to cross the sand, and 30 seconds to cross the asphalt.
1. Write the code of a class by the name of Person that contains attributes like name, age income etc and a method called calculatedTax(). All attributes should be private and use properties for read and write values for above mentioned attribues and a public method that calculates tax on the basis of a person’s income. If the income of the person is below 100, 000 it should say no tax applies on you. For income between 100,000 and 300, 000 15% tax should be displayed of the entered income amount. For income above 300, 000 25% should be displayed for the entered income amount. Write the complete code for the Person class and how the Person object is created and its method is called? The person object should be created by entering the required information in that should take input for the person’s name, age and income using properties ?
Make a class named Fruit with a data member to calculate the number of fruits in a
basket. Create two other class named Apples and Mangoes to calculate the number
of apples and mangoes in the basket. Print the number of fruits of each type and
the total number of fruits in the basket.
A company distributes 5 different items around Nairobi through its 10 salesmen. Using arrays write a C# application program to input a salesman name and the corresponding sales made by each of the salesman for each of the item. The program should then output each of the salesman’s name, sales, total sales as well as grand total using the format shown below.
Name Item1 Item2 Item3 Item3 Item4 Item5 TotalSales
___________________________________________________
Brian 20 50 25 10 0 15 120
Joan 45 55 10 25 5 30 170
….
….
GrandTotal xx
Write a complete C# application program to calculate the area of a triangle, rectangle or circle. The program should have a decision making statement(s) to decide:
 If the figure is a triangle then ask for base and height values to input.
 If the figure is a rectangle the ask for length and breath values to input
 If the figure is a circle then ask for the radius values to input
The program should display the output on the screen and should enable the user to re-enter choice for at most three times incase a wrong selection is entered
Write C# application program to be used to evaluate the credit worthy of a client. The program reads the credit limit and the price and quantity of the item to be purchased by the client. If the value of the goods is more than the credit limit, the program displays “Sorry you cannot purchase goods worthy such a value on credit” and allows the customer to re-enter the quantity, otherwise, displays “Thank You for purchasing from us” and the value of the purchase. This should be repeated for n customers.
4).
Using nested loops, write a C# application program that produces the following output.
& & & & & &
* & * * * *
* * & * * *
* * * & * *
* * * * & *
& & & & & &
WAP using switch case to perform following operations.
i) create a linked list,
ii) display its elements,
iii) count the number of nodes,
iv) search an element
v) sort the linked list
vi) reverse the elements of the list
LATEST TUTORIALS
APPROVED BY CLIENTS