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

Add a static member to store Service Tax, which is set to 12.3%. Also allow a property through which we can set and get service tax.

Modify TotalFee and DueAmount properties to consider service tax.


 Create a form in C# Windows Form, having personal Information of the user. Name (in text box) Roll no (in text box) Session (combo box F-2017, F-2018, F-2019, F-2020, F-2021) Email (textbox) nationality (combo Box button Pakistani/ non Pakistani) Religion (Combo Box/Radio Button Muslim/ non Muslim). After entering each information everything should be displayed in listbox.


Create a windows form app for percentage calculation:

Form 1:

1.enter course name

2.mention each course marks

3.enter obtained marks for each course

4.add all course marks

5.apply formula for percentage

Form 2:

1.show all course names

2.show each course individual marks

3.show percentage & grade

4.show a greeting message according to grade [hint: if grade A message would be “1st POSITION”]


Create a console app for Food ordering mechanism:

Features must be implemented:

1.Customer sign up/sign in

2.Show food menu to customer

3.Customer can select more than 1 food item at a time

4.Store the order in a collection like array

5.Calculate bill and display at the end.


Modify the Point class as follows:

  • add a static LengthPoints() method to calculate the distance between two points. The method should receive instances of type Point as parameters.

In the main() function, demonstrate the call to the static LengthPoints() method.Modify the Point class as follows:

  • add a static LengthPoints() method to calculate the distance between two points. The method should receive instances of type Point as parameters.

In the main() function, demonstrate the call to the static LengthPoints() method.


(The Sieve of Eratosthenes) A prime integer is any integer that is evenly divisible only by itself and

1. The Sieve of Eratosthenes is a method of finding prime numbers. For example, 2, 3, 5 and 7 are

prime, but 4, 6, 8 and 9 are not.

 Write a function that determines whether a number is prime.

 Use this function in a program that determines and prints all the prime numbers entered

by the user.

 Use an array to store all the values entered by the user.


Write a program that reads in 10 midday temperatures for Port Elizabeth, for 10 consecutive days. Only temperatures higher than 0 and less than 45 are valid (working with integer values for temperatures). It must calculate and display the following:  The warmest temperature  The average temperature.  The number of days that the temperature was higher than 30.


Display the temperatures in the array e.g All the temperatures in the array are: 22 26 17 19 20 39 44 37 30 16


B I X2 x2 |√x|</>H


Write a program that reads in 10 midday temperatures for Port Elizabeth, for 10 consecutive days. Only temperatures higher than 0 and less than 45 are valid (working with integer values for temperatures). It must calculate and display the following:

 The warmest temperature

 The average temperature.

 The number of days that the temperature was higher than 30.

For this program implement the following methods before implementing the main method (which must make use of these methods):


static int getValidTemperature (int dayNum)

static int getWarmest(int temp1, int temp2)

static void readIntegers (int[] list)

static int getWarmestTemperature(int[] list)

static double getAvgTemperature(int[] list)

static int countWarmDays(int[] list)

static void displayList(int[] list)


Question :

Develop a C program to get the temperature and print the following status according to the given temperature by using else if ladder statement.





1. T<=0 "Its very very cold".





2. 0 > T < 10 "Its cold".





3. 10 > T < =20 "Its cool out".


4. 20 > T < =30 "Its warm".





5. T>30 "Its hot".


LATEST TUTORIALS
APPROVED BY CLIENTS