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)


Who discovered python?


write a program that contains two functions i.e., encrypt_string() and decrypt_string()a.encrypt_string(s): Thisfunction uses the following dictionary:encrypt={'a':'1','b':'@','c':'*','d':')','e':'$','f':'#'}This function should accept a string as its parameter and return anencrypted string. To encrypt a string, use the dictionary given above. Read each character of the string(match it with the keyin the dictionary)and replace each character with the given encrypted value(valuein the dictionary)and return the encrypted string.b.decrypt_string(s)This function uses the following dictionary:decrypt={'1':'a','@':'b','*':'c',')':'d','$':'e','#':'f'}This function should accept an encrypted string as its parameter and return the decrypted/original string. To decrypt a string, use the dictionary given above. Read each character of the string(match it with the key in the dictionary) andreplace each character with the given decrypted value(value in the dictionary)and return the decrypted string.


In traditional way, there are three classes: TRUCK (number, name , NoOfWheel, Price, Capacity, EnginePower, TypeOfConsump), BUS (number, name , NoOfWheel, Price, NoOfSeat, EnginePower, TypeOfConsump, Color, Speed), CAR (number, name , NoOfWheel, Price, NoOfSeat, EnginePower, TypeOfConsump, Color, Speed).

Divide the above three classes into two base classes and three derived classes. Each class will contain two member functions, getdata() to get that class data from user and putdata() to display that class data on the screen



Write a program to read numbers from a file.


C++ programming

Create a structure called Exam that includes exam ID (string), name of the subject (string), 


registration fee (double) and the number of students registered during a week (7 days) (int 


array). • Write a function called getExamDetails() which is the data type of Exam that reads the 


details of the Exam and store them in the variable of the Exam structure. 


Hint: Use the given function prototype as 


Exam getExamDetails (Exam e); 


• Write a function called calExamFee() which takes three parameters, registration fee for 


the exam, the number of students registered during a week (7 days) array and the size of the array. Find the total exam registration fee during the week and print the total exam 


registration to the screen. • Call the getExamDetails() and calExamFee() in the main function to print the following 


output as required.


In traditional way, there are three classes: TRUCK (number, name , NoOfWheel, Price, Capacity, EnginePower, TypeOfConsump), BUS (number, name , NoOfWheel, Price, NoOfSeat, EnginePower, TypeOfConsump, Color, Speed), CAR (number, name , NoOfWheel, Price, NoOfSeat, EnginePower, TypeOfConsump, Color, Speed). 

Divide the above three classes into two base classes and three derived classes. Each class will contain two member functions, getdata() to get that class data from user and putdata() to display that class data on the screen. How the above member data of three classes will be distributed into five classes as shown in the following diagram.


Imagine a publishing company that markets both book and audiocassette versions of its
works. Create a class publication that stores the title (a string) and price (type float)
of a publication. From this class derive two classes: book, which adds a page count (type
int), and tape, which adds a playing time in minutes (type float). Each of these three
classes should have a getdata() function to get its data from the user at the keyboard,
and a putdata() function to display its data.
Write a main() program to test the book and tape classes by creating instances of them,
asking the user to fill in data with getdata(), and then displaying the data with putdata().

Compute and display the output of the Area (A) of a rectangle, the length (L) is 10 and the width (W) is 15. 


1) Write a program that declares a structure to store the record of a book. It defines a structure variable, input the values and displays them using pointer.


2) Write a program that input two integers and passes them to a function using pointers. The function exchange the values and the program finally display the values.


LATEST TUTORIALS
APPROVED BY CLIENTS