Define a class Complex to represent complex numbers. All complex numbers are of the form x + yi, where x and y are real numbers, real numbers being all those numbers which are positive, negative, or zero.

Answers

Answer 1

Answer:

The program in C++ is as follows:

#include<bits/stdc++.h>

using namespace std;

class Complex {

public:

 int rl, im;

Complex(){ }

Complex(int Real, int Imaginary){

 rl = Real;  im = Imaginary;

}

};

int main(){

   int real, imag;

   cout<<"Real: ";    cin>>real;

   cout<<"Imaginary: ";    cin>>imag;

Complex ComplexNum(real, imag);

cout<<"Result : "<< ComplexNum.rl<<" + "<<ComplexNum.im<<"i"<<endl;

}

Explanation:

See attachment for explanation


Related Questions

Look at the code below and use the following comments to indicate the scope of the static variables or functions. Place the comment below the relevant line.

Module scope
Class scope
Function scope

#include
2
3 static const int MAX_SIZE=10;
4
5 // Return the max value
6 static double max(double d1)
7 {
8 static double lastMax = 0;
9 lastMax = (d1 > lastMax) ? d1 : lastMax;
10 return lastMax;
11 }
12
13 // Singleton class only one instance allowed
14 class Singleton
15 {
16 public:
17 static Singleton& getSingleton() { return theOne; }
18 // Returns the Singleton
19

Answers

Answer:

Explanation:

#include

static const int MAX_SIZE=10; //Class scope

// Return the max value

static double max(double d1) //Function scope

{

static double lastMax = 0;  //Function scope

lastMax = (d1 > lastMax) ? d1 : lastMax; //Function scope

return lastMax; //Module Scope

}

// Singleton class only one instance allowed

class Singleton  

{

public:

static Singleton& getSingleton()  //Function scope

{

return theOne; //Module Scope

}

// Returns the Singleton

In Word, when you conduct a merge a customized letter, envelope, label is created for each record in the data source. True or False.

Answers

i cant be taking these pills when im in thethey say i be cappin a lot

Can someone help me with this lab assignment? I really do not know what should I do?
This assignment
The program you wrote in Stacks 1 is incomplete. Without a destructor it creates a memory leak. A destructor has been defined in this program but it is incorrect. To visualize how the destructor works, a cout statement has been added. Fix the errors, including the cout statement, to display the value in each node of the stack before releasing the memory.
Write a loop in main() to enter an unknown number of positive integers. The loop stops when you enter 0 or a negative number. As you are entering integers, they are to be pushed onto a stack.
Ex.: If the user enters '10 20 30 -1` the output (from the destructor) should be:
30 - deleted!
20 - deleted!
10 - deleted!
Empty stack!
Ex.: If the user enters '-1` the output should be:
Empty stack!
This is the code:
#include
using namespace std;
class Stack_int
{
private:
// Structure for the stack nodes
struct StackNode {
int value; // Value in the node
StackNode *next; // Pointer to next node
};
StackNode *top; // Pointer to the stack top
int length; // Number of nodes
public:
Stack_int(){ top = NULL; length = 0; } //Constructor
~Stack_int(); // Destructor
// Stack operations
// bool isEmpty();
bool push(int);
// int pop();
// int peek();
// int getLength();
};
/**~*~*
Member function push: pushes the argument onto the stack.
*~**/
bool Stack_int::push(int item)
{
StackNode *newNode; // Pointer to a new node
// Allocate a new node and store num there.
newNode = new StackNode;
if (!newNode)
return false;
newNode->value = item;
// Update links and counter
newNode->next = top;
top = newNode;
length++;
return true;
}
/**~*~*
Destructor
*~**/
Stack_int::~Stack_int()
{
StackNode *currNode;
// Position nodePtr at the top of the stack.
currNode = top;
// Traverse the list deleting each node.
while (currNode)
{
cout << currNode->value << " - deleted!" << endl;
delete currNode;
currNode = NULL;
currNode = currNode->next;
}
cout << "Empty stack!" << endl;
}
int main() {
Stack_int s;
int item;
return 0;
}

Answers

Answer:

your question is too long to read

Explanation:

try explaining it in fewer words

1. Programmable logic controllers (also called
PLCs) are used to control machines and other
industrial applications with
instead
of using hard-wired devices.

Answers

Answer:

A programmable logic controller (PLC) or programmable controller is an industrial digital computer that has been ruggedized and adapted for the control of manufacturing processes, such as assembly lines, robotic devices, or any activity that requires high reliability, ease of programming, and process fault diagnosis.

Explanation:

Which statement is correct?
Flat files use foreign keys to uniquely identify tables.

Flat files use foreign keys to secure data.

A foreign key is a primary key in another table.

A foreign key uniquely identifies a record in a table.

Answers

Answer:

A foreign key is a primary key in another table.

Explanation:

Which of the following statements are true about the code shown below in the class named Quiz? (Select all that apply.)

public class Quiz {
public static void printOdd(int n) {
for(int i = 0; i < n; i++){
if(i % 2 != 0)
System.out.println(i);
else
System.out.println(i+1);
}
}

public static void main(String arg[]) {
printOdd(5);
}
}

a. A value of 5 will be substituted for the parameter during the execution of the printOdd method.
b. This method will print a list of all even numbers less than n.
c. This method when executed as called by main will print out 5 lines of output.
d. This method when executed as called by main will print out 1 line of output.
e. A value of 5 is being returned to main from the printOdd method after execution.

Answers

Answer:

a. and c.

Explanation:

The snippet of code provided will print out all of the odd numbers between 0 and the value passed as a parameter. If a number is even, it will add 1 to the even number and print out the new value. Therefore, there will be a total of outputs as the number passed as an argument. For example, this code will output a total of 5 lines of output. Therefore, the statements that would be true in this question would be the following...

a. A value of 5 will be substituted for the parameter during the execution of the printOdd method.

c. This method when executed as called by main will print out 5 lines of output.

4. What is a motion path?​

Answers

Answer:

A motion path is basically a CSS module that allows authors to animate any type of graphical object along, what is called a custom path ... Next, you would then animate it along that path just by animating offset - distance, However, authors can choose to rotate it at any particular point using the offset - rotate.

A motion Path is how you track the state of motion

What is digital marketing?

Answers

Answer:

Digital marketing is the component of marketing that utilizes internet and online based digital technologies such as desktop computers, mobile phones and other digital media and platforms to promote products and services.

Explanation:

Write a Python class that inputs a polynomial in standard algebraic notation and outputs the first derivative of that polynomial. Both the inputted polynomial and its derivative should be represented as strings.

Answers

Answer:Python code: This will work for equations that have "+" symbol .If you want to change the code to work for "-" also then change the code accordingly. import re def readEquation(eq): terms = eq.s

Explanation:

(The Person, Student, Employee, Faculty, and Staff classes) Design a class named Person and its two subclasses named Student and Employee. Make Faculty and Staff subclasses of Employee. A person has a name, address, phone number, and email address.A student has a class status (freshman, sophomore, junior, or senior). Define the status as a constant. An employee has

Answers

Answer:

Explanation:

The following code is written in Java and creates all the classes as requested with their variables, and methods. Each extending to the Person class if needed. Due to technical difficulties I have attached the code as a txt file below, as well as a picture with the test output of calling the Staff class.

PLEASE HURRY I WILL GIVE BRAILIEST TO WHO EVER ANSWERS AND IS CORRECT
Select all benefits of using a wiki for business.


inexpensive

accessible twenty-four hours per day and seven days per week

online conversation

quick and easy editing

document sharing

Answers

Answer:

B, D, E is the answers I think

Answer:

Accessible twenty-four hours per day and seven days per week

Quick and easy sharing

Document sharing

Which best describes the possible careers based on
these employers?
Yoshi worked in Logistics Planning and Management
Services, Dade worked in Sales and Service, Lani
worked in Transportation Systems/Infrastructure
Planning, Management, and Regulation, and Miki
worked in Transportation Operations.
Yoshi worked in Transportation Operations, Dade
worked in Logistics Planning and Management
Services, Lani worked in Sales and Service, and Miki
worked in Transportation Systems/Infrastructure
Planning, Management, and Regulation
Yoshi worked in Health, Safety, and Environmental
Management, Dade worked in Transportation
Operations, Lani worked in Facility and Mobile
Equipment Maintenance, and Miki worked in
Warehousing and Distribution Center Operations.

Answers

Answer:

It's c bodie I'm fr on this question rn lol

Answer:

the guy above is right, its c

Explanation:

edge 2021

11 Select the correct answer. Which external element groups items in a design?
A coloring items
B. sorting items
c. underlining items
D directing items blurring items​

Answers

Answer:

C

Explanation:

One of your suppliers has recently been in the news. Workers complain of long hours, hot and stuffy workrooms, poor lighting, and even no functioning bathrooms. Some workers are less than 14 years old. Workers are paid 10 cents for each piece they complete, and fast workers are capable of finishing 50 pieces. What is the best way to describe these working conditions?

sweatshop
cottage industry
assembly line
slavery

Answers

Answer: sweatshop

Explanation

Drag each statement to the correct location.

Determine if the given statements are true or false.

The hexadecimal equivalent

of 22210 is DE

The binary equivalent of

D7 is 11010011

The decimal equivalent of

1316 is 19.

True

False

Answers

Answer:

[tex](a)\ 222_{10} = DE_{16}[/tex] --- True

[tex](b)\ D7_{16} = 11010011_2[/tex] --- False

[tex](c)\ 13_{16} = 19_{10}[/tex] --- True

Explanation:

Required

Determine if the statements are true or not.

[tex](a)\ 222_{10} = DE_{16}[/tex]

To do this, we convert DE from base 16 to base 10 using product rule.

So, we have:

[tex]DE_{16} = D * 16^1 + E * 16^0[/tex]

In hexadecimal.

[tex]D =13 \\E = 14[/tex]

So, we have:

[tex]DE_{16} = 13 * 16^1 + 14 * 16^0[/tex]

[tex]DE_{16} = 222_{10}[/tex]

Hence:

(a) is true

[tex](b)\ D7_{16} = 11010011_2[/tex]

First, convert D7 to base 10 using product rule

[tex]D7_{16} = D * 16^1 + 7 * 16^0[/tex]

[tex]D = 13[/tex]

So, we have:

[tex]D7_{16} = 13 * 16^1 + 7 * 16^0[/tex]

[tex]D7_{16} = 215_{10}[/tex]

Next convert 215 to base 2, using division rule

[tex]215 / 2 = 107 R 1[/tex]

[tex]107/2 =53 R 1[/tex]

[tex]53/2 =26 R1[/tex]

[tex]26/2 = 13 R 0[/tex]

[tex]13/2 = 6 R 1[/tex]

[tex]6/2 = 3 R 0[/tex]

[tex]3/2 = 1 R 1[/tex]

[tex]1/2 = 0 R1[/tex]

Write the remainders from bottom to top.

[tex]D7_{16} = 11010111_2[/tex]

Hence (b) is false

[tex](c)\ 13_{16} = 19_{10}[/tex]

Convert 13 to base 10 using product rule

[tex]13_{16} = 1 * 16^1 + 3 * 16^0[/tex]

[tex]13_{16} = 19[/tex]

Hence; (c) is true

The divBySum method is intended to return the sum ofall the elements in the int arrayparameter arr that are divisible by the intparameter num. Consider the following examples, in whichthe array arrcontains {4, 1, 3, 6, 2, 9}.The call divBySum(arr, 3) will return 18,which is the sum of 3, 6, and 9,since those are the only integers in arr that aredivisible by 3.The call divBySum(arr, 5) will return 0,since none of the integers in arr are divisibleby 5.Complete the divBySum method using anenhanced for loop. Assume that arr isproperly declared and initialized. The method must use anenhanced for loop to earn full credit./** Returns the sum of all integers inarr that are divisible by num* Precondition: num > 0*/public static int divBySum(int[] arr, int num)

Answers

Answer:

Explanation:

The following program is written in Java and creates the divBySum method using a enhanced for loop. In the picture attached below I have provided an example of the output given if called using the array provided in the question and a divisible parameter of 3.

public static int divBySum(int[] arr, int num) {

       int sum = 0;

       for (int x : arr) {

           if ((x % num) == 0) {

               sum += x;

           }

       }  

       return sum;

   }

e Highlight
fogy
ст)
4 uses of information
communication technology in the health sector​

Answers

Answer: See explanation

Explanation:

The uses of information

communication technology in the health sector​ include:

• Improvement in the safety of patients through direct access to case story.

• Keeping track of the progress of the patient.

• Checking of the treatments for a disease it illness online.

• It's also vital for the electronic storage of the medical data.

A list is sorted in ascending order if it is empty or each item except the last one is less than or equal to its successor.

a. True
b. False

Answers

The answer is true not false

4 reasons why users attach speakers
to their computers​

Answers

Answer: we connected speakers with computers for listening voices or sound because the computer has not their own speaker. the purpose of speakers is to produce audio output that can be heard by the listener. Speakers are transducers that convert electromagnetic waves into sound waves. The speakers receive audio input from a device such as a computer or an audio receiver.

Explanation: Hope this helps!

in the lungs,blood picks up carbon dioxide and releases oxygen true or false

Answers

Answer:

false

Explanation:

plants do that, they absorb carbon dioxide and then they create oxygen, then humans breathe the oxygen and makes CB

a buffer storage that improve computer performance by reducing access time is​

Answers

Cache memory

Hope it helps

define the term hardwar

Answers

Answer:

tools, machinery, and other durable equipment.

Explanation:hardware in a computer are the keyboard, the monitor, the mouse and the central processing unit.

Answer: tools, machinery, and other durable equipment.

Explanation: the machines, wiring, and other physical components of a computer or other electronic system.

tools, implements, and other items used in home life and activities such as gardening. Computer hardware includes the physical parts of a computer, such as the case, central processing unit, monitor, mouse, keyboard, computer data storage, graphics card, sound card, speakers and motherboard. By contrast, software is the set of instructions that can be stored and run by hardware.

What is the meaning of integreted progam and it examples​

Answers

Answer:

Integrated software is a collection of software designed to work similar programs. A good example of integrated software package is Microsoft Office, which contains programs used in an office environment (Excel, Outlook, and Word).

You are responsible for a rail convoy of goods consisting of several boxcars. You start the train and after a few minutes you realize that some boxcars are overloaded and weigh too heavily on the rails while others are dangerously light. So you decide to stop the train and spread the weight more evenly so that all the boxcars have exactly the same weight (without changing the total weight). For that you write a program which helps you in the distribution of the weight.
Your program should first read the number of cars to be weighed (integer) followed by the weights of the cars (doubles). Then your program should calculate and display how much weight to add or subtract from each car such that every car has the same weight. The total weight of all of the cars should not change. These additions and subtractions of weights should be displayed with one decimal place. You may assume that there are no more than 50 boxcars.
Example 1
In this example, there are 5 boxcars with different weights summing to 110.0. The ouput shows that we are modifying all the boxcars so that they each carry a weight of 22.0 (which makes a total of 110.0 for the entire train). So we remove 18.0 for the first boxcar, we add 10.0 for the second, we add 2.0 for the third, etc.
Input
5
40.0
12.0
20.0
5. 33.
0
Output
- 18.0
10.0
2.0
17.0
-11.0

Answers

Answer:

The program in C++ is as follows:

#include <iostream>

#include <iomanip>

using namespace std;

int main(){

   int cars;

   cin>>cars;

   double weights[cars];

   double total = 0;

   for(int i = 0; i<cars;i++){

       cin>>weights[i];

       total+=weights[i];    }

   double avg = total/cars;

   for(int i = 0; i<cars;i++){

       cout<<fixed<<setprecision(1)<<avg-weights[i]<<endl;    }

   return 0;

}

Explanation:

This declares the number of cars as integers

   int cars;

This gets input for the number of cars

   cin>>cars;

This declares the weight of the cars as an array of double datatype

   double weights[cars];

This initializes the total weights to 0

   double total = 0;

This iterates through the number of cars

   for(int i = 0; i<cars;i++){

This gets input for each weight

       cin>>weights[i];

This adds up the total weight

       total+=weights[i];    }

This calculates the average weights

   double avg = total/cars;

This iterates through the number of cars

   for(int i = 0; i<cars;i++){

This prints how much weight to be added or subtracted

       cout<<fixed<<setprecision(1)<<avg-weights[i]<<endl;    }

Ten output devices you know

Answers

Monitor
Printer
Headphones
Computer Speakers
Projector
GPS
Sound Card
Video Card
Braille Reader
Speech-Generating Device

If a system contains 1,000 disk drives, each of which has a 750,000- hour MTBF, which of the following best describes how often a drive failure will occur in that disk farm:

a. once per thousand years
b. once per century, once per decade
c. once per year, once per month
d. once per week
e. once per day
f. once per hour
g. once per minute
h. once per second

Answers

Answer:

once per month

Explanation:

The correct answer is - once per month

Reason -

Probability of 1 failure of 1000 hard disk = 750,000/1000 = 750 hrs

So,

750/24 = 31.25 days

⇒ approximately one in a month.

If you want to continue working on your web page the next day, what should you do?

a. Create a copy of the file and make changes in that new copy

b. Start over from scratch with a new file

c. Once a file has been saved, you cannot change it

d. Reopen the file in your text editor to

Answers

Answer:

d. Reopen the file in your text editor

Answer:

eeeeeeeee

Explanation:

Write a function that takes number between 1 and 7 as a parameter and prints out the corresponding number as a string. For example, if the parameter is 1, your function should print out one. If the parameter is 2, your function should print out two, etc. If the parameter is not between 1 and 7, the function should print an appropriate error message. In your file, you should include a main() that allows the user to enter a number and calls your function to demonstrate that it works.

Answers

Answer:

The program in C++ is as follows:

#include<iostream>

using namespace std;

void changenum(int num){

   string nums[7] = {"One","Two","Three","Four","Five","Six","Seven"};

   if(num >7 || num < 1){

       cout<<"Out of range";

   }

   else{

       cout<<nums[num-1];    }

}

int main(){

   int num;

   cout<<"Number: ";

   cin>>num;

   changenum(num);

   return 0;

}

Explanation:

The function begins here

void changenum(int num){

This initializesa string of numbers; one to seven

   string nums[7] = {"One","Two","Three","Four","Five","Six","Seven"};

If the number is less than 1 or greater than 7, it prints an out of range error

   if(num >7 || num < 1){

       cout<<"Out of range";

   }

If otherwise, the corresponding number is printed

   else{

       cout<<nums[num-1];    }

}

The main begins here

int main(){

This declares num as integer

   int num;

Prompt the user for input

   cout<<"Number: ";

Get input from the user

   cin>>num;

Pass the input to the function

   changenum(num);

   return 0;

}

The new software organization requires a new point of sale and stock control system for their many stores throughout Pakistan to replace their aging mini-based systems.
A sales assistant will be able to process an order by entering product numbers and required quantities into the system. The system will display a description, price, and available stock. In-stock products will normally be collected immediately by the customer from the store but may be selected for delivery to the customer's home address for which there will be a charge. If stock is not available, the sales assistant will be able to create a backorder for the product from a regional warehouse. The products will then either be delivered directly from the regional warehouse to the customer's home address, or the store for collection by the customer. The system will allow products to be paid for by cash or credit card. Credit card transactions will be validated via an online card transaction system. The system will produce a receipt. Order details for in-stock products will be printed in the warehouse including the bin reference, quantity, product number, and description. These will be collected by the sales assistant and given to the customer. The sales assistant will be able to make refunds, provided a valid receipt is produced. The sales assistant will also be able to check stock and pricing without creating an order and progress orders that have been created for delivery.
You need to answer the following questions. (Marks 6)
1. Which elicitation method or methods appropriate to discover the requirement for a given scenario system to work efficiently, where multiple sales and stock points manage. Justify your answer with examples.
2. Identify all stakeholders for a given scenario according to their roles and responsibilities with suitable justifications.
3. Specify functional users and systems requirements with proper justifications.

Answers

Answer:

Arid walu apna v ker luuu

Explanation:

Answer:

hn g

Explanation:

write a c program to insert and delete values from stack( to perform pop and push operations) using an array data structure

Answers

Answer:

How to implement a stack in C using an array?

A stack is a linear data structure that follows the Last in, First out principle (i.e. the last added elements are removed first).

This abstract data type​ can be implemented in C in multiple ways. One such way is by using an array.

​Pro of using an array:

No extra memory required to store the pointers.

Con of using an array:

The size of the stack is pre-set so it cannot increase or decrease.

Other Questions
Help! Ill give brainliest its on quadratic equations If u know then u know!!!!Water bucket, steve, water bucket, map Which of the following is one of Benjamin Franklins achievements?A. He helped discover the nature of electricity.B. He introduced the cultivation of indigo to the colonies.C. He wrote the Frame of Government.D. He defended Peter Zenger in court. hurry what is your male/female celebrity crush. there are no wrong answers how do u cure a headache without any pills no bots or I will report u? NEED AN ANSWER ASAP NO LINKS1. Does this statement describe a function of DNA , a function of RNA , a function of both DNA and RNA , or a function of neither DNA nor RNA ?It takes the message for amino acid order for proteins to the cytoplasm, where the protein will be built; it serves as an enzyme to speed up many kinds of biochemical reactions in the cell.neither DNA nor RNARNADNAboth DNA and RNA2.In DNA, what base pairs with cytosine?cytosineguanineadeninethymine3. In DNA, what base pairs with guanine?guaninecytosineadeninethymine4. For this structural characteristic, decide if it is a characteristic of DNA , a characteristic of RNA , a characteristic of both DNA and RNA , or a characteristic of neither DNA nor RNA .It contains thymine as a base.RNA DNA both DNA and RNAneither DNA nor RNA5.For this structural characteristic, decide if it is a characteristic of DNA , a characteristic of RNA , a characteristic of both DNA and RNA , or a characteristic of neither DNA nor RNA .It is usually a single string of nucleotides.DNAneither DNA nor RNA RNA both DNA and RNA For movement, the general direction of information flow in the cortex is from the ______ cortex to the _____ cortex where the appropriate behavior is chosen to the ______ cortex. A. motor; prefrontal; visual B. visual; premotor; temporal C. sensory; prefrontal; motor D. temporal; somatosensory; motor Which statement in the passage weakens the argument that graffiti art makes an important contribution tocommunities?O A. Private business owners must also pay to have graffiti removed from their buildings, whichcreates a hardship especially for small business owners who are already struggling to pay theirbills.OB. In my opinion, we should give more support to graffiti artists and take the time to listen to whatthey are trying to tell us through their amazing images.OC. The goal of most graffiti artists is to shine a light on the world, the good and the bad, and toprompt people to think about what is happening in their communities.D. Despite the fact that many art experts, as well as local community members, are beginning tosee graffiti as true art, it is still illegal to paint anything on public property. which situation could be described by the equation p + 3/4 2/2 F. Dara poured all the flour she had into a bowl and added 3/4 cup of milk to make 2 1/2 cups of cake batter what amount of flour did she use? G. the week's meeting of the math club lasted 2 1/2 hours which was 3/4 of an hour less than last week's meeting what was the length in hours of last week's meeting H. Mr. Lopez is driving to work a distance of 2 1/2 miles he will stop at a post office when he is 3/4 of the way there what is the distance to the post office J. A yard of cheesecloth costs $0.75 How many yards of cheesecloth could you buy for $2.50 Need answer quick!!! Test!!!Read the excerpt from Julius Caesar, act 2, scene 2.CALPURNIA. When beggars die there are no comets seen;The heavens themselves blaze forth the death of princes.What does the symbol of comets represent in this excerpt?wargloryevilfaith Answer the following questions: no links nor files.Asexual reproduction in plants with flowers is called __________________________Define Pure: What can Andrea say to Chloe to start a healthy dialogue? I felt confused about my parents divorce and had no one to share my feelings with. Im here for you if you want to talk. You dont trust me enough to confide in me. Did I do something to you that makes you not like me? Ever since your parents divorce you have been overly sensitive and moody. Maybe you should find another friend that you can talk to. Nicholas is the production manager for a manufacturing firm. He has two supervisors who are experiencing conflict with each other based upon personality differences. Nicholas should have held a meeting last week to discuss next year's budget, but cancelled it because the two supervisors had a verbal confrontation on the shop floor the previous day. What conflict handling style is Nicholas demonstrating How many moles of calcium nitrate would react with 4.55 moles of chromium (III) sulfate to produce calcium sulfate and chromium(III) nitrate? if someone joins a football game without training or anything and injures his leg what is 4 possible reasons to explain what might have caused him to injured his leg Just number 14. Nothing other unless u want to Suppose a reptile damages one of its kidneys, and thekidney is not able to function.The levels of which material within the reptile's bodywould most likely be affected? Find the area of the composite shape:5 cm14 cm14cm4 cmThe area to the composite shape is: hello can somebody help please Which of the following activities is the most likely to constitute harassment?A. A worker repeatedly teases another worker about her clothes.B. A worker tells another worker that her dress is very pretty.C. A worker asks another worker out for dinner at a local restaurant.D. A worker makes a joke in the presence of other workers.SUBMIT