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

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.


Create a new application that performs a shift and replacement of the letters in a string and then prints the result. The Main method of the application is provided below. Your task is to define the Shift and Replace methods that are called from Main. static void Main(string[] args) { string sAlphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; Console.Write("Enter any word: "); string sInput = Console.ReadLine(); Console.Write("Enter n: "); int n = int.Parse(Console.ReadLine()); string sShift = Shift(sInput, n); Console.WriteLine("\n" + Replace(sShift, n, sAlphabet)); Console.Write("\nPress any key to exit."); Console.ReadKey(); } Shift accepts two parameters and returns a string in which all the characters of a string (first parameter) have been shifted n (second parameter) places to the right, with the last n letters looping back around to the beginning. For example, if the user enters ZUCCHINI for sInput and 3 for n, Shift must return INIZUCCH.


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


LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS