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

The Saffir-Sampson Hurrican Scale classifies hurricanes into 5 categories numbered 1 to 5. Write a program that asks the user to input the wind speed. Pass the wind speed to a method that determines and returns the hurricane category. Your Main() method must display the relevant category. The different categories is classified as follows: Category Sustained wind speed in km/h 5 252 or higher 4 209 - 251 3 178 - 208 2 154 - 177 1 119 - 153 Any storm with wind speed of less than 119 km/h is not a hurricane.


Create a program for a library whose Main() method asks the user to input the number of books checked out and the number of days they are overdue. Pass those values to a method that calculates and displays the library fine, which is 20 cents per book per day for the first seven days a book is overdue, then 50 cents per book per day for each additional day.


Write a program that reads in 5 marks. Your program must use the getMark method to ensure that valid marks are processed. You need to calculate the sum and the average of the marks. Your program must also use the isPass method to determine the number of pass marks entered. When the 5 marks have been processed you need to display the sum, average and number of passes (from these marks).


Write a user defined method named isPass that can be used to determine whether a mark is a pass mark (greater or equal to 50). The method must take as input a mark, and return a boolean, indicating whether the mark was a pass mark.


Write a user defined method named getMark that can be used to get a valid mark from the user. Your method must continuously ask the user for a mark, until a valid mark is entered (valid marks are between 0 and 100). If a user enters an invalid mark, display an error message before asking for a valid mark to be entered. The method must return the valid value to the calling program.


Create a program whose Main() method prompts a user for length and width of a room in meter. Create a method that accepts the values and then computes the estimated cost of painting the room, assuming the room is rectangular and has four full walls and the walls are 2.6 meter high. The rate for the painting job is R20 per square meter. Return the estimated cost to the Main() method, and display it.


Exceptions in C# - you like teaching mathematics and you are creating a small game for kids. game has multiple steps.: 1. Display following message to user:"Enter any number from 1-5" 2.User enters an option from 1-5,show the exact message to user for the number selected 1) enter even number


Read the four input string variables s1, s2, s3, s4 and store it in single string variable "COLLEGE" and display the string.


I started a project on SQL but I think C # is better suited for solving this.

I search the "distance" in terms of common student between two given student.


Database sample :

https://stackoverflow.com/questions/67650737/calculate-all-the-paths-between-two-names?noredirect=1#comment119576436_67650737


The goal is to calculate the distance between Momo Thary (2018) and Paul Biloux (2020). The answer is 2 students : Momo Thary -> Jack Spiral. Jack Spiral -> Lucien Lake. And Lucien Lake -> Paul Biloux.

We can "link" Momo and Paul with 2 students. Distance = 2.


The issue is when I try a program to know all the possible paths (with distance < 5 so it is not too long to calculate).


SQL code:


https://stackoverflow.com/questions/67650737/calculate-all-the-paths-between-two-names?noredirect=1#comment119576436_67650737


It works but SQL is not suited for calculating in my 500k database, way too slow.


For the experts, what could be the "translation" of my SQL code in C# ?



Write a function that takes an array of floating point values,

An integer that tells how many floating point values are in the array. The function must reverse the order of the value in the array


LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS