When an object is passed as an argument, ________ is passed into the parameter variable.

Answers

Answer 1

A class method is similar to an instance method, except its first argument is a class object.

Remember that when an instance method is called from an instance object, the instance object is automatically supplied as the method's first argument. A parameter variable is a variable that is only available to the function that gets the argument. That is, the value of the argument is copied into the parameter variable. A constructor is a method that is invoked at the start of an object's lifecycle to create and initialize the object, which is known as creation (or instantiation). The acquisition of resources may be part of the initialization process. In most languages, constructors may contain parameters but do not typically return values.

Learn more about variable here-

https://brainly.com/question/13375207

#SPJ4


Related Questions

What does the Finder do?


locates files

organizes computer folders and files

opens applications

empties the Trash

deletes files

turns off the computer

Answers

locate files , open applications

what is a problem that occurs when someone registers purposely misspelled variations of well-known domain names?

Answers

Answer:

Typosquatting

Explanation:

epic poem - long narrative poem about heroic deeds about pharrell williams of the happy song please help i need the right answer

Answers

"Happy" is a song written, produced, and performed by American singer Pharrell Williams, released as the first and only single from the soundtrack album for the film Despicable Me 2 (2013). The song was first released on November 21, 2013, alongside a long-form music video. The song was reissued on December 16, 2013, by Back Lot Music under exclusive license to Columbia Records, a division of Sony Music.[1] The song also served as the lead single from Williams' second studio album, Girl (2014).

"Happy" is an uptempo soul and neo soul song on which Williams's falsetto voice has been compared to Curtis Mayfield by critics. The song has been highly successful, peaking at No. 1 in the United States, United Kingdom, Canada, Ireland, New Zealand, and 19 other countries. It was the best-selling song of 2014 in the United States with 6.45 million copies sold for the year,[3] as well as in the United Kingdom with 1.5 million copies sold for the year.[4] It reached No. 1 in the UK on a record-setting three separate occasions and became the most downloaded song of all time in the UK in September 2014;[5] it is the eighth highest-selling single of all time in the country.[6] It was nominated for an Academy Award for Best Original Song. A live rendition of the song won the Grammy Award for Best Pop Solo Performance at the 57th Annual Grammy Awards.

The music video for "Happy" was nominated for Best Male Video and Video of the Year at the 2014 MTV Video Music Awards. It also won the Grammy Award for Best Music Video at the 57th Annual Grammy Awards.[7][8] The song was Billboard's number-one single for 2014.

"Happy" was the most successful song of 2014, with 13.9 million units (sales plus equivalent streams) worldwide

what other tool might you have been able to use to identify the matching ends for each ethernet cable

Answers

The tool might you have been able to use to identify the matching ends for each ethernet cable is: cable tester.

A cable tester is an easy and reasonably priced equipment to keep in your work bag. This will enable you to do a continuity check on a cable from one end to the other. It can determine whether there are possibly missing pins on both sides of the cable. There are no moving parts in an SSD disk. Data is stored on flash memory, which offers superior performance and dependability over an HDD. Due to its moving components and magnetic platters, HDDs wear down and fail more quickly as time goes on.

Learn more about cable tester: https://brainly.com/question/15183556

#SPJ4

Unit 6 - creating and editing a podcast quiz

"note: this is a true/false quiz.

a podcast is a digital audio recording that features one or more speakers discussing a specific topic.

the first thing to do when planning to record a podcast is to decide where you want to publish your podcast.

you should try to record your podcast all at one time without stopping.

it's important to stop and start over each time you make a mistake while recording.

audacity is a good site to edit audio.

Answers

A podcast is a digital audio recording featuring one or more speakers discussing a specific topic, which is true. When planning to record a podcast, the first thing to do is not decide where to publish it, but rather determine the content and format, making this statement false.

It is not necessary to record your podcast all at once without stopping, as you can edit and splice together different segments, making this statement false. While it is essential to maintain high-quality audio, you do not need to stop and start over each time you make a mistake while recording, as editing software can help you fix minor errors, making this statement false.

Audacity is a popular and effective software for editing audio, which makes this statement true. In summary, understanding the nature of podcasts and using tools like Audacity can help you create a professional and engaging podcast, allowing for a more enjoyable experience for your listeners.

You can learn more about podcasts at: brainly.com/question/15172375

#SPJ11

Use the Formula Bar to compare the contents of cell G5 and cell G20. Apply bold to the cell that contains a value instead of a formula

Answers

After selecting cell H6, select cell H20. Click Bold under the Font group on the Home tab.

How can I compare the values of two cells in Excel?

Duplicate values can be chosen in the toolbar by navigating to the "Home" option. Go to the Excel Option for Conditional Formatting next. On the screen, a new window with check boxes for "Duplicate" and "Unique" values will emerge. You can compare two columns that have same or different values.

What function does Excel's formula bar serve?

A toolbar called the formula bar can be seen above the Ribbon in our workbook at the top of our worksheet. The formulas bar, often known as the fx bar, shows formulas in an active or current cell, text or number data in  active cell or range of cells in place of a selected data series in an Excel chart.

To know more about Home tab visit:-

https://brainly.com/question/2986242

#SPJ1

Explain the function of cpu what are work done by cu ,alu,and mu

Answers

Answer:

The CPU processes instructions it receives in the process of decoding data.

An arithmetic logic unit (ALU) is a digital circuit used to perform arithmetic and logic operations. It represents the fundamental building block of the central processing unit (CPU) of a computer. Modern CPUs contain very powerful and complex ALUs. In addition to ALUs, modern CPUs contain a control unit (CU). While the memory unit (MU), is the primary memory for holding data. It tells the computer's memory, arithmetic/logic unit and input and output devices how to respond to a program's instructions.

Hope this helps! :)

What number system do people in America use?

Answers

Answer:

Base-10 (decimal)

Explanation:

America uses the imperial system.

The majority of the rest of the world uses the metric system (base 10).

2.6.4: Ice Cream public class IceCream extends ConsoleProgram'

Answers

A software that runs in a command prompt window is referred to as a console application.

public class IceCream extends ConsoleProgram

{

public void run()

{

boolean HELADOO= readBoolean ("Do you like ice cream?");

System.out.println(HELADOO);

}

}

Although console applications lack the flash and event-driven features of a Windows application, they nonetheless have their uses. For instance, a device with a very basic display type or one with a restricted amount of screen real estate, like a bank ATM.

In console programmes, the System.Console1 class contains both input and output statements. The WriteLine method is the class method that is most commonly used to generate console output.

Note that the WriteLine method additionally adds a CRLF (carrier return/line feed) after the string parameter. With the exception of the CRLF, the comparable Console.Write method functions similarly to WriteLine.

Learn more about Application here:

https://brainly.com/question/28650148

#SPJ4

You want to build a computer that is designed to stand upright on a desk and takes up the least amount of space possible, but still capable of two expansion slots. Which type of computer would you select?

Answers

Answer:

Micro ATX slim tower.

This is a special type of thin computer that has good processing and satisfies people who want less space taken up.

Nelson’s Hardware Store stocks a 19.2-volt cordless drill that is a popular seller. The annual demand is 5,000 units, the ordering cost is $15, and the inventory holding cost is $4/unit/year
What is the economic order quantity?
What is the total annual cost for this inventory item?

Answers

The total annual cost for Nelson's Hardware Store's cordless drill inventory item is approximately $774.60.

To determine the economic order quantity (EOQ) and total annual cost for Nelson's Hardware Store's cordless drill inventory item, we need to consider the annual demand, ordering cost, and inventory holding cost. The EOQ represents the optimal order quantity that minimizes the total cost of inventory management. The total annual cost includes both ordering costs and inventory holding costs.

The economic order quantity (EOQ) can be calculated using the formula:

EOQ = sqrt((2 * Annual Demand * Ordering Cost) / Holding Cost per Unit)

Given:

Annual demand = 5,000 units

Ordering cost = $15

Inventory holding cost = $4/unit/year

Using the given values, we can calculate the EOQ:

EOQ = sqrt((2 * 5,000 * 15) / 4) = sqrt(37,500) ≈ 193.65

Therefore, the economic order quantity for the cordless drill is approximately 194 units.

To calculate the total annual cost, we need to consider both the ordering cost and the inventory holding cost. The total annual cost can be calculated using the formula:

Total Annual Cost = (Ordering Cost * Annual Demand / EOQ) + (Holding Cost per Unit * EOQ / 2)

Substituting the given values into the formula:

Total Annual Cost = (15 * 5,000 / 194) + (4 * 194 / 2) ≈ 386.60 + 388 ≈ $774.60

Therefore, the total annual cost for Nelson's Hardware Store's cordless drill inventory item is approximately $774.60.


To learn more about inventory click here: brainly.com/question/31552490

#SPJ11

What is Xenophobia? *
The fear of a person or group that is different from you.
O
Messages that challenge extremism or stereotypes.
O
When someone holds extreme political or religious views.
O
Using digital devices, sites and apps to intimidate, harm and upset someone.

Answers

It’s A, The fear of a person or group that is different from you.

Which of the following applies to a trademark?
o belongs to just one company or organization
O always shown on the outside of a garment
O a way for people to copy a pattern
0 a mark that represents a product's "sold"
status

Answers

Answer:

a

Explanation:

Answer:

belongs to just one company or organization

Explanation:

edge 2021

Write a function to take three integers x, y and n and check if x and y are both fall between 0 to n-1. If yes, your function should return 1, otherwise return 0. In your main function, ask the user to enter the value for x, y and n and tell the result to the user

Answers

Answer:

statement. int [] data= {7, -1, 13, 24,6};

Explanation:

30 points and brainiest Which certifications are offered in Family Consumer Science? (Select 2) Select 2 correct answer(s)
Question 2 options:

Community Health Worker

Early Childhood Education

Food Handler's

Counseling

Answers

The certifications are offered in Family Consumer Science are option B and C:

Early Childhood EducationFood Handler's

What is the certifications  about?

Family Consumer Science is a field that focuses on the study of how families interact with the broader community and economy. Some of the certifications offered in Family Consumer Science include:

Early Childhood Education: This certification is designed for individuals who wish to work with young children, typically from birth to age 8, in settings such as preschools, daycare centers, and primary schools. It covers topics such as child development, teaching methods, and classroom management.

Therefore, in Food Service Management: this certification is designed for individuals who wish to work in the food service industry, such as managing and supervising food service operations in schools, hospitals, restaurants and other food service facilities.

Learn more about certifications   from

https://brainly.com/question/26004231
#SPJ1

Which step in the software development life cycle involves making improvements based on user feedback?
Coding
Design
Maintenance
Testing

Answers

Answer:

The step is Testing oki doki

Answer:

Maintenance

Explanation:

Maintenance

This primarily involves updating and making improvements based on user feedback, as well as resolving any defects that are found.

Do a internet search on executive compensation to determine how CEO's are currently being compensated. Detail your findings and discuss your position on executive compensation. Is executive compensation universally excessive or appropriate?

Answers

Executive compensation refers to the financial compensation and benefits provided to top-level executives, particularly CEOs, in organizations. Internet search results reveal that CEO compensation varies widely depending on factors such as the size and industry of the company, its financial performance, and market trends. CEO compensation typically includes a mix of salary, bonuses, stock options, restricted stock, and other perks.

The debate on executive compensation is multifaceted, with different perspectives on whether it is universally excessive or appropriate. It is important to consider factors such as executive performance, company size, market competition, and stakeholder interests when forming a position on executive compensation.

A search on executive compensation reveals that CEO pay varies significantly across industries and companies. In some cases, CEOs of large corporations receive multimillion-dollar compensation packages that include substantial salaries, performance-based bonuses, stock options, and other benefits. These compensation packages are often justified based on the executive's responsibilities, the company's financial performance, and the competitive market for executive talent.

However, opinions on executive compensation are divided. Critics argue that some CEO pay levels are excessive and not aligned with performance or shareholder value. They believe that such high levels of compensation contribute to income inequality and can lead to a misalignment of incentives between executives and shareholders.

On the other hand, proponents of executive compensation argue that attracting and retaining talented executives is crucial for driving company success. They assert that executive pay is determined by market forces and should reflect the value the CEO brings to the organization. They also emphasize that executive compensation is often tied to performance metrics and that excessive pay outliers are relatively rare.

Forming a position on executive compensation requires considering multiple factors. It is important to evaluate the performance of CEOs in relation to the company's financial results, the industry context, and the interests of various stakeholders, including shareholders, employees, and the broader society. Striking the right balance between rewarding executives for their contributions and ensuring fairness and accountability is a complex challenge that requires ongoing scrutiny and evaluation.



To learn more about metrics click here: brainly.com/question/30905058

#SPJ11

Do any of you guys know what the main problem in E.T is?

Answers

Answer:

At its glowing red heart, E.T. is a film about friendship. Elliott and E.T. are a tightknit pair from wildly different backgrounds, and their bond is grounded in love, loyalty, compassion, teamwork, and even a mysterious cosmic connection.

Balanced Array Given an array of numbers, find the index of the smallest array element (the pivot), for which the sums of all elements to the left and to the right are equal. The array may not be reordered. Example arr=[1,2,3,4,6] the sum of the first three elements, 1+2+3=6. The value of the last element is 6. • Using zero based indexing, arr[3]=4 is the pivot between the two subarrays. • The index of the pivot is 3. Function Description Complete the function balancedSum in the editor below. balanced Sum has the following parameter(s): int arr[n]: an array of integers Returns: int: an integer representing the index of the pivot Constraints • 3sns 105 • 1 s arr[i] = 2 x 104, where Osian • It is guaranteed that a solution always exists.

Answers

The following is the required balanced Sum function that calculates the index of the smallest array element (the pivot) given an array of numbers. It will return the index of the pivot if it exists. Otherwise, it will return -1.```
int balancedSum(vector arr) {
   int leftSum = 0, rightSum = 0;
   for(int i = 0; i < arr.size(); i++) {
       rightSum += arr[i];
   }
   for(int i = 0; i < arr.size(); i++) {
       rightSum -= arr[i];
       if(leftSum == rightSum) {
           return i;
       }
       leftSum += arr[i];
   }
   return -1;
}

The definition of an array in C is a way to group together several items of the same type. These things or things can have data types like int, float, char, double, or user-defined data types like structures. All of the components must, however, be of the same data type in order for them to be stored together in a single array.  The items are kept in order from left to right, with the 0th index on the left and the (n-1)th index on the right.

Know more about array here:

https://brainly.com/question/13261246

#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.

Why do we need to get the minimum and maximum resistance value of resistors?

Answers

To determine if the circuit using them will function probably when the resistor has the related tolerance.

a In a bicycle race, Kojo covered 25cm in 60 s and Yao covered 300m in the same time intercal What is the ratio of Yao's distance to Kojo's? 6. Express the ratio 60cm to 20m in the form I in and hen

Answers

(5) In a bicycle race, Kojo covered 25cm in 60 s and Yao covered 300m in the same time interval the ratio of Yao's distance to Kojo's distance is 1200:1.(6)The ratio 60 cm to 20 m in the simplest form is 0.03:1 or 3:100.

To find the ratio of Yao's distance to Kojo's distance, we need to convert the distances to the same units. Let's convert both distances to meters:

Kojo's distance: 25 cm = 0.25 m

Yao's distance: 300 m

Now we can calculate the ratio of Yao's distance to Kojo's distance:

Ratio = Yao's distance / Kojo's distance

= 300 m / 0.25 m

= 1200

Therefore, the ratio of Yao's distance to Kojo's distance is 1200:1.

Now let's express the ratio 60 cm to 20 m in the simplest form:

Ratio = 60 cm / 20 m

To simplify the ratio, we need to convert both quantities to the same units. Let's convert 60 cm to meters:

60 cm = 0.6 m

Now we can express the ratio:

Ratio = 0.6 m / 20 m

= 0.03

Therefore, the ratio 60 cm to 20 m in the simplest form is 0.03:1 or 3:100.

To learn more about distance visit: https://brainly.com/question/26550516

#SPJ11

A10:A20 Refer to values in


Cell A10 and cell A20


The cell in column A and row 10


The range of cells in column A and rows 10 through 20


The range of cells in row 15 and columns B through #

Answers

Im trying to solve this problem

A10:A20 Refer to values in The range of cells in column A and rows 10 through 20. Thus the correct option is C.


What is a cell in excel?

The rectangles that make up an Excel worksheet's grid are called cells. A worksheet's references, the column letter, and the row number that intersect at the cell's location serve as a means of identifying each cell.

A, B, and C serve as column numbers, whereas digits serve as row identifiers (1, 2, 3). Depending on the column and row, each cell has a unique name or cell address.

In the given case, the values of A10:A20  is being asked which indicates that In column A the range of cell 10 to 20 is written as A10: A20.In other words, the cell is written as intersection Column  D to Row 5 the cells will be D5.

Therefore, option C is appropriate.

Learn more about Excel, here:

https://brainly.com/question/1380185

#SPJ6

what are some similarity's between NES console and consoles today

Answers

Answer:

what he said

Explanation:

Answer:

bro my question got deleted for no reason

Explanation:

Technician A says that dismounting and mounting a tire is the same process on all modern wheels. Technician B says that the tire pressure monitoring system has changed mounting and dismounting procedures on some vehicles equipped with TPMS. Who is correct?


Tech A

Tech B

Both tech A and B

Neither tech A or B

Answers

Technician B is correct. Dismounting and mounting a tire is not the same process on all modern wheels, and the tire pressure monitoring system has indeed changed mounting and dismounting procedures on some vehicles equipped with TPMS.What is a TPMS?TPMS stands for tire pressure monitoring system.

This system notifies drivers when their tires are underinflated, which is a common cause of vehicle accidents. In general, TPMS uses sensors installed in the tires or in the valves to provide the necessary data.How has TPMS changed mounting and dismounting procedures.

Mounting and dismounting tires on a vehicle equipped with TPMS have some specific requirements. The sensors must be removed from the wheel to change the tire, and then reinstalled on the wheel. These sensors need to be fitted properly to the wheel.

To know more about Dismounting visit:

https://brainly.com/question/4213055

#SPJ11

Omar runs a popular sports bar and grill that is soon to Implement a new point-of-sale software. Which of these represents a learning objective that Omar might set? Multiple Choice - Increase the number of tables who order appetizers.- Decrease food waste by 15%. - Provide all customers with a follow-up survey.- Ensure all employees complete a virtual training on the new software.

Answers

The answer choice that specifically relates to learning about the new point-of-sale software is: D. Ensure all employees complete a virtual training on the new software.

Why is this correct?

The other options are important goals for Omar to strive for, but they do not necessarily relate to learning about the new software.

For example, increasing the number of tables where order appetizers may involve changing the menu or altering the way the waitstaff interacts with customers.

Decreasing food waste may require a re-evaluation of portion sizes or the implementation of new storage practices.

Providing all customers with a follow-up survey is important for obtaining feedback and improving customer satisfaction, but it does not necessarily relate to the implementation of new software.

Read more about POS software here:

https://brainly.com/question/28797014

#SPJ1

JAVA
Write a program that requests the user input positive numbers until they input -1, then prints the sum of all numbers.
Sample run:
Enter positive numbers (-1 to stop)
3
7
8
-1
Sum is 18

Answers

import java.util.Scanner;

public class JavaApplication33 {

   public static void main(String args[]) {

     Scanner scan = new Scanner(System.in);

     int total = 0;

     System.out.println("Enter positive numbers (-1 to stop)");

     while (true){

         

         int num = scan.nextInt();

         if (num == -1){

             break;

         }

         else{

             total += num;

         }

     }

     System.out.println("Sum is "+total);

     

}

}

I hope this helps!

The program is an illustration of loops.

Loops are used to carry out repetition operations; examples are the for-loop and the while-loop.

The program in Java, where comments are used to explain each line is as follows:

import java.util.*;

public class Main

{

public static void main(String[] args) {

    //This creates a scanner object

 Scanner input = new Scanner(System.in);

 //This initializes sum to 0, and declares num

 int sum = 0; int num;

 //This gets input from the user

 num = input.nextInt();

 //The loop is repeated until the user enters -1

 while(num!=-1){

     //This if-condition ensures that, only positive numbers are added

     if(num > 0){

         sum+=num;    

     }

     //This gets another input from the user

     num = input.nextInt();

 }

 //This prints the sum of all positive numbers gotten from the user

 System.out.print(sum);

}

}

The above program is implemented using a while loop

Read more about similar programs at:

https://brainly.com/question/15263759

Analyze the data you’ve been provided to identify themes. Gather the following guiding information:
Review part-replacement frequencies and types and create a hypothesis that can be used by the fleet management team to better deal with vehicle maintenance. You’ll need to create a table called Parts Maintenance and load the data into it. Put this table in the database named after yourself. Load this data set from the ‘/home/codio/workspace’ path and run queries to find the results.
Which parts are being replaced most?
Is there a region of the country that experiences more part failures and replacements than others?
Can you identify a region (Northeast, Southeast, Midwest, Northwest, Southwest) that has more reasons for replacement? Use the Region Definitions sheet to identify states in each region.
How might the fleet maintenance team use the information to update its maintenance schedule? Your response should be supported by the data you’ve found.
Which parts are being replaced most due to corrosion or rust?
Which parts are being replaced because of mechanical failure, like a flat tire or rock through the windshield?

Answers

Note that the above prompt is related to Vehicle Part Failures, Maintenance and Replacements

1) The most often changed parts are the gasoline tank, tires (both repairable and non-repairable), windshield, and batteries, in that order. Because of the perforations, the gasoline tank is the most often changed component. Following that are flat tires that can be repaired and flat tires that cannot be repaired. The windshield is the third most often changed component due to cracks. Finally, battery replacements are required when a battery dies.

2) The Midwest Region has the most part failures and replacements. North Dakota, South Dakota, Kansas, Nebraska, Minnesota, Wisconsin, Iowa, Missouri, Michigan, Indiana, Illinois, and Ohio are included in this area.

3) The information may be used by the fleet maintenance team to improve their maintenance plan by arranging more frequent maintenance visits for cars traveling to the Midwest area. This will be done to reduce the likelihood of part failure.

4) Brake line replacement and fuel tank are parts being replaced most due to corrosion. Parts that are being replaced most due to rust are wheel arch, fender replacement, rocker panel, struts, cab corner panel, and shocks.

5) The parts that are being replaced the most due to mechanical failure are the tires due to flats, windshields due to cracks, and dead batteries.

Why is Vehicle Parts Maintenance and replacement important?

Vehicle parts maintenance and replacement are important because it ensures the proper functioning and safety of the vehicle, extends the lifespan of the vehicle, and helps avoid costly breakdowns and repairs.

Regular maintenance helps identify and fix problems before they escalate, ensuring a smooth and safe driving experience.

Learn more about Vehicle Maintenance:
https://brainly.com/question/6024463
#SPJ1

For this assignment, you will create a calendar program that allows the user to enter a day, month, and year in three separate variables as shown below.

Please enter a date
Day:
Month:
Year:
Then, your program should ask the user to select from a menu of choices using this formatting:

Menu:
1) Calculate the number of days in the given month.
2) Calculate the number of days passed in the given year.
If a user chooses option one, the program should display how many days are in the month that they entered. If a user chooses option two, the program should display how many days have passed in the year up to the date that they entered.

Your program must include the three following functions:

leap_year: This function should take the year entered by the user as a parameter. This function should return 1 if a year is a leap year, and 0 if it is not. This information will be used by other functions. What is a Leap Year? (Links to an external site.)
number_of_days: This function should take the month and year entered by the user as parameters. This function should return how many days are in the given month. (Links to an external site.)
days_passed: This function should take the day, month, and year entered by the user as parameters. This function should calculate the number of days into the year, and return the value of number of days that have passed. The date the user entered should not be included in the count of how many days have passed.
Hints
Start by defining your variables, using comments. You will need a separate variable for day, month, and year that store numbers input from the user.
Make sure to name your three functions exactly as they are named above, and pass the parameters exactly in the order specified below:
leap_year(y)
number_of_days(m, y)
days_passed(d, m, y)
Once you have a function that calculates whether a year is a leap year, that function should be called within your number_of_days() function. February can have either 28 or 29 days, so your number_of_days() function needs to take into account whether or not it is a leap year.
Once you have a function that calculates the number of days in a given month, that function should be called within your days_passed() function. Different months have different numbers of days, so your days_passed() function needs to take into account what month of the year it is.

Sample Run 1
Please enter a date
Day: 5
Month: 5
Year: 1984
Menu:
1) Calculate the number of days in the given month.
2) Calculate the number of days passed in the given year.
1
31

Sample Output 1
Please enter a date
Menu:
1) Calculate the number of days in the given month.
2) Calculate the number of days passed in the given year.
31

Sample Run 2
Please enter a date
Day: 21
Month: 6
Year: 2016
Menu:
1) Calculate the number of days in the given month.
2) Calculate the number of days passed in the given year.
2
172

Sample Output 2
Please enter a date
Menu:
1) Calculate the number of days in the given month.
2) Calculate the number of days passed in the given year.
172

Answers

Answer:

hummm i have the same work i got a A

is this it is

Explanation:

For this assignment, you will create a calendar program that allows the user to enter a day, month, and year in three separate variables as shown below. Please enter a date Day: Month: Year: Then, your program should ask the user to select from a menu of choices using this formatting: Menu: 1) Calculate the number of days in the given month. 2) Calculate the number of days passed in the given year. If a user chooses option one, the program should display how many days are in the month that they entered. If a user chooses option two, the program should display how many days have passed in the year up to the date that they entered. Your program must include the three following functions: leap_year: This function should take the year entered by the user as a parameter. This function should return 1 if a year is a leap year, and 0 if it is not. This information will be used by other functions. What is a Leap Year? (Links to an external site.) number_of_days: This function should take the month and year entered by the user as parameters. This function should return how many days are in the given month. (Links to an external site.) days_passed: This function should take the day, month, and year entered by the user as parameters. This function should calculate the number of days into the year, and return the value of number of days that have passed. The date the user entered should not be included in the count of how many days have passed. Hints Start by defining your variables, using comments. You will need a separate variable for day, month, and year that store numbers input from the user. Make sure to name your three functions exactly as they are named above, and pass the parameters exactly in the order specified below: leap_year(y) number_of_days(m, y) days_passed(d, m, y) Once you have a function that calculates whether a year is a leap year, that function should be called within your number_of_days() function. February can have either 28 or 29 days, so your number_of_days() function needs to take into account whether or not it is a leap year. Once you have a function that calculates the number of days in a given month, that function should be called within your days_passed() function. Different months have different numbers of days, so your days_passed()

How many items are returned from calcAverage()?

public static int calc Average(int a, int b, int c){. . .}

a. 0

b. 1

c. 2

d. 3

Answers

The function named calcAverage takes in three integer parameters and finds their mean value of the three integers which is a single value. Hence, the number of items returned is 1.

The number of values performed when we obtain the mean or average value of a set of values is a single vlaue which represents the measure of spread of the data.

Therefore, the number of items returned from calcAverage() is 1.

Learn more :https://brainly.com/question/13171394

Other Questions
Find the angle of least nonnegative measure, 0c that is coterminal with = -570. 0c is... Elaborate on the systems used at the various levels of management at Amazon? what is the name of the chemicals that allow nerve impulses to cross the synaptic cleft? a.neurotransmitters b.neurons c.autonomic drugs d.presynaptic neurons Which of the following are assumptions used infinancial reporting?A.ProfitabilityB. Cash flowC. Monetary unitD.Going concernE.Periodicity What happens to a protein produced as a result of a point mutation. lower risk for gestational diabetes, reduced bone loss during pregnancy, better sleep, decreased back pain, and improved satisfaction with body image are all outcomes of Question(0)Irrigation water is supplied in units called acre-feet. Suppose that the marginal cost of supplying each acre-foot of irnigation water is $40, and that market demand for irrigation water is P= 100 - 2q. (a) Graph this market. Assume it is perfectly competitive. (b) What is the privately efficient allocation of irrigation water? (c) Calculate market participants ' net benefits. (d) How are net benefits distributed between consumers and producers in this market? a nurse is caring for a client with a warm and painful toe from gout. what medication will the nurse administer? After a robbery, a thief jumps into a taxi and disappears. An eyewitness on the crime scene is telling the police that the cab is yellow. In order to make sure that this testimony is worth something, the assistant district attorney makes a Bayesian analysis of the situation. After some research, he comes up with the following information: (1) In that particular city, 80% of taxis are black and 20% of taxis are yellow; and (2) Eyewitnesses are not always reliable and from past experience, it is expected that an eyewitness is 80% accurate. In other words, he will identify the color of a taxi accurately (yellow or black) eight out of ten times. What is the probability that the cab was really yellow, given that it was reported as being yellow Whoever (ANSWERS ) first will get brainliest!!!IF you DO not show work or any explaining I'm not giving you Brainliest. what does "his words were a dagger thrust deep into heart" mean? ____ causes delayed-onset muscle soreness?A. muscle growthB. a strength increaseC. inflammationD. An effective workout (pennfoster question) words like "fianchetto," "guarde," and "checkmate" that are related to the position of pieces on a chessboard are examples of jargon associated with chess. Select the conjunction that best links the ideas below.Ali Khan got lost on the way to my house; he, however,asked my neighbor for directions.Submit answer Options However ThereforeMeanwhile What is the diameter of a hemisphere with a volume of 9989\text{ cm}^3,9989 cm 3 , to the nearest tenth of a centimeter? Old Tones by Sara TeasdalePART A:Which line from the poem most directly expresses the speakers attitude toward remembering the past?A. "Come to us, go from us, whence no one knows" (line 3) B. "So the old tunes float in my mind," (line 4) C. "I know the laughter and the pain" (line 8) D. "I try to catch at many a tune," (line 10)PART B:Which description supports the answer in Part A?A. She compares her memories to "old tunes" that play in one's mind whether one wishes them or not. B. She says she knows the pain of past times will not return. C. She says the memories "float away" and cannot be held. D. She says she knows the hope of future moments cannot be held. what are chromosomes?A. Strands of DNA wrapped around proteins B. A form of virus that infects cells C. Any organism that contains DNAD. The alleles that cause certain traits What factors that will influence a team member's attitude towardschange? (2 factors) Can someone tell me the answer to this??? compare the paintings of the neolithic period and the cave paintings of the paleolithic period. what is one thing that makes these two types of painting different? a. the paleolithic hunting scenes feature weapons like bows and spears; neolithic paintings do not. b. the neolithic hunting scenes regularly feature human hunters; paleolithic paintings do not. c. the paleolithic paintings show humans in large groups; neolithic paintings do not. d. the neolithic paintings tell a very clear story; paleolithic paintings do not.