The Manager class inherits from the Employee base class. The Manager class overrides the get_salary()function. What is wrong with the following definition of get_salary() in the Manager class?double Manager::get_salary() const{double base_salary = get_salary();return base_salary + bonus;}

Answers

Answer 1

Employee::get_salary(), the function will call the base class implementation of the get_salary() function and not the overridden function in the Manager class.

The implementation of the get_salary() function in the Manager class is incorrect as it creates an infinite loop.

The get_salary() function in the Manager class calls the get_salary() function of the same Manager class which in turn calls the same get_salary() function of the Manager class, leading to an infinite recursion loop.

To fix this issue, you need to call the get_salary() function of the base class (Employee) to get the base salary of the Manager.

You can do this by using the scope resolution operator "::" to access the base class function:

double Manager::get_salary() const {

   double base_salary = Employee::get_salary();

   return base_salary + bonus;

}

Employee::get_salary(), the function will call the base class implementation of the get_salary() function and not the overridden function in the Manager class.

For similar questions on Manager class

https://brainly.com/question/31361727

#SPJ11


Related Questions

Which term describes the degree to which a network can continue to function despite one or more of its processes or components breaking or being unavailable?

Answers

Answer:C Fault-tolerance

Explanation:

Answer:

fault-tolerance

Explanation:

On Edge, fault-tolerance is described as the degree to which a network can continue to function despite one or more of its processes or components breaking or being unavailable.

I hope this helped!

Good luck <3

What are the different kinds of program control structures?

Answers

Answer:

Flow of Control:

Flow of control through any given function is implemented with three basic types of control structures:

Sequential: default mode. Sequential execution of code statements (one line after another) -- like following a recipe

Selection: used for decisions, branching -- choosing between 2 or more alternative paths. In C++, these are the types of selection statements:

if

if/else

switch

Repetition: used for looping, i.e. repeating a piece of code multiple times in a row. In C++, there are three types of loops:

while

do/while

for

Find solutions for your homework
engineering
computer science
computer science questions and answers
this is python and please follow the code i gave to you. please do not change any code just fill the code up. start at ### start your code ### and end by ### end your code ### introduction: get codes from the tree obtain the huffman codes for each character in the leaf nodes of the merged tree. the returned codes are stored in a dict object codes, whose key
Question: This Is Python And Please Follow The Code I Gave To You. Please Do Not Change Any Code Just Fill The Code Up. Start At ### START YOUR CODE ### And End By ### END YOUR CODE ### Introduction: Get Codes From The Tree Obtain The Huffman Codes For Each Character In The Leaf Nodes Of The Merged Tree. The Returned Codes Are Stored In A Dict Object Codes, Whose Key
This is python and please follow the code I gave to you. Please do not change any code just fill the code up. Start at ### START YOUR CODE ### and end by ### END YOUR CODE ###
Introduction: Get codes from the tree
Obtain the Huffman codes for each character in the leaf nodes of the merged tree. The returned codes are stored in a dict object codes, whose key (str) and value (str) are the character and code, respectively.
make_codes_helper() is a recursive function that takes a tree node, codes, and current_code as inputs. current_code is a str object that records the code for the current node (which can be an internal node). The function needs be called on the left child and right child nodes recursively. For the left child call, current_code needs increment by appending a "0", because this is what the left branch means; and append an "1" for the right child call.
CODE:
import heapq
from collections import Counter
def make_codes(tree):
codes = {}
### START YOUR CODE ###
root = None # Get the root node
current_code = None # Initialize the current code
make_codes_helper(None, None, None) # initial call on the root node
### END YOUR CODE ###
return codes
def make_codes_helper(node, codes, current_code):
if(node == None):
### START YOUR CODE ###
pass # What should you return if the node is empty?
### END YOUR CODE ###
if(node.char != None):
### START YOUR CODE ###
pass # For leaf node, copy the current code to the correct position in codes
### END YOUR CODE ###
### START YOUR CODE ###
pass # Make a recursive call to the left child node, with the updated current code
pass # Make a recursive call to the right child node, with the updated current code
### END YOUR CODE ###
def print_codes(codes):
codes_sorted = sorted([(k, v) for k, v in codes.items()], key = lambda x: len(x[1]))
for k, v in codes_sorted:
print(f'"{k}" -> {v}')
Test code:
# Do not change the test code here
sample_text = 'No, it is a word. What matters is the connection the word implies.'
freq = create_frequency_dict(sample_text)
tree = create_tree(freq)
merge_nodes(tree)
codes = make_codes(tree)
print('Example 1:')
print_codes(codes)
print()
freq2 = {'a': 45, 'b': 13, 'c': 12, 'd': 16, 'e': 9, 'f': 5}
tree2 = create_tree(freq2)
merge_nodes(tree2)
code2 = make_codes(tree2)
print('Example 2:')
print_codes(code2)
Expected output
Example 1:
"i" -> 001
"t" -> 010
" " -> 111
"h" -> 0000
"n" -> 0001
"s" -> 0111
"e" -> 1011
"o" -> 1100
"l" -> 01100
"m" -> 01101
"w" -> 10000
"c" -> 10001
"d" -> 10010
"." -> 10100
"r" -> 11010
"a" -> 11011
"N" -> 100110
"," -> 100111
"W" -> 101010
"p" -> 101011
Example 2:
"a" -> 0
"c" -> 100
"b" -> 101
"d" -> 111
"f" -> 1100
"e" -> 1101

Answers

Get codes from the treeObtain the Huffman codes for each character in the leaf nodes of the merged tree.

The returned codes are stored in a dict object codes, whose key (str) and value (str) are the character and code, respectively. make_codes_helper() is a recursive function that takes a tree node, codes, and current_code as inputs. current_code is a str object that records the code for the current node (which can be an internal node). The function needs be called on the left child and right child nodes recursively. For the left child call, current_code needs increment by appending a "0", because this is what the left branch means; and append an "1" for the right child call.CODE:import heapq
from collections import Counter
def make_codes(tree):
   codes = {}
   ### START YOUR CODE ###
   root = tree[0] # Get the root node
   current_code = '' # Initialize the current code
   make_codes_helper(root, codes, current_code) # initial call on the root node
   ### END YOUR CODE ###
   return codes
def make_codes_helper(node, codes, current_code):
   if(node == None):
       ### START YOUR CODE ###
       return None # What should you return if the node is empty?
       ### END YOUR CODE ###
   if(node.char != None):
       ### START YOUR CODE ###
       codes[node.char] = current_code # For leaf node, copy the current code to the correct position in codes
       ### END YOUR CODE ###
   ### START YOUR CODE ###
   make_codes_helper(node.left, codes, current_code+'0') # Make a recursive call to the left child node, with the updated current code
   make_codes_helper(node.right, codes, current_code+'1') # Make a recursive call to the right child node, with the updated current code
   ### END YOUR CODE ###
def print_codes(codes):
   codes_sorted = sorted([(k, v) for k, v in codes.items()], key = lambda x: len(x[1]))
   for k, v in codes_sorted:
       print(f'"{k}" -> {v}')
       
Test code:
# Do not change the test code here
sample_text = 'No, it is a word. What matters is the connection the word implies.'
freq = create_frequency_dict(sample_text)
tree = create_tree(freq)
merge_nodes(tree)
codes = make_codes(tree)
print('Example 1:')
print_codes(codes)
print()
freq2 = {'a': 45, 'b': 13, 'c': 12, 'd': 16, 'e': 9, 'f': 5}
tree2 = create_tree(freq2)
merge_nodes(tree2)
code2 = make_codes(tree2)
print('Example 2:')
print_codes(code2)

To know more about Huffman codes visit:

https://brainly.com/question/31323524

#SPJ11

Part 1: Plan and Write the Pseudocode

Use the following guidelines to write your pseudocode for a fill-in story program.
1. Decide on a list of items the program will ask the user to input.
2. Your program should include at least four interactive prompts.
3. Input from the user should be assigned to variables and used in the story.
4. Use concatenation to join strings together in the story.
5. Print the story for the user to read.

Answers

Coding:

def main():

 name = input("Enter your name: ")

 age = input("Enter your age: ")

 color = input("Enter you favorite color: ")

 birth = input("Enter your birthday: ")

 print(name + " is "+age+" year(s) old.")

 print(name + "'s favorite color is "+color)

 print(name + " was born on "+ birth)

main()

Explanation:

Pseudocode is a generic way of writing an algorithm, using a simple language (native to whoever writes it, so that it can be understood by anyone) without the need to know the syntax of any programming language.

Part 1: Plan and Write the PseudocodeUse the following guidelines to write your pseudocode for a fill-in

Which statement best describes the Quick Steps feature in Outlook?
It is only configured for tasks that are not frequently used
It allows a user to add multiple steps to common tasks,
It allows multiple users to add commands to a single mailbox
It simplifies common tasks into one-step commands

Answers

Answer:

D- It simplifies common tasks into one-step commands.

Explination:

Edg 2021

Answer:

they are correct, its D

Explanation:

Write code using the range function to add up the series 15, 20, 25, 30, ... 50 and print the resulting sum each step along the way.

Expected Output
15
35
60
90
125
165
210
260

Answers

Answer:

# initialize the sum to 0

sum = 0

# loop over the numbers in the series

for i in range(15, 51, 5):

   # add the current number to the sum

   sum += i

   # print the current sum

   print(sum)

Explanation:

The first argument to the range function is the starting number in the series (15), the second argument is the ending number (51), and the third argument is the step size (5). This creates a sequence of numbers starting at 15, increasing by 5 each time, and ending before 51. The for loop iterates over this sequence, adding each number to the sum and printing the current sum.

Ask me any questions you may have, and stay brainly!

a business should be managed ethically to keep existing customers and attract new customers. true false

Answers

The statement given "a business should be managed ethically to keep existing customers and attract new customers." is true because  a business should be managed ethically to keep existing customers and attract new customers.

Managing a business ethically is crucial for maintaining and expanding customer base. When a business operates ethically, it builds trust and credibility with its existing customers. Customers are more likely to remain loyal and continue supporting a business that demonstrates ethical behavior, such as fair pricing, transparent practices, and high-quality products or services.

Additionally, ethical business practices contribute to a positive reputation, which can attract new customers. Word-of-mouth recommendations and positive reviews from satisfied customers can help a business attract a broader audience and expand its customer base. Therefore, the answer is "True."

You can learn more about business  at

https://brainly.com/question/24553900

#SPJ11

Always accept a job offer before discussing its salary and benefits.


Please select the best answer from the choices provided

Answers

This question is incomplete because the options are missing; here is the complete question

Always accept a job offer before discussing its salary and benefits.

Please select the best answer from the choices provided:

True

False

The correct answer to this question is False

Explanation:

Salary and benefits are considered to be the way you are paid for your job and the time you spent on it. Also, salary might vary depending on the complexity of the job, possible risk, knowledge or preparation required, among others. Because of this, the salary and benefits must adjust to the type of job, time, effort, risks, among others. Thus, you should never accept a job before discussing its salary and benefits as you might end being underpaid or you might not receive enough benefits or compensation for the job, which will lead to dissatisfaction.

Answer:

false !!

Explanation:

Outline the steps for logging into E-mail account​

Answers

Answer:

go to your email service provider, type in your username(email) and password click the log in or sign in button to continue

codes.com student/2087800/section/148661/assignment/5896092/ My See Practice 10 Exercise 5.1.4: Access for DNA Class Let's Go! For this exerce, you are going to create 2 instance variables and the structure of the constructor for the DNA dess. DNA objects contain two strings, and and a mnotype. Create the instance variables with the appropriate privacy settings. Then create the structure of the constructor to take two parameters to match the instance variables. Make sure you set the privacy settings on the constructor correctly. (You do not need to complete the constructor Note: Because there is no main method, your code will not execute (that's ok). Use the autograde to verify that you have the correct code. - Sand My Section Practice Sa Sub Continue RUN CODE Status: Not Submitted E 5.1.4: Access for DNA Class 1 public class DNA 2. 3 4) 5 FILES ONA

Answers

Make two instance variables and the DNA dess constructor's structure. There are two strings, a mnotype, and DNA objects.

Program:

private int calcSequenceSubs(int length, boolean prevFollEqual)

if (prevFollEqual){

   if (length == 1) return 3;

   else return 3 * calcSequenceSubs(length-1, false);

} else {

   if (length == 1) return 2;

   else return 2 * calcSequenceSubs(length-1, false) + calcSequenceSubs(length-1, true);

}

public static int DNAChains(String base) {

if (base == null || base.length() == 0) {

   return 0;

}

int curSequence = 0;

int totalSolutions = 1;

boolean inSequence = false;

//flag to check whether there are any sequences present.

//if not, there is one solution rather than 0

char prevChar = 'x';

char follChar = 'y';

int i = 0;

char[] chars = base.toCharArray();

//handle starting sequence if present

while (i < chars.length && chars[i] == '?') {

   curSequence++;

   i++;

}

if (curSequence > 0) {

   //exclusively ?'s needs to be treated even differently

   if (i < chars.length)

       totalSolutions *= (curSequence > 1) ? 3 * solveSequence(curSequence - 1, false) + solveSequence(curSequence - 1, true) : 3;

       curSequence = 0;

   } else {

       //result is 4*3^(length-1)

       totalSolutions = 4* ((int) Math.pow(3, chars.length-1));

   }

}

//check for sequences of question marks

for (; i < chars.length; i++) {

   if (chars[i] == '?') {

       if (!inSequence) {

           inSequence = true;

           prevChar = chars[i - 1];

           //there is at least one sequence -> set flag

       }

       curSequence++;

   } else if (inSequence) {

       inSequence = false;

       follChar = chars[i];

       totalSolutions *= solveSequence(curSequence, prevChar == follChar);

       curSequence = 0;

   }

}

//if it does, handle edge case like in the beginning

if (inSequence) {

   //if length is 1 though, there are just 3 solutions

   totalSolutions *= (curSequence > 1) ? 3 * solveSequence(curSequence - 1, false) + solveSequence(curSequence - 1, true) : 3;

}

return totalSolutions;

}//end DNAChains

private static int solveSequence(int length, boolean prevFollEqual) {

if (prevFollEqual) {

   //anchor

   if (length == 1) {

       return 3;

   } else {

       return 3 * solveSequence(length - 1, false);

   }

} else {

   //anchor

   if (length == 1) {

       return 2;

   } else {

       return 2 * solveSequence(length - 1, false) + solveSequence(length - 1, true);

   }

}

}//end solveSequence

An instance method is defined?

A section of code known as an instance method is executed on a particular class instance. A receiver object is used when calling it.

What is a case method? Is a piece of code known as an instance method called on a particular instance of an object of a class?

A piece of code known as an instance method relies only on the generic class and no particular instances (objects). By generating private fields, an instance method enhances a class's capabilities.

To know more about constructor's visit:-

https://brainly.com/question/29999428

#SPJ4

what should you do if you accidentally end up on an inappropriate website

Answers

Answer:

close it and clear history quickly....

Explanation:

Determine if true or false Goal Seek immediately attempts to apply the function to the adjacent cells.

Answers

Answer:

The answer is "False".

Explanation:

This function the part of Excel, that allows a way to resolve the desirable result by manipulating an underlying expectation. This function is also called What-if-Analysis, which is used to test, and an error approach to address the problem by linking guesses before the answer comes.  On the Data tab, throughout the Data Tool category, and select Target Check it provides a    reference that includes a formula to also be solved throughout the Set cell box.

What is the LER for a rectangular wing with a span of 0. 225m and a chord of 0. 045m

Answers

Lift-to-drag ratio (LER) is a measure of the amount of lift generated by an aircraft's wings for every unit of drag produced. The LER is a measure of a wing's efficiency.

LER is calculated by dividing the wing's lift coefficient by its drag coefficient. The LER for a rectangular wing with a span of 0.225m and a chord of 0.045m is given below:Area of the wing = span x chord. Area of the wing = 0.225 x 0.045 Area of the wing = 0.010125 m²Lift Coefficient (CL) = 1.4 (The lift coefficient for a rectangular wing with an aspect ratio of 5)

Drag Coefficient (CD) = 0.03 + (1.2/100) x (5)²Drag Coefficient (CD) = 0.155 LER = CL/CD LER = 1.4/0.155 LER = 9.03 The LER for a rectangular wing with a span of 0.225m and a chord of 0.045m is 9.03.

To know more about aircraft visit:

https://brainly.com/question/32264555

#SPJ11

the ending inventory valuation using the fifo cost flow method is made up of

Answers

The ending inventory valuation using the FIFO (First-In, First-Out) cost flow method is made up of the most recently acquired items in the inventory.


In the FIFO cost flow method, the assumption is that the oldest items in the inventory are sold first, and the newest items remain in the ending inventory. Therefore, the ending inventory valuation will reflect the costs of the most recently acquired items. This ensures that the inventory is valued at the most up-to-date cost, which is useful for financial reporting and decision-making purposes.

To calculate the value of the ending inventory using FIFO, you would take the quantity of the most recent purchases or production and multiply it by the corresponding unit cost. This would be done for all the items that were acquired most recently and still remain in inventory at the end of the accounting period.

Learn more about FIFO visit:

https://brainly.com/question/31678641

#SPJ11

Write this name in your handwriting on a piece of paper best handwriting gets branilist

Write this name in your handwriting on a piece of paper best handwriting gets branilist

Answers

Cursive and continuous cursive are often considered to be the best handwriting styles for students to learn.

Which handwriting style is best?

The two handwriting techniques that are generally regarded as the finest for students to acquire are cursive and continuous cursive.

Narrow right margins, a clear right slant, and lengthy, tall T-bars are all common writing characteristics. Other characteristics of the writers of the writing were also revealed by other handwriting characteristics.

Even writing with a pen and paper requires the use of muscle memory. Writing nicely will be more difficult for you if you don't regularly practise. Your handwriting will get much better if you spend 10 to 15 minutes each day writing neatly and slowly.

There are three of them: print, pre-cursive, and cursive.

1. Cursive

2. Pre-cursive

3. Print

To learn more about handwriting refer to:

https://brainly.com/question/1643608

#SPJ1

a network of related values on which choices of what is right are based is called

Answers

The term that describes a network of related values on which choices of what is right are based is an ethical framework.

What is the term for a network of related values that serve as the basis for ethical decision-making?

A network of related values on which choices of what is right are based is called an ethical framework.

An ethical framework refers to a system or structure of interconnected values, principles, and beliefs that guide and inform decision-making processes regarding what is considered right or morally acceptable in a given context.

It serves as a foundation for assessing and determining appropriate courses of action based on ethical considerations.

Within an ethical framework, values play a central role in shaping individual or collective judgments about right and wrong.

These values may include concepts such as fairness, justice, integrity, empathy, and respect, among others.

The interconnections among these values create a network that helps individuals or groups navigate complex moral dilemmas and make ethical choices.

An ethical framework provides a structure for evaluating ethical questions and dilemmas, enabling individuals to consider different perspectives, weigh potential consequences, and align their decisions with their personal or organizational values.

It serves as a guidepost for ethical reasoning and decision-making processes.

Learn more about ethical framework

https://brainly.com/question/10876122

#SPJ11

Logical operators, primarily the OR and AND gates, are used in fault-tree diagrams (FTD). The terminology is derived from electrical circuits. With the help of the symbol diagram used in FTD, state any (4) four logical operators

Answers

Logical operators are used in fault-tree diagrams to express combinations of events that can cause a particular event to occur. Here are four logical operators used in FTDs along with their symbol diagrams:

1. AND Gate: This gate denotes that an event occurs if and only if all of the inputs are active. It is represented by the following symbol:

2. OR Gate: This gate denotes that an event occurs if and only if one or more of the inputs are active. It is represented by the following symbol:

3. Inhibition Gate: This gate denotes that an event will not occur if its input is active. It is represented by the following symbol:

4. PRIORITY AND Gate: This gate denotes that an event occurs if and only if all of the inputs are active, but only if a specified priority sequence is satisfied. It is represented by the following symbol:

These are the four logical operators used in FTDs.

To know more about Logical Operators visit:

https://brainly.com/question/13382082

#SPJ11

What are characteristics of fluent readers? Check all that apply. reading known words automatically pronouncing words correctly reading words as quickly as possible understanding the meanings of the words being read O looking up all unknown words in the text being read

it's A,B,D​

Answers

Answer:

D,A,B hope this is it!!!!!

Answer:

The person above me is correct

Explanation: credit to him

John swims 3 laps every 2 minutes,
Kate swims 5 laps every 3 minutes.
Who swims faster?
Make a table or draw a picture to help you answer the question.
O John
O Kate
Please hurry!!

Answers

Kate is the answer I hope you get it right

Answer:

kate  

Explanation:

because in six mins she has went 10 laps and the other has only 9

Which of these is NOT an area that the documentary experts envisioned interaction design moving into?

a.
Internet of Things

b.
E-commerce

c.
Medical

d.
Social change

Answers

Social change is not an area that the documentary experts envisioned interaction design moving into.

Interaction design is a field that focuses on creating meaningful and engaging experiences for users when they interact with digital products, systems, or services.

Over the years, interaction design has expanded its reach into various domains and industries, exploring new ways to improve user experiences and address specific needs.

The areas where interaction design has been envisioned to have a significant impact include:

Internet of Things

E-commerce

Medical

Social change while interaction design can contribute to social change indirectly by designing user experiences that support social causes or platforms for social activism, it is not typically considered as a primary domain for interaction design

To learn more on Interaction design click:

https://brainly.com/question/14530735

#SPJ4

what is the name of html command? ​

Answers

Here are some.

<html></html> This is the root element tag. ... <head></head> ... <title></title> ... <body></body> ... <h1></h1> ... <p></p> ... <a></a> ... <img></img>hope it helps.stay safe healthy and happy....

computer scientists are great at reading data and crunching numbers to draw conclusions. we live in a data-rich world that offers more information than has ever been present before. companies often do not hire computer scientists on their own and will often group the computer science experts with team members from other fields. which of the following is the best reason for a computer scientist to work with someone outside their field? elimination tool select one answer a create optimal algorithms. b explain the meanings of headers on data. c write documentation. d collaborate to draft the main goals of a project.

Answers

Given that computer scientists are great at reading data and crunching numbers to draw conclusions the best reason for a computer scientist to work with someone outside their field is: " collaborate to draft the main goals of a project." (Option D)

Why are the goals of a project essential to a computer scientist?

Before the inception of any project, it is important to establish the goal. This is not different with IT-related projects. This is the reason why computer scientists must collaborate with professionals that are outside of their field.

Setting goals is an important aspect of planning for personal transformation and achieving project objectives. Well-written objectives motivate, concentrate attention, and provide as a foundation for controlling performance and assessing improvement.

The first are project result objectives. These are the task statements that must be fulfilled in order for the project to be regarded "complete." The second type of project management performance objective is high-level project management performance goals that relate to the overall performance of the team and project manager.

Learn more bout computer scientists:
https://brainly.com/question/27127548
#SPJ1

How many TTY consoles are available in CentOS?
A. 8
B. 5
C. 2
D. 6
E. 1

Answers

CentOS provides access to 6 TTY consoles. TTY, or terminal access interface, is a term used in the Linux community. The teletypewriter apparatus, first used in the middle of the nineteenth century, is what the abbreviation TTY originally stood for.

The written characters were transferred as electrical signals by this gadget to remote devices like printers. Later, when mainframe computers needed input and output devices, these teletypewriters efficiently performed that purpose: These ttys could be physically attached to a serial port or could be virtual terminals. They essentially serve as an abstraction for interfaces that transmit and receive character data from the main computer system.

In Linux, there is a pseudo-teletype multiplexor that manages connections from all of the pseudo-teletypes in the terminal windows (PTS). The PTS are the slaves, and the multiplexor is the master. The device file at /dev/ptmx is used by the kernel to address the multiplexor.

The name of the device file that your pseudo-teletype slave is using to communicate with the master will be printed by the tty command. And that actually serves as the terminal window's number.

To learn more about CentOS click here:

brainly.com/question/30019432

#SPJ4

javascript and vbscript are _____, which provide commands that are executed on the client. a. scripting languages b. web bugs c. plug-ins d. session cookies

Answers

The correct answer is option a. scripting languages. Both JavaScript and VBScript are scripting languages that provide commands that are executed on the client side.

These languages are used to make web pages more interactive and dynamic. JavaScript is a popular scripting language used on the web, while VBScript is used primarily on Windows platforms. Both of these languages allow for the creation of dynamic content and the ability to interact with the user.  

Scripting languages are programming languages that are used to create dynamic web applications. Then the correct answer is the option a.

Learn more about Scripting languages https://brainly.com/question/26103815

#SPJ11

Write a program that takes a date as input and outputs the date's season in the northern hemisphere. The input is a string to represent the month and an int to represent the day. Note: End with a newline.

Answers

A program that takes a date as input and outputs the date's season in the northern hemisphere will bear this order

cout << "Winter"

cout << "Spring"

cout << "Summer"

cout << "Autumn"

Complete Code below.

A program that takes a date as input and outputs the date's season in the northern hemisphere

Generally, The dates for each season in the northern hemisphere are:

Spring: March 20 - June 20Summer: June 21 - September 21Autumn: September 22 - December 20Winter: December 21 - March 19

And are to be taken into consideration whilst writing the code

Hence

int main() {

string mth;

int dy;

cin >> mth >> dy;

if ((mth == "January" && dy >= 1 && dy <= 31) || (mth == "February" && dy >= 1 && dy <= 29) || (mth == "March" && dy >= 1 && dy <= 19) || (mth == "December" && dy >= 21 && dy <= 30))

cout << "Winter" ;

else if ((mth == "April" && dy >= 1 && dy <= 30) || (mth == "May" && dy >= 1 && dy <= 30) || (mth == "March" && dy >= 20 && dy <= 31) || (mth == "June" && dy >= 1 && dy <= 20))

cout << "Spring" ;

else if ((mth == "July" && dy >= 1 && dy <= 31) || (mth == "August" && dy >= 1 && dy <= 31) || (mth == "June" && dy >= 21 && dy <= 30) || (mth == "September" && dy >= 1 && dy <= 21))

cout << "Summer" ;

else if ((mth == "October" && dy >= 1 && dy <= 31) || (mth == "November" && dy >= 1 && dy <= 30) || (mth == "September" && dy >= 22 && dy <= 30) || (mth == "December" && dy >= 0 && dy <= 20))

cout << "Autumn" ;

else

cout << "Invalid" ;

return 0;

}

For more information on Programming

https://brainly.com/question/13940523

What are three tasks that space technology can assist humans with when studying Earth remotely?

Answers

Answer:

Finding life on new planets? Finding new galaxies!! Studying other planets like mars!!!

Explanation:

Please brainliest this!!!

You can increase the range of a projectile by _____ the launch height.


decreasing

increasing

stabilizing

ignoring

Answers

You can increase the range of a projectile by increasing the launch height.

How do you increase the scope of a projectile?

The range of a projectile can be  increased so as to be able  to cover a long distance.

For one to be able to so this, one must increase the range of the velocity of the projectile as the The launch angle is the one that helps to know the range and maximum height of that object.

Learn more about projectile from

https://brainly.com/question/24216590

Describe the constructs and techniques available in different programming languages, explain how they are implemented and documented, contrasting their implementation in different programming languages

Answers

Different programming languages provide various constructs and techniques to facilitate the development of software applications.

These constructs and techniques differ in their implementation and documentation across programming languages. Here are a few examples:

Control Structures:

Implementation: Control structures, such as if-else statements and loops, allow programmers to control the flow of execution in their programs. These structures are implemented using specific syntax and rules defined by each programming language. For example, in Python, an if-else statement is written as "if condition: statements else: statements".

Documentation: Programming languages typically provide official documentation that explains the usage and syntax of control structures. Documentation may include examples, explanations, and rules for using control structures effectively.

Data Structures:

Implementation: Data structures like arrays, lists, and dictionaries enable programmers to organize and manipulate data efficiently. Each programming language has its own implementation details for these data structures, including syntax, built-in functions, and memory allocation strategies.

Documentation: Official documentation for programming languages often includes detailed explanations of data structures, their operations, and examples of usage. It provides information on syntax, available methods, and their complexity for optimal utilization.

Object-Oriented Programming (OOP):

Implementation: OOP enables modular and organized software development through classes, objects, inheritance, and polymorphism. Different programming languages have varying approaches to implementing OOP.

Documentation: Programming languages with OOP capabilities provide documentation that covers the concepts and features of OOP, including class definitions, object creation, inheritance, and method overriding. The documentation guides programmers on utilizing OOP principles effectively within the language's syntax and conventions.

Error Handling:

Implementation: Error handling mechanisms vary across programming languages. Some languages utilize try-catch blocks, such as in Java and C#, to handle exceptions and provide error recovery. Others, like Python, use exception handling with the try-except syntax. Error handling implementation includes specifying error types, defining custom exceptions, and handling exceptional situations in code.

To learn more about programming, click here:

https://brainly.com/question/16936315

#SPJ11

Under each animal’s list, add a picture of the animal. If you cannot find a picture of the exact animal, find a picture of a closely related animal. Be sure to cite any pictures that you use.

Then, give each image an ID. Remember that ID’s should be unique! Using the ID’s, give each picture a different border using the border-style attribute.

Question: How do I add any border to individual img src tags?

Answers

Answer:

Explanation:

To add a border to individual img src tags, you can use the border-style attribute. This attribute has a few different options, such as solid, dotted, dashed, double, and more. To apply a border to an individual image, you would need to give each image an ID (such as "image1", "image2", etc.), and then add the border-style attribute to the ID. For example, if you wanted to give the image with the ID "image1" a solid border, you would add the following code to the img src tag: id="image1" border-style="solid". You can also use the border attribute to adjust the width of the border, or the color attribute to change the color of the border. Additionally, if you are using an online image, make sure to cite the source to ensure you are not infringing on any copyright laws.

what does good time management mean​

Answers

Answer:

When you are consistent with your work and not wasting time

Explanation:

Time management to me means using your time wisely and thing you have to get done do those things first before doing something that is not a must. Being wise with your time will help you complete goals and more in life.

Have a good day and a merry Christmas
Other Questions
ILL GIVE BRAINILEST PLEASE HELP Madam Lim consumes only two goods: Kopi (good x) and Kuih (good y).' Her utility over the two goods is given by U(x,y) = ln x + 2 In y. Madam Lim is a retiree and has no income. However, her dutiful daughter-in-law, Priscilla, gives her an allowance every week to spend on the two goods. The price of Kuih remains at $1 each through out this exercise. (a) In Week 1, Kopi costs $1 each. Madam Lim has an allowance of $36. Find her utility maximising consumption bundle in Week 1. Calculate also the utility she achieves at her optimal consumption bundle. (For now, leave utility in In()). (b) In a diagram with Kopi on the z-axis and Kuih on the y-axis, draw Madam Lim's Week 1 budget line. Label the optimal bundle you have found in part (a) and sketch the indifference curve passing through it. (c) In Week 2, the price of Kopi increases to $2. Suppose Priscilla is still giving Madam Lim $36, how many Kopi and Kuih will Madam Lim consume? Draw the budget line associated with this price and income on your diagram in part (b), and label the consumption bundle you have found. (d) How much does Priscilla have to give to Madam Lim in Week 2 so that Madam Lim can afford her Week 1 bundle? A large corporation would like to borrow a large amount of money for its new expansion project. Instead of asking for a bank loan, it decided to borrow in the open market by selling a large number of corporate bonds. The price received from selling each bond becomes a "mini loan" that will then need to be repaid over a number of years. And so the corporation has just issued 4 percent coupon bonds with $1,000 face value. These bonds will mature in 13 years, and until then they will be making semiannual payments to their holders. The yield to maturity on these bonds is 11 percent. Given these bond characteristics, how much should each of these bonds be selling for in today's market? The predetermined overhead rate is calculated ______. Multiple choice question. as soon as actual overhead is known as the period progresses before the period begins after the period is over SOLVE THIS FOR ME! I WILL MARK U BRAINLEST! How did John Brown and his actions in Kansas and at Harper's Ferry effectfeelings of slave owners/white southerners? 5. Three lines are drawn so that they all intersect at a common point. In the figure below, m41=x, mL2 = 2x, and m43 = 75.Which equations can be used to determine the value of x?Select all that apply.A. 3x = 75B. 3x =105C. 3x = 255D. 3x + 75 = 180E. x + 2x + 75 =180F. x + 2x + 3x = 360 To calculate a Riemann sum for a function f() on the interval (-2, 2) with n rectangles, the width of the rectangles is: Select 1 of the 6 choices 2 - Select the plant cell Of all the mutations that occur in a population, why do only a small fraction become widespread among the population's members? What did Andrew Carnegie's father do for a living? Suppose 47 cars start at a car race. In how many ways can the top 3 cars finish the race? wha are the 5 levels of Organization in the Human Body Are e-cigarettes a reliable cessation aid? Or an attempt from tobacco companies to find a new way into the market? 1. Important question: Go to the Internet. Search the national AND international market for trucks that Mahmoudco Furnishings could buy. To shorten your search, choose among Honda, Toyota, Hyundai/Kia, Nissan, Mitsubishi, and/or ANY 3 BRANDS YOU WANT. Go through the 8 steps for business purchase like the example in class, as it applies to this case. REFER TO THE BOOK FOR MORE DETAILS. Listing the steps gets you a ZERO. You must explain each step as it applies to the case (similar to example class). List 4-5 criteria you would choose to compare them on, and do it. In the end, tell me which vehicles YOU would choose.(4 points) NOTE: PICKUP TRUCKS ARE NOT A CHOICE. DO NOT PUT PICKUP TRUCKS. PICKUP TRUCKS DO NOT QUALIFY. IF YOU CHOOSE PICKUP TRUCKS, YOU WILL RECEIVE A LOW GRADE A non-polar molecule that has a dipole moment induced by the motion of its electrons: inter-molecular force hydrogen bond london dispersion force dipole-dipole bond instantaneous dipole moment Someone please help answer completely ! The Willis Tower in Chicago has an observation deck 412 m above ground.How far can you see out over Lake Michigan from the observation deck? What is the name of the disaccharide shown below that is formed by joining hwo monomers of D-glucose? The impact of radiation on plants was first recognized using:.RiceOB.WheatO C.BarleyOD.Corn