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

A car completes its journey in three parts. It travels the first X km of its journey at an average
speed of x_Speed m/s and the next Y km at an average speed of y_Speed km/h. The car completes the
last part of its journey at an average speed of z_Speed km/h in z_Minutes minutes. Here X, x_Speed, Y,
y_Speed, z_Speed, and z_Minutes are all variables whose values you will have to take as an input from the
user. Find the average speed for its entire journey, giving your answer in km/h.
à ƒ ƒ °  ‘ à ƒ ƒ °  ‘ Ãƒ ƒ ƒ °  ‘ ’à ƒ ƒ °  ‘ ’à ƒ ƒ °  ‘ ‘ =à ƒ ƒ °  ‘ ‘à ƒ ƒ °  ‘ –à ƒ ƒ °  ‘ à ƒ ƒ °  ‘ ¡Ãƒ ƒ ƒ °  ‘ ŽÃƒ ƒ ƒ °  ‘ ›Ãƒ ƒ ƒ °  ‘ Ãƒ ƒ ƒ °  ‘ ’ /à ƒ ƒ °  ‘ ¡Ãƒ ƒ ƒ °  ‘ –à ƒ ƒ °  ‘ šÃƒ ƒ ƒ °  ‘ ’
A passenger train travels at a speed of 72 km/h. A man on the passenger train observes a
goods train travelling at a speed of 54 km/h in the opposite direction. If the good train passes him in X
seconds, write a C++ function to find the length of the goods train.

A passenger train travels at a speed of 72 km/h. A man on the passenger train observes a

goods train travelling at a speed of 54 km/h in the opposite direction. If the good train passes him in X

seconds, write a C++ function to find the length of the goods train.


Create a struct point to represent a point in cartesian coordinate system

provide member functions

default constructor

input

output

distance(returns the distance between two point objects, the function takes one object as an argument)

is zero(determines if a point is the center)

midlepoint (computes the middle point of an object from origin and returns the answer in a point object)

is equal to(compare two points)

isGreater than (compares two point in terms of the distance from the center)



write a pseudocode to output sum


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 *


NuMetro has a special on movies for all members of the public but special discounts for students and pensioners. If

pensioners or students buy a movie ticket they receive 10% if they buy a movie and popcorns, they receive 20%

discount. Other customers only receive a discount when they buy a movie ticket and popcorn; there is no discount for

just a movie ticket alone.

Write a program named question5b.cpp that will consist of two functions. The program must prompt the user for type of

customer (‘p’ for pensioner, ‘s’ for student, ‘o’ for other). It must then call the relevant function according to that entry.

The first function must receive the customer type and calculates discount for pensioners and students. The second

function calculates the discount for customers that are not pensioners or students.


Write a program to calculate and display sum of the following series using for loop x+x2+x3+………xn


A prisoner receives an uplifting and encouraging message from on e of his friends He uses the Chirp App to communicate with him A they exchange messages, he receives a parcel containing seme gifts with a sienes of characters labelled on it The string consists of only y Ls and Rs Deep in thoughts, he tries to understand the mean ng on the laber. He finally deciphers it as directions for hum to esca pe from the prison Given st, the task here is to find the final cardin al direction(NWES he anives when he moves according to the di recons
Asstime, the prisoner always starts his movement
LLeft direction on from North(N)
Example 1: Input:
LLR
-Value of str
Output:
-Final cardinal direction
W
Explanation:
From the input given above
As the prisoner starts from Narmo)
There was a Grocery shop. Shopkeeper would like to keep transactions as simple as he can. Here he used to take money as whole number. To optimize transactions, he decided if someone buys Ogroceries from his shop, he will round money to the nearest whole number having zero as last digit. Write a program to help Shopkeeper to make transactions much simple.



Program

Constraints: 1<N<1000000

Example 1: Input:

7659

-Positive loteger

Output:

7660 -result-Integer rounding to nearest whole number having zero

as last digit.

Explanation: Given integer 7659" which is near to 7660, the whole number having zero as last digit, Hence output is 7660.

Example 2:

Input:

50

Positive integer
LATEST TUTORIALS
APPROVED BY CLIENTS