The C++ code that implements the Employee class and performs the required operations:
```cpp
#include <iostream>
class Employee {
private:
int Emp_ID;
int Age;
double Salary_per_month;
double Total_deductions;
double Annual_salary_with_deductions;
public:
Employee() {
Emp_ID = 0;
Age = 0;
Salary_per_month = 0;
Total_deductions = 0;
Annual_salary_with_deductions = 0;
}
Employee(int id, int age, double salary) {
Emp_ID = id;
if (age >= 25 && age <= 50) {
Age = age;
} else {
std::cout << "Invalid" << std::endl;
exit(0);
}
Salary_per_month = salary;
Total_deductions = 0;
Annual_salary_with_deductions = 0;
}
void Annual_Salary() {
double income_tax = Annual_salary_without_deductions() * 0.10;
double educational_chess = Annual_salary_without_deductions() * 0.05;
double professional_tax = Annual_salary_without_deductions() * 0.03;
Total_deductions = income_tax + educational_chess + professional_tax;
Annual_salary_with_deductions = Annual_salary_without_deductions() - Total_deductions;
}
double Annual_salary_without_deductions() const {
return Salary_per_month * 12;
}
static Employee Compare_emp(const Employee& emp1, const Employee& emp2) {
if (emp1.Annual_salary_with_deductions > emp2.Annual_salary_with_deductions) {
return emp1;
} else {
return emp2;
}
}
void Print_emp() const {
std::cout << "Emp_ID=" << Emp_ID << std::endl;
std::cout << "Age=" << Age << std::endl;
std::cout << "Salary per month=" << Salary_per_month << std::endl;
std::cout << "Total deductions=" << Total_deductions << std::endl;
std::cout << "Annual salary with deductions=" << Annual_salary_with_deductions << std::endl;
std::cout << "grade reduction=15%" << std::endl;
}
};
int main() {
int id1, age1, id2, age2;
double salary1, salary2;
// Input Employee 1 details
std::cin >> id1 >> age1 >> salary1;
Employee emp1(id1, age1, salary1);
emp1.Annual_Salary();
// Input Employee 2 details
std::cin >> id2 >> age2 >> salary2;
Employee emp2(id2, age2, salary2);
emp2.Annual_Salary();
// Print details and compare employees
std::cout << "Employee 1" << std::endl;
emp1.Print_emp();
std::cout << "Employee 2" << std::endl;
emp2.Print_emp();
Employee highly_paid = Employee::Compare_emp(emp1, emp2);
std::cout << "Highly paid is Employee " << highly_paid.Emp_ID << std::endl;
highly_paid.Print_emp();
return 0;
}
```
This code defines the `Employee` class with the required private data members and public member functions. It includes constructors, the `Annual_Salary` function to calculate deductions and annual salary, the `Compare_emp` function to compare two employees,
and the `Print_emp` function to display the employee details. In the `main` function, two `Employee` objects are created, their details are taken as input, the annual salaries are computed, and the details of the highly paid employee are printed.
To learn more about CLASS click here:
/brainly.com/question/16108379
#SPJ11
In your own words explain the following about the Domain Name System
What problem does the DNS solve?
How does the DNS help the world wide web scale so that billions of users can access billions of web pages?
Answer:
Suppose you want to access brainly.com. You type that into your favorite browser and hit enter. Your computer does not know how to get to brainly.com. This is the DNS comes in. The DNS looks for brainly.com and maps it to an IP address (eg. 104.17.74.91). Your computer can easily find 104.17.74.91 in order to connect you to questions and answers on a variety of topics.
HELP 10 POINTS
When collaborating in a group, it is appropriate to:
A:state the role each member played in the project
B:submit answers in your own interpretation and wording
C:Name all of the group members who worked together
D:Pre-approve the group members with the instructor
Answer:
it's A:state the role each member played in the project
refers to the increasing accessibility of technology, allowing more people to access information, create content, and develop applications.refers to the increasing accessibility of technology, allowing more people to access information, create content, and develop applications.
Answer:
Democratization of technology
Explanation:
Democratization of technology refers to the increasing accessibility of technology. More people have better access to the tools needed to view content and create technology solutions of their own.
Answer:
democratization of technology: the increasing accessibility of technology, allowing more people to access and create content and applications
Explanation:
- Edge 2022
dr. pendelton reviews a status report from his research partner. feedback travels to sender. sender encodes message. message travels over channel. receiver decodes message. sender has an idea.
Feedback enables the communication's sender to confirm that their message has been received and comprehended. The medium through which a message is transmitted is called a channel.
Is the channel the medium used to transmit a message?The method used to transmit a communication message is called the channel. The message needs to be delivered, thus the sender uses a channel known as a communication. A communication channel disruption prevents the recipient from correctly deciphering the message.
Is there a message being decoded?Decoding is the process through which the receiver converts an encoded message into a usable form.
To know more about Decoding visit:-
https://brainly.com/question/14587021
#SPJ1
You want to create a collection of computers on your network that appear to have valuable data but actually store fake data that could entice a potential intruder. Once the intruder connects, you want to be able to observe and gather information about the attacker's methods.
Which feature should you implement?
The feature that you should implement to be able to observe and gather information about the intruder methods is called "honeypot".
A honeypot is a decoy system that appears to contain sensitive data and applications to lure intruders into the computer. It is designed to detect, deflect, or study attempts of unauthorized use or access to information systems.
Honeypots are useful for detecting new and emerging attacks that other security measures may not be able to detect. They allow security professionals to study the tactics and techniques used by attackers, understand the vulnerabilities in their systems and networks, and develop countermeasures to prevent future attacks. Honeypots can also provide a distraction for attackers, drawing them away from critical systems and data, and buying time for defenders to take action.
To create a honeypot, you can set up a separate network segment or virtual machine that appears to contain valuable data and applications. You can then monitor this system for any suspicious activity, such as attempts to access sensitive data or exploit vulnerabilities. By analyzing the information gathered from the honeypot, you can gain valuable insights into the methods used by attackers, and use this information to improve your security posture in your computer.
In conclusion, implementing a honeypot is an effective way to gather intelligence about potential attackers, study their methods, and improve your overall security posture.
To learn more about intruder visit : https://brainly.com/question/30548625
#SPJ11
Find the TWO integers whos product is 8 and whose sum is 6
Answer:
2 and 4
Explanation:
The two numbers that have a product of 8 and a sum of 6 are 2 and 4 as an example 2 • 4 = 8 2 + 4 = 6
Answer
What two numbers have a product of 8 and a sum of 6?" we first state what we know. We are looking for x and y and we know that x • y = 8 and x + y = 6.
Before we keep going, it is important to know that x • y is the same as y • x and x + y is the same as y + x. The two variables are interchangeable. Which means that when we create one equation to solve the problem, we will have two answers.
To solve the problem, we take x + y = 6 and solve it for y to get y = 6 - x. Then, we replace y in x • y = 8 with 6 - x to get this:
x • (6 - x) = 8
Like we said above, the x and y are interchangeable, therefore the x in the equation above could also be y. The bottom line is that when we solved the equation we got two answers which are the two numbers that have a product of 8 and a sum of 6. The numbers are:
2
4
That's it! The two numbers that have a product of 8 and a sum of 6 are 2 and 4 as proven below:
2 • 4 = 8
2 + 4 = 6
Note: Answers are rounded up to the nearest 6 decimals if necessary so the answers may not be exact.
Explanation:
WILL GIVE BRAINLIEST
Give several reasons why Python is such a great programming language. Explain how Python is related to flowcharts.
Consider this program:
Cost1 = input("Please enter the first expense: ")
Cost2 = input("Please enter the second expense: ")
print("Your total for both expenses was", Cost1 + Cost2)
If the user inputs “10” for the first expense and “20” for the second expense, what will the interpreter show in the final line when this program is run? If this result in not what the programmer intended, how would you explain what went wrong?
You are writing a line of code that should ask the user to input the balance of their bank account in dollars and cents. The program will then perform a multiplication problem to tell the user how much interest they can earn. Identify three errors in your line of input code and explain why they are incorrect. Include the corrected line of code in your answer. Here is the code:
1num = input(What is your balance?)
What are some kinds of comments that might be useful for a programmer to include in a program?
If you were planning how to write a program, at what point would a flowchart be helpful? At what point would pseudocode be helpful? Explain your reasoning.
Answer:
G i v e s e v e r a l r e a s o n s w h y P y t h o n i s s u c h a gr e a t p r o g r a m m i n g l a n g u a g e. E x p l a i n h o w P y t h o n i s r e l a t e d t o f l o w c h a r t s.
P y t h o n i s s u c h a g r e a t p r o g r a m m i n g l a n g u a g e b e c a u s e i t i s s i m p l e, p o p u l a r, a n d p o w e r f u l e n o u g h t o c r e a t e s o m e a w e s o m e a p p s. P y t h o n i s r e l a t e d t o f l o w c h a r t s b e c a u s e F l o w c h a r t P y t h o n i s e s s e n t i a l l y t h e P y t h o n p r o g r a m m i n g l a n g u a g e i n v i s u a l f o r m.
C o n s i d e r t h i s p r o g r a m :
C o s t 1 = i n p u t ( " P l e a s e e n t e r t h e f i r s t e x p e n s e : " )
C o s t 2 = i n p u t ( " P l e a s e e n t e r t h e s e c o n d e x p e n se: ")
p r i n t ( " Y o u r t o t a l f o r b o t h e x p e n s e s w a s " , C o s t 1 + C o s t 2 )
I f t h e u s e r i n p u t s “ 1 0 ” f o r t h e f i r s t e x p e n s e a n d “ 2 0 ” f o r t h e s e c o n d e x p e n s e , w h a t w i l l t h e i n t e r p r e t e r s h o w i n t h e f i n a l l i n e w h e n t h i s p r o g r a m i s r u n ? I f t h i s r e s u l t i n n o t w h a t t h e p r o g r a m m e r i n t e n d e d , h o w w o u l d y o u e x p l a i n w h a t w e n t w r o n g ?
Y o u a r e w r i t i n g a l i n e o f c o d e t h a t s h o u l d a s k t h e u s e r t o i n p u t t h e b a l a n c e o f t h e i r b a n k a c c o u n t i n d o l l a r s a n d c e n t s . T h e p r o g r a m w i l l t h e n p e r f o r m a m u l t i p l i c a t i o n p r o b l e m t o t e l l t h e u s e r h o w m u c h i n t e r e s t t h e y c a n e a r n . I d e n t i f y t h r e e e r r o r s i n y o u r l i n e o f i n p u t c o d e a n d e x p l a i n w h y t h e y a r e i n c o r r e c t . I n c l u d e t h e c o r r e c t e d l i n e o f c o d e i n y o u r a n s w e r . H e r e i s t h e c o d e :
T h e f i r s t e r r o r i s t h a t t h e v a r i a b l e s t a r t s w i t h a n u m b e r , w h i c h i s a r u l e y o u c a n ’ t b r e a k , o r e l s e t h e c o m p u t e r w o n ’ t k n o w t h a t i t ’ s a v a r i a b l e . T h e n e x t e r r o r i s t h a t t h e y d i d n ’ t d e c l a r e t h e v a r i a b l e a s a f l o a t . T h e f i n a l e r r o r i s t h a t t h e r e a r e n o q u o t a t i o n m a r k s i n t h e p a r e n t h e s e s , w h i c h a r e n e e d e d t o t e l l t h e c o m p u t e r t o o u t p u t t h a t o u t t o t h e s c r e e n , o r e l s e i t s g o i n g t o t h i n k t h a t y o u w a n t t h e c o m p u t e r t o f i l l t h a t i n i t s e l f .
1 n u m = input(What is your balance?)
What are some kinds of comments that might be useful for a programmer to include in a program?
some kinds of comments that might be useful is when there is a bug, something that needs to be fixed, something that is easy to hack, and something the programmer needs to finish if the programmer released the program early.
If you were planning how to write a program, at what point would a flowchart be helpful? At what point would p s e u d o c o d e be helpful? Explain your reasoning.
A flowchart is helpful in the beginning of writing a program when you are planning what to do. The p s e u d o c o d e would be helpful before you start the coding. The reason is because flowcharts are helpful for planning out your course of action, while pseudocode helps you plan what you are going to write, so it should be right before you start coding, so you know everything that you were thinking about whilst writing the p s e u d o c o d e , and you know that if one thing doesn’t work, you still have all the previous thoughts on that line.
Explanation:
I have the same text questions so I don't want to get anything wrong. I also want to be a developer of M i n e c r a f t , so I pay attention in my coding class.
Question #4
Multiple Select
Which of the following statements are true when addressing feedback? Select 3 options.
Most negative feedback should be ignored.
The feedback loop is not closed until action is taken to address the feedback.
Negative feedback that is addressed correctly can help build customer loyalty.
Analytics and other new technologies help developers evaluate feedback.
All feedback should be prioritized equally.
Answer:
Negative feedback that is addressed correctly can help build customer loyalty..
Analytics and other new technologies help developers evaluate feedback.
The feedback loop is not closed until action is taken to address the feedback.
Explanation:
Feedbacks are simply complaints, abuses, praise which service providers do get when customers allowed to respond or give commebts on the services rendered. It is an essential channel for consumers to channel Thor grievances and well as praise while also allowing service providers take adequate note of shortcomings and areas which could be improved upon in their products or service offering. Proper evaluation of feedbacks with regards to sensitivity and humor goes a long in molding good customer relationship and loyalty.
Prioritization of negative feedbacks by angry customers should be handled carefully and noted in other to proffer adequate fix and foster good future relationship.
windows 11 has 3 accessibility categories, what are they?
Windows 11 has 3 accessibility categories Vision., Hearing., Mobility disabilities easier to find and use, making it one of the most accessible operating systems available.
Windows 11 makes accessibility tools for people with vision, hearing, and mobility disabilities easier to find and use, making it one of the most accessible operating systems available. Although PC hardware is nice, it is of little use without cutting-edge software.
What's coming to Windows 11 accessibility?Voice access, which lets users control most of the operating system with their voice, is another new feature in the Windows 11 2022 Update. Without having to move your hands, you can open and close apps, navigate text, click things, press keyboard keys, and more with this.
What exactly are access permissions?Android Accessibility Services was made to help app developers make their apps more accessible to people with disabilities and to help them overcome the obstacles they face when using smartphones. To take advantage of these advantages, users must enable "Accessibility Permissions" when downloading these apps.
Learn more about windows 11 :
brainly.com/question/30613269
#SPJ4
What are the two types of namespace that can be created when configuring the new namespace wizard in dfs?.
orphan record example?
Answer:
If we delete record number 15 in a primary table, but there's still a related table with the value of 15, we end up with an orphaned record. Here, the related table contains a foreign key value that doesn't exist in the primary key field of the primary table. This has resulted in an “orphaned record”.
If you need to modify a features in a part created using the Mirror tool, you can make the change in the original feature and the feature on the other side of the mirror plane will be modified automatically.
Select Answer
False
True
Answer:
The answer to this question is given below in the explanation section.
Explanation:
The correct answer to this question is TRUE.
Because when you are designing something and drawing anything and it is symmetric in shape and half of the part is created, then if you use mirror features, then the other half part will get created automatically.
If you need to modify the features in the original part of the drawing or design then the other side of the mirror plane will be modified automatically.
Because whatever you will make changes in the original part of the design, then the other part that is created by using mirror features will get modified automatically.
Write a program that:
stores your name in one variable called name
stores your age in another variable called age
prints a one-line greeting that includes your name and your age.
Your program should output something like this:
Hi! My name is Arthur and I am 62 years old.
Hint: Do not get user input for the values of name and age but instead simply save these values inside your program as static variables, or variables that do not change value.
Answer:
#include<iostream>
#include<string>
using namespace std;
int main() {
const string name = "Arthur";
const int age = 68;
cout<<"Hey my name is "<<name<<" and my age is "<<age;
return 0;
}
Explanation:
Above is the c++ program for printing one line greeting that includes your name and your age.
String library is used to save name in constant string variable "name"
and age is stored in constant integer type age variable then both of them are printed using cout (ostream object) build in iostream library.
Program output has been attached below.
the function to find the mean of a subset in excel is?
In an Excel spreadsheet, the AVERAGE function will determine the average (arithmetic mean) for a given group of values.
How does Excel calculate the average of a selection of data?To find the average of the numbers in a column or row, click a cell below the column or to the right of the row. On the HOME tab, click the arrow next to AutoSum > Average, and then hit Enter.
What does the in Excel mean?The Average is the name given to the Mean in Excel. When calculating the mean of a group of numbers, add up all the numbers in the group and divide the result by the number of numbers in the group. The Mean is most frequently utilised in the business sector.
To know more Excel visit:-
https://brainly.com/question/30324226
#SPJ4
which are three powerpoint options that can be customized?
•Marcos, Themes, Ribbon tabs
•Ribbon yabs, templates, marcos
•user name, themes, Quick Acess buttons
•AutoSave file location, Print options, templates
Answer:
There are many PowerPoint options that can be customized, but here are three examples:
Themes: PowerPoint themes allow you to change the overall look and feel of your presentation. You can choose from a variety of pre-designed themes, or create your own by customizing colors, fonts, and backgrounds.
Slide layouts: You can customize the layout of each slide in your PowerPoint presentation. This includes adding or removing content boxes, changing the size and position of images and text, and adjusting the overall design of the slide.
Animations and transitions: PowerPoint allows you to add animations and transitions to your slides to make your presentation more dynamic and engaging. You can customize the type and duration of animations and transitions, as well as the direction and timing of each effect.
Explanation:
Answer:
user name, themes, Quick Access buttons
Explanation:
which option is part of the hardware layer of abstraction in a computing system
Answer:
the switches in the central prossesing unit
What is a table in Excel?
a worksheet that has conditional formatting rules applied to it
a group of cells with content created by the AutoFill feature
a group of related data without any spaces between cells
the header and footer of an Excel worksheet
Answer:
c
Explanation:
i got it wrong twice so it gave me the correct answer.
Cryptography has requirements include:
A. easy to compute and not invertible
B. tamper-resistant
C. collision-resistant
D. All the above
Answer:A i think
Explanation:
what is the network number of address 165.34.45.14 with a subnet mask of 255.255.240.0?
The network number of the IP address 165.34.45.14 with a subnet mask of 255.255.240.0 is 165.34.32.0.
To determine the network number of the IP address 165.34.45.14 with a subnet mask of 255.255.240.0, we can perform a bitwise logical AND operation between the IP address and the subnet mask. This will yield the network address.
Here are the steps to perform this operation:
Convert the IP address and subnet mask from dotted decimal notation to binary notation:
IP address: 10100101.00100010.00101101.00001110
Subnet mask: 11111111.11111111.11110000.00000000
Perform a bitwise logical AND operation between the IP address and the subnet mask:
10100101.00100010.00101101.00001110 (IP address)
11111111.11111111.11110000.00000000 (Subnet mask)
10100101.00100010.00100000.00000000 (Network address)
Convert the binary network address back to dotted decimal notation:
Network address: 165.34.32.0
Therefore, the network number is 165.34.32.0.
Learn more about network number here:
https://brainly.com/question/28218464
#SPJ11
Complete the sentence.
When sensitive information is sent over the internet, it should be
.
Answer:
encrypted
Explanation:
to prevent others from viewing it
Answer:
Your answer is encrypted
Explanation:
This will keep your information secure whilst sending it.
This means to:
convert (information or data) into a cipher or code, especially to prevent unauthorized access
So your info is safe
Pls mark brainliest <3
Hope this helps :)
`
`
`
Tori
Which of the following is a category of authentication tools. A something you have B something u see c something you hear d something you want
Answer:
Explanation:
Something you have.
Answer:
something you have
Explanation:
What punctuation is used to separate the two cell references in a range?
The punctuation that is used to separate the two cell references in a range is a colon (:).
This range can include one or more cells, and by using the colon you can quickly and easily reference multiple cells in a formula.
This is used to indicate that the range includes all the cells between the two cell references. For example, if you want to include the cells from A1 to A5 in a range, you would write it as "A1:A5". This indicates that the range includes the cells A1, A2, A3, A4, and A5.
This tells Excel to look for the value in the range of cells from A1 to A5 and return the value from the 2nd column.
Learn more about punctuation mark:
https://brainly.com/question/3470879
#SPJ11
The punctuation that is used to separate the two cell references in a range is a colon (:).
This range can include one or more cells, and by using the colon you can quickly and easily reference multiple cells in a formula.
This is used to indicate that the range includes all the cells between the two cell references. For example, if you want to include the cells from A1 to A5 in a range, you would write it as "A1:A5". This indicates that the range includes the cells A1, A2, A3, A4, and A5.
This tells Excel to look for the value in the range of cells from A1 to A5 and return the value from the 2nd column.
Learn more about punctuation mark:
brainly.com/question/3470879
#SPJ11
Ava and Elizabeth are planning on using an IDE to create their program. Describe tools and facilities available in the IDE which can help them to identify and correct syntax errors.
In a certain country telephone numbers have 9 digits. The first two digits are the area code (03) and are the same within a given area. The last 7 digits are the local number and cannot begin with 0. How many different telephone numbers are possible within a given area code in this country?.
The possible different numbers of telephone is 9,000,000.
How to calculate possible different number?Since, the first two digits is same, so totally only 7 digits that can be change to create possible different numbers.
Number that available for first from 7 digits is only 9 number (1 to 9) and for the rest digits is 10 number (1 to 10). Since, no restriction to repeat number in any 7 digits available. So we can calculate with this combinator formula,
Possible different numbers = 9 * 10 * 10 * 10 * 10 * 10 * 10
= 9,000,000
Learn more about digits here:
brainly.com/question/10661239
#SPJ4
Which of the following Office Online apps is most effective for creating spreadsheets?
Answer:
Excel
Explanation:
It allows you to make spreadsheets.
what is meant by astigmation
Answer:
It is a condition where the eye isn't completely round
Explanation:
Answer:
is a common and generally treatable imperfection in the curvature of your eye that causes blurred distance and near vision. Astigmatism occurs when either the front surface of your eye (cornea) or the lens, inside your eye, has mismatched curves
Explanation:
What type of cost will reduce with the introduction of a CAM system in a manufacturing plant?
A.
capital cost
B.
fixed cost
C.
labor cost
D.
material cost
Answer:
a.capital cost
Explanation:
because capital cost is to reduce introduction of CAM system
What are the two sizes (minimum and maximum) of an Ethernet frame? (Choose two.)
A. 128 bytes
B. 56 bytes
C. 1024 bytes
D. 64 bytes
E. 1518 bytes
The two sizes of an Ethernet frame are option d and e the minimum size of 64 bytes and the maximum size of 1518 bytes.
The minimum size of an Ethernet frame is 64 bytes, including the preamble, destination and source MAC addresses, type or length, data, and the Frame Check Sequence (FCS) at the end. This is known as the Minimum Ethernet Frame Size. Frames smaller than this are considered runts and are discarded by the receiving device.
The maximum size of an Ethernet frame is 1518 bytes, which includes the same fields as the minimum frame size. This is known as the Maximum Ethernet Frame Size. Frames larger than this are considered giants and are also discarded by the receiving device.The Ethernet frame is the basic unit of communication in an Ethernet network. It contains all the information necessary to transmit data over the network.
To know more about Ethernet visit:
https://brainly.com/question/31610521
#SPJ11
Which type of evidence should victims collect to help officials catch cyber bullies?home addressesbirthdayssocial media usernamesuser passwords
a) consider the binary number 11010010. what is the base-4 representation of (11010010)2? (there is a way to do this without converting the binary number into a decimal representation.) (b) consider the number d in hex. what is the base-4 representation of (d)16?
The place value can be used to convert a binary number, such as 11010010, into decimal form: 11010010 = 1 x 27 + 1 x 26 + 0 x 25 +1 x 24.In light of the aforementioned, the base-4 number system has 4 digits: 0, 1, 2, and 3. Any 2-bit number can be represented by a single base-4 integer since a 2-bit number can only represent one of the values 0, 1, 2, or 3.
What does base 4 mean?Base-4 is a quaternary number system. Any real number is represented by the digits 0, 1, 2, and 3.In light of the aforementioned, the base-4 number system has 4 digits: 0, 1, 2, and 3. Any 2-bit number can be represented by a single base-4 integer since a 2-bit number can only represent one of the values 0, 1, 2, or 3.The four digits of Quaternary (Base 4) are 0 through 3.Binary code 4 is 100. In a binary number system, we only use the digits 0 and 1 to represent a number, as opposed to the decimal number system, which uses the digits 0 to 9. (bits).To learn more about Quarternary number system refer to:
https://brainly.com/question/28424526
#SPJ4