1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
malfutka [58]
3 years ago
15

Ronaldo wants to determine if employees would prefer having bagels or

Computers and Technology
1 answer:
nikklg [1K]3 years ago
7 0

Answer:

surveys and questionnaires

You might be interested in
This chapter uses the class rectangleType to illustate how to overload the operators +, *, ==, !=, >>, and <<. In th
sattari [20]

Answer:

Check the attached image for code screenshot and output.

Explanation:

#######################################

      Rectangle.cpp

#######################################

#include "Rectangle.h"

Rectangle::Rectangle() {

       length = 0;

       width = 0;

}

Rectangle::Rectangle(double newLength, double newWidth) {

       length = newLength;

       width = newWidth;

}

void Rectangle::setLength(double l) {

       length = l;

}

void Rectangle::setWidth(double w) {

       width = w;

}

double Rectangle::getLength() {

       return length;

}

double Rectangle::getWidth() {

       return width;

}

double Rectangle::computeArea() {

       return length * width;

}

double Rectangle::computePerimeter() {

       return 2 * (length + width);

}

Rectangle Rectangle::operator++ () {

       length++;

       width++;

       return *this;

}

Rectangle Rectangle::operator++ (int) {

       Rectangle r(length, width);

       ++length;

       ++width;

       return r;

}

Rectangle Rectangle::operator-- () {

       if(length > 0) {

               length--;

       }

       if(width > 0) {

               width--;

       }

       return *this;

}

Rectangle Rectangle::operator-- (int) {

       Rectangle r(length, width);

       if(length > 0) {

               length--;

       }

       if(width > 0) {

               width--;

       }

       return r;

}

Rectangle Rectangle::operator- (Rectangle other) {

       

       if(length > other.length && width > other.width) {

               length--;

               width--;

       } else {

               cout << "invalid operation. Subtrated Rectangle is bigger" << endl;

       }

       return *this;

}

bool Rectangle::operator==(Rectangle other) {

       return (length == other.length) && (width == other.width);

}

bool Rectangle::operator!=(Rectangle other) {

       return (length != other.length) || (width != other.width);

}

void Rectangle::printDetails() {

       cout << "Rectangle Report" << endl;

       cout << "Dimensions: " << length << " X " << width << endl;

       cout << "Area: " << computeArea() << endl;

       cout << "Perimeter: " << computePerimeter() << endl;

       cout << "********************" << endl;

}

#######################################

        Rectangle.h

#######################################

#include<iostream>

#include<iomanip>

using namespace std;

class Rectangle {

       double length, width;

       public:

       Rectangle();

       Rectangle(double newLength, double newWidth);

       void setLength(double l);

       void setWidth(double w);

       double getLength();

       double getWidth();

       double computeArea();

       double computePerimeter();

       

       Rectangle operator++ ();

       Rectangle operator++ (int);

       

       Rectangle operator-- ();

       Rectangle operator-- (int);

       Rectangle operator- (Rectangle r);

       bool operator== (Rectangle r);

       bool operator!= (Rectangle r);

       

       void printDetails();

};

#######################################

           main.cpp

#######################################

#include "Rectangle.h"

       // Ask the user to type in a length and width and

       // create an object called rect2 of the rectangle class

       // See output for format

       cout << "Enter the length of rectangle 3: ";

       cin >> l;

       cout << "Enter the width of rectangle 3: ";

       cin >> w;

       Rectangle rect3(l, w);

       cout << endl;

       cout.setf(ios::fixed);

       cout.precision(1);

       // Using the member function in the class, print rect1, rect2,

       // and rect3 details in that order

       rect1.printDetails();

       rect2.printDetails();

       rect3.printDetails();

       cout << endl;

       // Print each rectangle in the format shown on the output

       cout << "Rectangle 1: " << rect1.getLength() << " X " << rect1.getWidth() << endl;

       cout << "Area: " << rect1.computeArea() << " Perimeter: " << rect1.computePerimeter() << endl;

       cout << "Rectangle 2: " << rect2.getLength() << " X " << rect2.getWidth() << endl;

       cout << "Area: " << rect2.computeArea() << " Perimeter: " << rect2.computePerimeter() << endl;

       cout << "Rectangle 3: " << rect3.getLength() << " X " << rect3.getWidth() << endl;

       cout << "Area: " << rect3.computeArea() << " Perimeter: " << rect3.computePerimeter() << endl;

       if(rect2 == rect3) {

               cout << "rectangle 2 and 3 are same." << endl;

       } else {

               cout << "rectangle 2 and 3 are not same." << endl;

       }

       cout << "After incrementing rectangle 2: ";

       rect2++;

       rect2.printDetails();

   return 0;

}

4 0
4 years ago
Risa has a negative credit rating, and she feels obtaining a fresh loan credit is going to be quite difficult for her. Her frien
antoniya [11.8K]

Answer:C

Explanation: Because of the high interest rates it will take longer for her pay it off

4 0
4 years ago
What steps should you take if your harassed online​
AURORKA [14]
Tell an adult and report the person harassing you
8 0
3 years ago
Read 2 more answers
Which actions can be performed on tables in Word? Check all that apply.
tigry1 [53]
✓ adding rows
✓ adding columns
✓ deleting rows
✓ deleting columns
✓ changing column width
✓ aligning tables
✓ converting tables to text
✓ converting tables to graphs

Believe it or not, all of these actions are possible in MS Word.
3 0
4 years ago
Read 2 more answers
A group of users can perform certain operations on a shared workbook. Which option helps them to update and track changes in the
irina1246 [14]

The “Allow changes by more than one user at the same time” option.


In a group of users, it is very important to create a shared workbook so that several people are able to update information and track changes in the workbook at the same time. To do so, one should click on the review tab of the excel sheet and select share workbook. On the editing tab of the share workbook dialog box, select the Allow changes by more than one user at the same time check box. Go ahead and click the advanced tab and select option you would want to use and then click OK

 






4 0
4 years ago
Other questions:
  • A program is run line by line to determine the source of a logic error. Which best describes the specific tool being used? (A.)c
    5·1 answer
  • Can I recover pics I deleted like 9 months ago? ​
    13·2 answers
  • You can install several printers on your machine, but at least one must be the _______ printer.
    6·1 answer
  • As an ICT student teacher using convincing and cogent reasons explain why you think operating system is pivotal in teaching and
    7·1 answer
  • A client contacted you to request your help in researching and supplying the hardware necessary to implement a SOHO solution at
    5·1 answer
  • my I phone is in recovery mode and when I connect to my PC the I device is not connected to iTunes although i have the latest ve
    7·2 answers
  • Edhesive 6.2
    6·2 answers
  • What is the difference between a crosstab query and a subquery?
    11·2 answers
  • What's this little?<br>​
    9·1 answer
  • How to run angular project from github.
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!