Consider the following array of zeros. m=6 A=np. zeros ((m,m)) Use a for loop to fill A such that its (i,j)th element is given by i+j (for example, the (2,3)th element should be 2 + 3 = 5). Do the same task also with a while loop. For for loop varible name is A_for; for while loop variable name is A_while.

Answers

Answer 1

Here's how you can fill the array A using a for loop and a while loop:

Using a for loop:

import numpy as np

m = 6

A_for = np.zeros((m, m))

for i in range(m):

   for j in range(m):

       A_for[i][j] = i + j

Using a while loop:

import numpy as np

m = 6

A_while = np.zeros((m, m))

i = 0

while i < m:

   j = 0

   while j < m:

       A_while[i][j] = i + j

       j += 1

   i += 1

Both of these methods produce the same result. Now the array A_for and A_while will have values as follows:

array([[ 0.,  1.,  2.,  3.,  4.,  5.],

      [ 1.,  2.,  3.,  4.,  5.,  6.],

      [ 2.,  3.,  4.,  5.,  6.,  7.],

      [ 3.,  4.,  5.,  6.,  7.,  8.],

      [ 4.,  5.,  6.,  7.,  8.,  9.],

      [ 5.,  6.,  7.,  8.,  9., 10.]])

Learn more about loop here:

https://brainly.com/question/14390367

#SPJ11


Related Questions

What are the examples of undefined behavior?

Answers

Undefined behavior refers to a situation where the outcome of a program or action is not well-defined or consistent. Examples of undefined behavior include accessing memory beyond the bounds of an array, using uninitialized variables, and dividing by zero.

Other examples may include performing illegal type conversions or relying on implementation-specific behavior in a programming language. It is important to avoid undefined behavior as it can lead to unpredictable results and potentially introduce security vulnerabilities in a program.
examples of undefined behavior. Undefined behavior refers to a situation where a program's outcome is unpredictable or inconsistent due to ambiguous specifications or limitations within a programming language. Some examples of undefined behavior include:

1. Accessing memory that is not allocated or beyond the allocated range, such as reading or writing to an invalid pointer.
2. Division by zero, which is mathematically undefined and can lead to unpredictable results in a program.
3. Using uninitialized variables, as their initial values are not defined and can contain any arbitrary data.
4. Multiple modifications of a variable in the same expression without a sequence point, which can lead to unclear order of operations and inconsistencies.

In each of these examples, the behavior of the program is undefined because it depends on factors that are not clearly specified or controlled by the programming language, leading to unpredictable and potentially harmful outcomes.

To know more about programming language, click the below link

brainly.com/question/23959041

#SPJ11


What is the difference between a mechanical and electronic computer?

Answers

The main difference between a mechanical and electronic computer is their composures. A mechanical computer is made from mechanical materials such as gears, levers, and many other physical features. An electronic computer, on the other hand, is made of electronic materials.

A colored border,with ____________, appears around a cell where changes are made in a shared worksheet .

a) a dot in the upper left-hand corner
b) a dot in the lower-hand corner
c) a cross in the upper left-hand corner
d) a cross in the upper right-hand corner

Answers

A colored border, with a cross in the upper left-hand corner, appears around a cell where changes are made in a shared worksheet . (Option

What is a Shared Worksheet?

A shared worksheet is a Microsoft Excel file that can be accessed and edited by multiple users simultaneously.

Thus, the border is an indication that the cell has been changed, and the cross in the upper left-hand corner represents the user who made the change. Other users who are currently viewing the shared worksheet will see the colored border and cross to indicate that changes have been made. This feature helps to facilitate collaboration and prevent conflicting changes in shared worksheets.

Learn more about Shared Worksheet:
https://brainly.com/question/14970055
#SPJ1

What are the Attitude Control System Errors
that impacted the TIMED NASA mission?

Answers

The Attitude Control System (ACS) is a system that governs the spacecraft's position and orientation in space. When it comes to the TIMED mission, the Attitude Control System (ACS) had two major issues, which are elaborated below:1. A pitch rate gyro drift: It was discovered that one of the pitch rate gyros was affected by a constant drift, which was most likely caused by radiation exposure.

This resulted in attitude estimation errors, which meant that the spacecraft was pointed in the wrong direction.2. An ACS magnetic sensor failure: A sudden voltage spike caused a magnetic sensor's permanent failure, which then resulted in large attitude errors. The ACS magnetic sensor is an important component of the ACS since it determines the spacecraft's orientation in space.

The sensor in question was unable to estimate the correct magnetic field vector and, as a result, could not calculate the spacecraft's orientation correctly. Both the pitch rate gyro drift and the magnetic sensor failure led to the spacecraft's inability to maintain its orientation in space.

To know more about orientation  visit:-

https://brainly.com/question/31034695

#SPJ11

what is robotic technology

Answers

Answer:

according to britannica :

"Robotics, design, construction, and use of machines (robots) to perform tasks done traditionally by human beings. ... Robots are widely used in such industries as automobile manufacture to perform simple repetitive tasks, and in industries where work must be performed in environments hazardous to humans"

Explanation:

Select the correct answer. Joe always misspells the word calendar. He types the word as calender but the correct spelling appears on the document. Which feature of the word processor corrects this word? A. AutoCorrect B. Spell Check C. Grammar Check D. Change

Answers

The answer would be A.)

the bookstore sold 8 books for $66 at that rate how much was one book

Answers

8x=66

8x/8 = 66/8

x=8.25$

The process of identifying and eliminating bugs in a software program is most generally called reproducing the problem. diagnosing. debugging. troubleshooting.

Answers

The correct answer is Option C

debugging

Answer:

While the other options are procedures of debugging, the overall concept of debugging is the correct option

C -  Debugging

45 points!

What is the full form of PNG and GIF?
The full form of PNG is
and GIF is ______

45 points!What is the full form of PNG and GIF?The full form of PNG isand GIF is ______

Answers

Full form of PNG is Portable Network Graphics

Full form of GIF is Graphics Interchange Format

Hope it helps

Answer:

\(png = > portable \: network \: graphic(a \: file \: format) \\ gif = > graphics \: interchange \: format(bitmap \: image \: format) \\ thank \: you\)

Top-down programming divides a very large or complex programming task into smaller, more manageable chunks.
true
false

Answers

Answer:

A

Explanation:

Top-down is a programming style, the mainstay of traditional procedural languages, in which design begins by specifying complex pieces and then dividing them into successively smaller pieces.

Answer:

True

Explanation:

4
Select the correct answer from the drop-down menu.
Which two technologies support the building of single-page applications?
and
are two technologies helpful in building single page applications.
Reset
Next

4Select the correct answer from the drop-down menu.Which two technologies support the building of single-page

Answers

Answer:

DROP DOWN THE MENUS PLEASE SO WE CAN ACTUALLY ANSWER THE OPTIONS!!

Explanation:

We need to see the questions please!  (  :

Answer:

Angular JS

and

React

Explanation:

I got it right lol

Problem 2 Define a function called iqr(x) that satisfies the following criteria: • Calculates and returns the interquartile range (IQR) of an iterable x • The IQR is the difference (Q3 - Q1) where QI and Q3 are the first and third quartiles • In an even-length list of 2n numbers, Q1 and Q3 are the median of the smallest n numbers and the median of the largest n numbers, respectively • In an odd-length list of 2n + 1 numbers, Q1 and Q3 are the median of the smallest n + 1 numbers and the median of the largest n + 1 numbers, respectively • A dataset with one or fewer numbers has an IQR of O You may assume x contains only numeric elements Examples: In : iqr([1, 2, 3, 4, 5]) # Q1 = 2, Q3 = 4 Out: 2.0 In : iqr([1, 2, 3, 4, 5, 6]) # Q1 = 2, Q3 = 5 Out: 3.0

Answers

The function should handle both even and odd-length lists, calculate Q1 and Q3 based on the list size, and return 0 for datasets with one or fewer numbers.

What are the criteria for the iqr(x) function?

The problem statement asks to define a function called `iqr(x)` that calculates and returns the interquartile range (IQR) of an iterable `x`. The IQR is defined as the difference between the first quartile (Q1) and the third quartile (Q3). The function should handle both even and odd-length lists.

In an even-length list of 2n numbers, Q1 is the median of the smallest n numbers, and Q3 is the median of the largest n numbers. In an odd-length list of 2n + 1 numbers, Q1 is the median of the smallest n + 1 numbers, and Q3 is the median of the largest n + 1 numbers.

If the dataset contains one or fewer numbers, the function should return 0 as the IQR.

The examples provided demonstrate the expected behavior of the function by calculating the IQR for given input lists and returning the respective values.

The explanation outlines the requirements and expected outcomes of the `iqr(x)` function in order to calculate the interquartile range.

Learn more about function

brainly.com/question/30721594

#SPJ11

Role playing games have an objective of trying to gain the most points in a certain period of time.
Group of answer choices

True

False

Answers

Answer: I think False.

Which of the following creates a security concern by using AutoRun to automatically launch malware?

Which of the following creates a security concern by using AutoRun to automatically launch malware?

Answers

Answer:

USB device

Explanation:

AutoRun automatically launches malicious software as soon as you insert a USB device

Python String Functions: Create a new Python Program called StringPractice. Prompt the user to input their name, then complete the following:
Length
• Print: “The length of your name is: [insert length here]”
Equals
• Test to see if the user typed in your name. If so, print an appropriate message

Really appreciate the help.

Answers

#Swap this value by your name. Mine is Hamza :)

my_name = "Hamza"

#Get input from user.

inp = input("What's your name?: ")

#Print the length of his/her name.

print("The length of your name is",len(inp),"characters.")

#Check if the input matches with my name?

#Using lower() method due to the case insensitive. Much important!!

if(inp.lower()==my_name.lower()):

   print("My name is",my_name,"too! Nice to meet you then.")

write a function called halfsum that takes as input a matrix and computes the sum of its elements that are in the diagonal and are to the right of it. the diagonal is defined as the set of those elements whose column and row indexes are the same. in other words, the function adds up the element in the upper triangular part of the matrix. the name of the output argument is summa.

Answers

Here's the Python function halfsum that takes a matrix as input and computes the sum of its upper-triangular elements:

def halfsum(matrix):

   rows = len(matrix)

   cols = len(matrix[0])

   summa = 0

   for i in range(rows):

       for j in range(i+1, cols):

           summa += matrix[i][j]

   return summa

Here's an explanation of how this function works:

We start by getting the number of rows and columns in the matrix using the len() function.

We initialize a variable called summa to 0. This variable will store the sum of the upper-triangular elements in the matrix.

We use a nested loop to iterate over all the elements in the matrix that are above the main diagonal. The outer loop iterates over the rows, and the inner loop iterates over the columns.

In each iteration of the inner loop, we check whether the column index is greater than the row index. If it is, then we have an element in the upper triangular part of the matrix, so we add it to summa.

After all the elements in the upper triangular part of the matrix have been summed, we return the value of summa.

Note that this function assumes that the input matrix is a rectangular 2-dimensional list, where all rows have the same number of columns. If the input matrix is not rectangular or has different numbers of columns in different rows, this function may not work correctly.

To know more about Python function, visit: brainly.com/question/28966371

#SPJ4

Which colour scheme and design elements would you choose for a website for a neighbourhood swim team

Answers

F this is not related to math I’d pick light blue or a teal blue with either white or gold

How do i copy a canvas course from old class to new course.

Answers

Answer:

Open Settings. In Course Navigation, click the Settings link.Copy Course Content. Click the Copy this Course link.Create Course Details. ...Select Migration Content. ...Adjust Events and Due Dates. ...Create Course.

Explanation:

Follow The Steps

That's it

HELP!!!
To see the shortcuts on the ribbon in MS Word, hold down the _____ keys at the same time. A) CTRL & X B) Shift & Alt C) Shift & Delete D) CTRL & ALT

Answers

To see the shortcuts on the ribbon in MS Word, hold down the  D) CTRL & ALT keys at the same time.

How can I display keyboard shortcuts in Word?

When you hit Alt, tabs or Quick Access buttons on the ribbon display letters or KeyTips. To open ribbon tabs, use the keyboard shortcuts shown in this table. There may be more KeyTips visible depending on the tab you choose.

Therefore, Control+Alt+Delete is seen as the combination of the Ctrl key, the Alt key, and the Del key that a user can press simultaneously on a personal computer running the Microsoft Windows operating system to end an application task or restart the operating system.


Learn more about shortcuts  keys from

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

in boolean retrieval, a query that ands three terms results in having to intersect three lists of postings. assume the three lists are of size n, m, q, respectively, each being very large. furthermore, assume that each of the three lists are already sorted. what is the complexity of the best possible 3-way merge algorithm? group of answer choices

Answers

The add(object) operation in a sorted list with a linked implementation has a complexity of O(n).

When adding an object to a sorted list, a linear search algorithm is typically used to find the correct position for insertion. The algorithm iterates through the list, comparing the target object with each element until it finds the appropriate location or reaches the end of the list.

Since the linear search requires examining each element in the list, the time complexity grows linearly with the size of the list. In Big O notation, this is denoted as O(n), where n represents the number of elements in the list.

Learn more about complexity of O(n) here:

brainly.com/question/30902272

#SPJ4

Which of the following is not a key component of a structure?
A. Name
B. Properties
C. Functions
D. Enumerations

Answers

Answer:

D i think

Explanation:

Python does not allow if statements to occur within the definition of a function.
True
False
Every HTML document needs to begin with which of the following tags?

Answers

Answer:

1. Python does allow if statements to occur within the definition of a function.

2. Begins with <html> Ends with </html>

What is the collective name for input, output and storage devices?

Answers

The Complete Hardware System
Peripheral equipment includes all input, output, and secondary storage devices

The collective name for input, output, and storage devices is input, processing, output, and garage are together called the: system cycle.

What is IPO?

IPO refers back to the Input – Process – Output model. As the identify suggests, the IPO cycle is the entry & output after the system of the information. People ought to deliver enter first to get output, after which the enter ought to be processed to get the favored outcome.

The systematic system is referred to as a device cycle, which includes six levels: feasibility study, device analysis, device design, programming and testing, installation, and operation and maintenance. The first 5 levels are device improvement proper, and the closing degree is the long-time period of exploitation.

Read more about the storage devices:

https://brainly.com/question/26382243

#SPJ2

the basics of color theory assume what central tenets

Answers

Color has important psychological and visual effects on the audience

What feature does RIPng support that is not supported by RIP?a. IPv6b. gigabit Ethernetc. 32-bit addressesd. supernetting

Answers

RIPng supports IPv6, which is not supported by RIP.

What feature does RIPng support?

The feature supported by RIPng (Routing Information Protocol next-generation) that is not supported by RIP (Routing Information Protocol) is IPv6. RIP is an older routing protocol primarily designed for IPv4 networks, whereas RIPng is an extension of RIP specifically developed to support IPv6 networks.

RIPng enables the routing and exchange of IPv6 routing information among routers, facilitating the deployment of IPv6 networks. It allows routers to advertise their IPv6 network prefixes and exchange routing updates. By supporting IPv6, RIPng addresses the increasing need for routing protocols compatible with the next-generation IP addressing scheme, providing connectivity and routing capabilities for IPv6 networks.

Learn more about RIPng

brainly.com/question/32104481

#SPJ11

the student uses the data collected from the experiment to create the data table. which of the following statements is true regarding the data?

Answers

The correct answer is C. The momentum of the two-block system is not conserved because the initial momentum of the system is not equal to the final momentum system.

The data collected from the experiment is used to create the data table, but the data does not provide enough information to conclude the momentum of the individual blocks and the system. The initial momentum of block X and block Y may be experimentally consistent for all trials, but that does not mean the initial momentum of the two-block system is equal to the final momentum of the two-block system.

Full task:

The student uses the data collected from the experiment to create the data table. which of the following statements is true regarding the data?

a. The momentum of the two-block system is conserved because the initial momentum of block X is experimentally consistent for all trials.b. The momentum of the two-block system is conserved because the initial momentum of block Y is experimentally consistent for all trials.c. The momentum of the two-block system is not conserved because the initial momentum of the system is not equal to the final momentum system.d. The level of error associated with the data is too high to make a conclusion regarding the momentum of the individual blocks and the system.

Learn more about data: https://brainly.com/question/26711803

#SPJ11

What is the scope of numC?

def usernameMaker (strFirst, strLast):
return strFirst + strLast[0]


def passwordMaker (strA, numC):
answer = dogName[0:3]
return answer + str(numC)

# the main part of your program that calls the function
username = usernameMaker ('Chris', 'Smith')
dogName = 'Sammy'
favoriteNumber = 7
password = passwordMaker (dogName,favoriteNumber)

Options
the entire program

usernameMaker

passwordMaker

# the main part of your program that calls the function

Answers

Answer:

local scope which is the entire body of the function/method that it is being used in

Explanation:

The variable numC has a local scope which is the entire body of the function/method that it is being used in, which in this scenario is the passwordMaker method. This is because the variable numC is being used as a parameter variable for that method, meaning that a piece of information is being inputted by when the method is called and saved as the variable numC which is then used by the lines of code inside the method, but cannot be accessed from outside the method thus.

Answer:

The answer is passwordMaker

Explanation:

Edge 2020.

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

Coding
Design
Maintenance
Testing

Answers

Answer:

Design Phase

Explanation:

In design phase developers make prototypes. The prototype is the solution without actual implementation. That prototype is shown to the user for the purpose of getting feedback. So design phase of SDLC involves making improvements based on user feedback.

Answer:

Testing

Explanation:

When you test the game to see if it's fun you try to get feedback from users

Functions are used to _________

Answers

enable programmers to break down or demolish a problem into smaller chunks

Please Help! (Language=Java) This is due really soon and is from a beginner's computer science class!
Assignment details:
CHALLENGES
Prior to completing a challenge, insert a COMMENT with the appropriate number.

1) Get an integer from the keyboard, and print all the factors of that number. Example, using the number 24:

Factors of 24 >>> 1 2 3 4 6 8 12 24
2) A "cool number" is a number that has a remainder of 1 when divided by 3, 4, 5, and 6. Get an integer n from the keyboard and write the code to determine how many cool numbers exist from 1 to n. Use concatenation when printing the answer (shown for n of 5000).

There are 84 cool numbers up to 5000
3) Copy your code from the challenge above, then modify it to use a while loop instead of a for loop.

5) A "perfect number" is a number that equals the sum of its divisors (not including the number itself). For example, 6 is a perfect number (its divisors are 1, 2, and 3 >>> 1 + 2 + 3 == 6). Get an integer from the keyboard and write the code to determine if it is a perfect number.

6) Copy your code from the challenge above, then modify it to use a do-while loop instead of a for loop.

Answers

Answer:

For challenge 1:

import java.util.Scanner;

public class Main {

   public static void main(String[] args) {

       // Get an integer from the keyboard

       Scanner scanner = new Scanner(System.in);

       System.out.print("Enter an integer: ");

       int num = scanner.nextInt();

       // Print all the factors of the integer

       System.out.print("Factors of " + num + " >>> ");

       for (int i = 1; i <= num; i++) {

           if (num % i == 0) {

               System.out.print(i + " ");

           }

       }

   }

}

For challenge 2:

import java.util.Scanner;

public class Main {

   public static void main(String[] args) {

       // Get an integer from the keyboard

       Scanner scanner = new Scanner(System.in);

       System.out.print("Enter an integer: ");

       int n = scanner.nextInt();

       // Count the number of cool numbers from 1 to n

       int coolCount = 0;

       for (int i = 1; i <= n; i++) {

           if (i % 3 == 1 && i % 4 == 1 && i % 5 == 1 && i % 6 == 1) {

               coolCount++;

           }

       }

       // Print the result using concatenation

       System.out.println("There are " + coolCount + " cool numbers up to " + n);

   }

}

For challenge 3:

import java.util.Scanner;

public class Main {

   public static void main(String[] args) {

       // Get an integer from the keyboard

       Scanner scanner = new Scanner(System.in);

       System.out.print("Enter an integer: ");

       int n = scanner.nextInt();

       // Count the number of cool numbers from 1 to n using a while loop

       int coolCount = 0;

       int i = 1;

       while (i <= n) {

           if (i % 3 == 1 && i % 4 == 1 && i % 5 == 1 && i % 6 == 1) {

               coolCount++;

           }

           i++;

       }

       // Print the result using concatenation

       System.out.println("There are " + coolCount + " cool numbers up to " + n);

   }

}

For challenge 5:

import java.util.Scanner;

public class Main {

   public static void main(String[] args) {

       // Get an integer from the keyboard

       Scanner scanner = new Scanner(System.in);

       System.out.print("Enter an integer: ");

       int num = scanner.nextInt();

       // Determine if the integer is a perfect number

       int sum = 0;

       for (int i = 1; i < num; i++) {

           if (num % i == 0) {

               sum += i;

           }

       }

       if (sum == num) {

           System.out.println(num + " is a perfect number.");

       } else {

           System.out.println(num + " is not a perfect number.");

       }

   }

}

For challenge 6:

import java.util.Scanner;

public class Main {

   public static void main(String[] args) {

       // Get an integer from the keyboard

       Scanner scanner = new Scanner(System.in);

       System.out.print("Enter an integer: ");

       int num = scanner.nextInt();

       // Determine if the integer is a perfect number using a do-while loop

       int sum = 0;

       int i = 1;

       do {

           if (num % i == 0) {

               sum += i;

           }

           i++;

       } while (i < num);

       if (sum == num) {

           System.out.println(num + " is a perfect number.");

       } else {

           System.out.println(num + " is not a perfect number.");

       }

   }

}

Other Questions
to diagnose fibromyalgia, there must be tenderness on digital palpation in at least 11 of 18 (nine pairs) tender point sites, which would include the_____ The energy distribution profile (Curve C) for the Y2 molecules is shown in the graph below forthe reaction X+yz_XY2 when it is done under certain experimental conditions Line A represents the most probable energy of the Y2 molecules; and Line B represents the activation energy Which of the following changes should be made to the graph to explain the increase in the rata of the reaction if tho only change in experimental conditions Is tho addltion of a catalyst? Linc A Llne B 1 Curve C Moladul nr Fnomy haCurve C will broaden and Line B will move to the left; because have an energy greater than the minimum more Y2 molecules wlll energy barrier energy needed to overcome the activation ninimeB will move to the left because a larger fraction of minimum energy to overcome the activatiog the Y2 molecules will have the C Curve C and Line A will move to the energy barrier: molecules will Increase; right because the average energy of the Y2 Dilline ^ will move to the right because will increase the most probable energy of the Y2 molecules Select the correct pronoun,That's the girlpicture you sew in the newspaper,who'swhosewhos 40:100 + 9.36 ???? help pleaseee !!! 30 points Find the value of J. Given that R=9xBRAINEST+8yFind x when y=3 and R=5Give your answer as an improper fraction in its simplest form. Find the area for me pls Choose the correct form of comer to complete the sentence. Hewp! Will gib brainliest!! a box of mass 5kg is pulled, and that box pulls another box of 5kg by a string. assuming the force is 10n, what is the tension in the string? A scientific theory can never be disproven. Solve the given expression using the distributive property. 8 ( 11 p 8 ) what Is margin of safety?A. Difference between selling price and variable cos B. difference between contribution margin per unit and fixed cost C. difference between current sales and break-even sales What did Alfred try to prove with fossil evidence? What does the excerpt from Private Yankee Doodle reveal about the American Revolution? Pleaseee help!I have no time left and schools almost over Im so far behind! If you help me with all the parts I will litterally give you all my points and I have 593!!~civics~Part ANext, you will answer some questions and conduct some internet research in order to create your own budget. Answer the following questions:Choose a job. What is its average annual salary? Once youve found this number, divide it by 12 to get a monthly income number.Choose a city. How much does the average one-bedroom apartment cost there?What is the average monthly cost of utilities in your chosen city?Choose a type of cablebasic or premium. What is its monthly cost?Choose an internet provider. What is its monthly cost?Choose a transportation method: bus or walking. What is the monthly cost?Choose a phone service: cell or landline. What is the monthly cost?What is the average monthly cost for groceries for one person? How much will you budget?What is the average monthly cost of clothing for one person? How much will you budget? Will you travel? Buy gifts? Make donations to an organization? Eat at restaurants? If so, add these to your budget.Part BNow its time to create your own budget using the table below. Plug in your monthly income and the known expenses that you just researched. (For the purposes of this activity, lets assume that the monthly income you researched is after taxes.) Then, choose the other categories you would like to spend money on. Plug the amounts you plan to spend each month on those categories.Part CWrite a summary of your budget. Include information about income and expenses, and explain what categories you chose to put your money into. Explain why you made these choices. Your summary should include:a general description of your source of income;which categories you have allotted more money to;the categories you included for variable expenses;why you think this is the best use of your money; andwhy you ruled out other options.Were you able to save some money for unplanned expenses? Where do you think your actual expenses might vary, and why?Part AA household may calculate a monthly budget using hundreds of dollars. The federal government uses trillions of dollars! The Congressional Budget Office (CBO) releases extremely detailed data on all the money flowing into and out of the government. Instead of looking at complicated lists of numbers, lets look at some infographics that the CBO has created for the year 2018. Visit the Congressional Budget Office site and scroll down to look at the infographics. One shows the money coming in (revenues), and the other shows the money being spent (outlays, also called expenses). Fill in the following chart.Part BThe infographic for spending shows two categories of discretionary spending: defense and nondefense. This is because the US military and the defense of our nation take up much more of the discretionary spending budget than other categories. The nondefense category covers many subcategories. Look at the chart below for some other examples. Research what the government spends money on in each of these subcategories.Part CWhy do you think the federal governments budget is broken down in this way? Do you think government leaders should make different choices about how to spend money? Explain your answer.Part DThe processes of creating a personal budget and those for creating the federal budget are obviously quite different, but what similarities did you notice? Why do you think the governments nondiscretionary expenses are so large? Are your nondiscretionary expenses also larger than your discretionary expenses? Explain your answer. a triangle has side lengths g, h, and k. The relationship among the side lengths of this triangle is shownThe angle opposite side h = 45.The angle opposite side , h, = 45.The angle opposite side k = 90.The angle opposite side , k, = 90.The triangle is a right triangle.The triangle is a right triangle.The triangle is not a right triangle. Which describes the molecule below?OA. A lipid with three unsaturated fatty acidsOB. A lipid with three saturated fatty acidsO C. A lipid with two unsaturated fatty acids and one saturated fattyacidO D. A lipid with two saturated fatty acids and one unsaturated fattyacid 2.) Find the zeros of the quadratic function y = x2 3x + 2 by factoring method.