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

 We are working in a packaging factory where 100 boxes are packed in a day where each weigh around 1 Kg. To maintain sufficient accuracy, the machine picks 5 boxes in a row and find the average weight. The same processis repeated for all the packages. The average weight should be in a limit of 1 Kg ±2%. The average weight should be stored in an array. It should also report the index of boxes not satisfying the weight criteria. 


Create a C++ program for Classes and Pointers similar to the given example.



program in C++ in which you have to make a class Airplane having the three attribute name, direction and speed. The direction attribute can have four constraints including East, West, South and North. You have to make a constructor initialize all the attribute values. Assuming the direction around you, make a function that will change the direction of the airplane. If the airplane is headed towards the east and you call the direction function, it should rotate the plane to 90 degrees right and make the direction pointer south and so on. After that, you have to overload the same function that can accept the direction directly and set it according. You also have to make two member functions that can control the speed of an airplane one for increasing speed and the other for decreasing speed

   you have to add a function class that will show us how many airplanes have been built. start of program “there is no airplane built yet”.


Write a program to book movie tickets online.

Use File Handling and inheritance concept, and other c++ logics.


The Output should include:

1)Available Movies


2)book ticket

(select movie, select time, pay and get seat number)


3)Cancel ticket

(enter seat number to cancel)


4)Show record


5)Exit


Write a C++ Program to Calculate Percentage, GPA, CGPA.

Use File Handling and multiple inheritance concept and other c++ logics also.


The Output should include:

1)Percentage

2)GPA

3)CGPA

4)Exit


Add GUI in this code:


Example: Simple Calculator using switch statement

ADD GUI IN THIS CODE:

# include <iostream>
using namespace std;

int main() {
    char op;
    float num1, num2;

    cout << "Enter operator: +, -, *, /: ";
    cin >> op;

    cout << "Enter two operands: ";
    cin >> num1 >> num2;

    switch(op) {
        case '+':
            cout << num1 << " + " << num2 << " = " << num1 + num2;
            break;

        case '-':
            cout << num1 << " - " << num2 << " = " << num1 - num2;
            break;

        case '*':
            cout << num1 << " * " << num2 << " = " << num1 * num2;
            break;

        case '/':
            cout << num1 << " / " << num2 << " = " << num1 / num2;
            break;

        default:
            // If the operator is other than +, -, * or /, error message is shown
            cout << "Error! operator is not correct";
            break;
    }

    return 0;
}

Testpaper Arrangement in Decreasing Order

A system maintains a set of testpapers and arranges those papers in decreasing order either by registration number or by name.


Develop suitable algorithm and C++ code to create a generic class for maintaining the testpapers and arranging them.


Input format:


Enter the no. of testpapers,n


Enter the registration number of testpaper1


Enter the registration number of testpaper2



Enter the registration number of testpapern


Enter the name of testpaper1


Enter the name of testpaper2


Enter the name of testpaper3


Output format:


Registration number arranged in decreasing order (one in each line)


Name arranged in decreasing order (one in each line)


Overload the insertion and extraction operator to take input for the lecturerData class

below. Your operator overload functions should be capable of writing statements that take

multiple inputs and display multiple outputs as below.


lecturerData L1,L2;

cin>>L1>>L2;

cout<<L1<<L2;


class dateType

{

int day,month,year;

};

class lecturerData

{

char firstName[10];

char lastName[10];

int empid;

char designation[10];

dateType DOH;


};


Write the program using C++


Note: Use the mode to call the functions and store values in the array (value3).


(g) Function Name-PrintReport() which takes two float values and int size as parameters. .


Note: Should use StoreData function already defined to find min, max, total and avg marks.


(h) Create a structure with the fields; subject name, total and avg.


(i) Implement the main method of a C++ program,


Create float arrays with the names subject l , subject 2 and results. The arrays are of size 5.Find and print the highest marks,Lowest,Total,avg of Subject P and Subject Q of each class using the function StoreData().Print the report using the function PrintReport().


Create two structure variables. Each variable should store and print a summary of each Subject, aggregating marks of all 5 classes.


Use the concept of aggregation/composition to write a C++ program which will ask the user

to enter the center points and radii for two circles. Then find the perimeters of both the circles

and decide whether the circles will intersect or not.


LATEST TUTORIALS
APPROVED BY CLIENTS