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.

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


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.


LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS