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
Lorico [155]
3 years ago
15

Any one know??please let me know

Computers and Technology
2 answers:
skad [1K]3 years ago
7 0

Answer:

The answer is B.

Explanation:

Also I see your using schoology, I use it too.

babunello [35]3 years ago
4 0

Answer:

B

Explanation:

You might be interested in
Design a class called NumDays. The class’s purpose is to store a value that represents a number of work hours and convert it to
pickupchik [31]

Answer:

Check the explanation

Explanation:

#include <iostream>

#include <string>

using namespace std;

//class declaration

class NumDays{

private:

   double hours;

   double days;

public:

   //constructor

   NumDays(double h = 0){

       hours = h;

       days = h/(8.00);

   }

   //getter functions

   double getHours(){

       return hours;

   }

   double getDays(){

       return days;

   }

   //setter functions

   void setHours(double h){

       hours = h;

       days = h/(8.00);

   }

   void setDays(double d){

       days = d;

       hours = d*(8.00);

   }

   //overload + operator

   double operator+ (const NumDays &right){

       return hours+right.hours;

   }

   //overload - operator

   double operator- (const NumDays &right){

       //check if subtraction will give negative value

       if(hours < right.hours){

           cout << "ERROR! Cannot subtract! Now terminating!\n";

           exit(0);

       }

       return hours-right.hours;

   }

   //overload prefix ++ operator

   NumDays operator++(){

       //pre-increment hours member

       ++hours;

       //update days member

       days = hours/(8.00);

       //return modified calling object

       return *this;

   }

   //overload postfix ++ operator

   NumDays operator++(int){

       //post-increment hours member

       hours++;

       //update days member

       days = hours/(8.00);

       //return modified calling object

       return *this;

   }

   //overload prefix -- operator

   NumDays operator--(){

       //pre-decrement hours member

       --hours;

       //update days member

       days = hours/(8.00);

       //return modified calling object

       return *this;

   }

   //overload postfix -- operator

   NumDays operator--(int){

       //post-decrement hours member

       hours--;

       //update days member

       days = hours/(8.00);

       //return modified calling object

       return *this;

   }

};

int main()

{

   //create first object

   cout << "Creating object with 12 hours...\n";

   NumDays obj1(12);

   cout << obj1.getHours() << " hours = " <<obj1.getDays() << " days.\n";

   //create second object

   cout << "\nCreating object with 18 hours...\n";

   NumDays obj2(18);

   cout << obj2.getHours() << " hours = " <<obj2.getDays() << " days.\n";

   //test overloaded + operator

   cout << endl << "Adding hours... " << obj1 + obj2 << " hours.\n";

   //test overloaded - operator

   cout << endl << "Subtracting hours... " << obj2 - obj1 << " hours.\n\n";

   //test overloaded ++ operators

   cout << "Pre- and post-incrementing first object...\n";

   ++obj1;

   cout << obj1.getHours() << " hours = " <<obj1.getDays() << " days.\n";

   obj1++;

   cout << obj1.getHours() << " hours = " <<obj1.getDays() << " days.\n";

   //test overloaded -- operators

   cout << "\nPre- and post-decrementing second object...\n";

   --obj2;

   cout << obj2.getHours() << " hours = " <<obj2.getDays() << " days.\n";

   obj2--;

   cout << obj2.getHours() << " hours = " <<obj2.getDays() << " days.\n";

   return 0;

}

7 0
4 years ago
Read 2 more answers
If I want to copy a worksheet, I right-click the sheet on the bottom of the screen and click what menu item?
stellarik [79]
It depends on what application are you using
6 0
3 years ago
The hardware components of a computer system interact with each other by using which of the following?
Inga [223]
B it is b..............................................
6 0
4 years ago
Read 2 more answers
In which country did the World Cyber Games originate?
levacccp [35]
The world cyber games originated in South Korea.
8 0
3 years ago
Read 2 more answers
The helping professions all involve_____.
NARA [144]

Answer:

look that up on gogle

filler filler filler filler filler

7 0
3 years ago
Other questions:
  • Why are video games interesting?
    5·1 answer
  • Create a program asks a user for an odd positive integer. If the user gives and even number or a number that is negative it prom
    7·1 answer
  • All resources are limited. Which of the following is NOT a resource?
    11·1 answer
  • Assume s is a string of lower case characters.
    15·1 answer
  • Which operating system is used by most desktop and laptop computers?
    5·1 answer
  • If your DTP document contains watermarks on every page, where can you place them?
    10·1 answer
  • To help determine to which application a transmission should be delivered on a particular computer, TCP uses the application lay
    8·2 answers
  • They will wash the car change into tag question​
    6·1 answer
  • Draw the 2-3 tree that results when you insert the keys E A S Y Q U T I O N in that order into an initially empty tree
    12·1 answer
  • Amber is a hacker who steals information when people enter their personal details on specific websites. She intercepts the publi
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!