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

Upon calling the function display the average determined by the user-defined function


Use a function called double detAverege() to determine the average percentage. The function will receive 3 integer parameters. The 3rd mark will be passed by reference.


Write a C++ code that will prompt the user to enter marks of 3 students. Determine and display the lowest mark among the 3. Do not use a loop. 


A training center selects applicants into their apprenticeships program based on the needs fir apprentices in the industry. Only 5 applicants were enrolled for the year. The final mark for the student is determined by the final exam mark plus 5 Mark's if the student submitted all the assessments. Otherwise, the final mark of the student is the exam mark


Write a c++ program to determine the final mark of the student. The program should:

•Hold the names of the students and their final mark in a parallel array

•Display the names and their final Mark's in a tabular format

•Calculate and display the average mark of the student

•Calculate the highest and lowest final mark and display the name and the mark of the student with the highest and lowest final mark.


Create a class Date whose object can store a day, month and year. Include the necessary

constructors to initialize the objects and function to display the date in ‘dd/mm/yyyy’ format.

Define a non-member function findAge(Date dob, Date today) which should return the calculated

age from the input dates ‘dob’ and ‘today’. Set this function as friend to Date class. Write a main

function to read the today’s date and date of birth of a person from the user and display the age

of that person by calling the proper function.


- Roll a six-sided die 6000 times. Then show the output frequency elements 1-6 in

tabular format. Use the following


srand( time( 0 ) ); // seed random-number generator

face = 1 + rand() % 6 ; // generate rand face from 1:6

create B[face] list to count the number of occurrence the faces 1 -6,

Show the output as

Face Frequency

1 1003

2 1004

3 999

4 980

5 1013

6 1001


Write a main program to run the following functions:


void inp

ut_array(double a[ ]); // to input an array


void count( double a[ ], int &odd, int &even) // count odd and even numbers, return by

reference


 amazon is building a way to help customers search reviews quicker by providing real time suggestions to search terms when the customer starts typing .give a minimum of two charters into the search filed the system will suggest at most three keywords from the review word repository as the customer to type in the reviews search bar the relevant keyword suggestions will update automatically




C++ PROGRAMMING

The "TRC Institute" records and monitors performance of three (3) machines over a period of four (4) days (l to 4) as shown in the Table 1, 2 and 3 respectively. The production ranges between 15.5 and 75.5 

Table 1- Machine "A" Production

Day 1 2 3 4

Array index 0 1 2 3

Production 15.5 25.5 27.5 60.5

Table 2- Machine "B" Production

Day 1 2 3 4

Array index 0 1 2 3

Production 50 45.5 25.5 18

Table 3- Machine "C" Production

Day 1 2 3 4

Array index 1 2 3 4

Production 35.5 65 71 74.5

Write a function using C++ statements called PrintChart() which takes three float arrays (valuel, value2, value3) and an integer (as day) as parameters. The function calls GetProduction and PrintBar functions to print the output as given below.

Sample Output.

Day 1

Machine A **

Machine B   ***** 

Machine C    ****


C++ PROGRAMMING

The "TRC Institute" records and monitors performance of three (3) machines over a period of four (4) days (l to 4) as shown in the Table 1, 2 and 3 respectively. The production ranges between 15.5 and 75.5 

Table 1- Machine "A" Production

Day 1 2 3 4

Array index 0 1 2 3

Production 15.5 25.5 27.5 60.5

Table 2- Machine "B" Production

Day 1 2 3 4

Array index 0 1 2 3

Production 50 45.5 25.5 18

Table 3- Machine "C" Production

Day 1 2 3 4

Array index 1 2 3 4

Production 35.5 65 71 74.5

Implement the main method of a C++ program to do the followings.

1 . Create 3 float arrays with the names machine A, machine B and machine C. The arrays are of size 4.

2.Insert machine A, B and C production to the respective array using the function InputProduction()

3. Print chart of all four (4) days by using the function PrintChart().

4. Print the report using the function PrintReport()


LATEST TUTORIALS
APPROVED BY CLIENTS