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

A problem that computes the cost of postage on a first-class letter according to the following

rate: Php12.30 for the first ounce, Php 8.25 for each additional ounce, plus a Php 25.50 service

charge if the customer desires special delivery.


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.


HOW CAN I FORCE THE USER TO ENTER 26 DISTINCTIVE CAPITAL LETTERS IN C# pleaseee post solution


The ADSM Sales Corporation would like to have a listing of their sales over the past few months. Write a program that accepts any number of monthly sales amounts. Display the total of the values. Display a report showing each original value entered and the percentage that value contributes to the total. You may prompt the user for the number of values to be inputted. Use array to complete the task.


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 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.


Create an application that calculates and prints the first n Tribonacci numbers. The Tribonacci sequence is a generalisation of the Fibonacci sequence which starts with three predetermined terms (0, 0, 1) and in which every term thereafter is the sum of the three preceding terms.. The Main method is provided. Copy it and leave it as is. Your task is to define the Tribonacci method. The screen print below shows the expected output for n = 10. Your method must use a counter-controlled while loop to calculate the terms. You are not allowed to make use of collections (arrays or lists). static void Main(string[] args) { int iFirst = 0, iSecond = 0, iThird = 1; Console.Write("Enter n (n >= 3) to display the first n Tribonacci numbers: "); int n = int.Parse(Console.ReadLine()); Console.WriteLine(); Console.WriteLine(Tribonacci(iFirst, iSecond, iThird, n)); Console.Write("\nPress any key to exit..."); Console.ReadKey(); }


Star Children’s Academy has opened a movie theater in its own capacity to host movie afternoon once a week for every class (including all sections e.g. Class 1 has three sections Class1-A, Class1-B, Class1-C divided because of large strength in one class, so here one class means 3 sections’ students will be watching a movie together one week and then next week another class and its sections) covering the topics such as patriotism, kindness, love, self-awareness, animal care and protection, etc.   As a Visual Programmer, you are required to design and develop a Windows Form Application that facilitates the class teachers to reserve tickets on behalf of students for the movie. No student can reserve directly for himself.


LATEST TUTORIALS
APPROVED BY CLIENTS