Questions: 11 448

Answers by our Experts: 10 707

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 Car class that holds the car name , year it was made and speed .The speed should be between 0 (minimum speed) and 225 (maximum speed) .Include the following functions;
*A function that will display information about the car such as name of the car , year it was made and the current speed.
*A function that will accept an argument,and use that value to increase the speed.if the increase of speed will result to a speed more than the maximum speed ,the spewed should be kept at the maximum speed.
*A function that will accept an argument , and use that value to decrease the speed .If the decrease of speed will result to a negative speed value , the speed should be kept at the minimum speed.
Write a main() function in which you declare one car object , and test (demonstrate) the class works correctly (I.e call the functions.)
Write a function that compares three integer parameters and returns the largest .Define your function after the main() function .Demonstrate that your function works correctly by creating at least one Animal object , and calling all the methods defined for the animal class
Write a program in which the main() method calls a method named evenOdd().The evenOdd() method takes one integers argument, and then display the sentence "The number is ODD " if The argument is an odd integer or "The number is EVEN" if the argument is even.

Write a C++ program that read numbers from an integer array and graph the information in the form of bar chat. Sample output is given below. Element Value Histogram 0 19 ******************* 1 3 *** 2 15 *************** 3 7 ******* 4 11 *********** 5 9 ********* 6 13 ************* 7 5 ***** 8 17 ***************** 9 1 *


An electricity board charges the following rates to domestic users to discourage large consumption of energy :For the first 100 units : 50 P per unit and Beyond 300 units : 60 P per unit, 100-300 units:55 pIf the total cost is more than Rs.250.00 then an additional surcharge of 15% is added on thedifference. Define a class Electricity in which the function Bill computes the cost


Shot put reward

In the game of shot put, a heavy ball is thrown by players to the farthe academy, the coach offers some chocolates to the players performing them. The players stand in a line and take turns for throwing the ball or who makes an attempt knows his/her score after the attempt. A player can ask the score of the player just adjacent to him/her and th player. The coach decides to give chocolates in such a way that no pla fewer chocolates than he/she should get. Find the minimum chocolates

Input Specification:

input1: Number of players

input2: Integer array containing the scores of players

Output Specification:

Return the minimum number of chocolates given to each player by the

coach.

Example 1:

input1: 5

input2: (35,14,42,44,39}

Output: 6

Type here to search
Shot put reward
Output 6,14

Write a program that accepts 10 values from the user at the keyboard and stores them in an array .Pass the array and it's size to a function that determines and displays the smallest and largest of the 10 values.


Write a method that receives elapsed time in seconds as a parameter.The method should then display the elapsed time in hours , minutes and seconds.For example , If the elapsed time is 9630 seconds , then the method should display 2:40:30 . Write a main() method that will prompt a user for elapsed time of an event in seconds, And use received value to demonstrate that the method works correctly.


Implement the following function. You may use the stack template class and the
stack operations of push, pop, peek, is_empty, and size. You may also use cin.peek( )
and use "cin>>i" to read an integer.
int evaluate_postfix_from_cin( )
// Precondition (Which is not checked): The next input line of cin is a
// properly formed postfix expression consisting of integers,
// the binary operations + and -, and spaces.
// Postcondition: The function has read the next input line (including
// the newline) and returned the value of the postfix expression.
{
int i;
stack<int> s;
LATEST TUTORIALS
APPROVED BY CLIENTS