2.11 LAB 2D: Code Debugging

Answers

Answer 1

code debugging overview fix errors in a program. description being able to fix errors in your own or others' code is an important aspect of computer programming.

Software professionals almost never have a program run perfectly the first time through, and this is absolutely normal. This lab will focus on fixing some of the most common errors. this phis process of finding and correcting errors is known as debugging. take note of these errors as they are likely to be some of the errors you will encounter in future labs and projects. objective The code given is supposed to print out the following in order: • The text "Hello World" A greeting that includes the first and last names the user has input •. First the program will prompt for your name, asking 'Enter a First Name', and "Enter a Last Name'. If the input is: Sparty Spartan Then output should be: Hello World The world says hello to Sparty Spartan Sparty Spartan 25.0 328896,2216578.9x3297 LAB ACTIVITY 2.11.1: LAB 2D: Code Debugging 0/30 main.py Load default template..

To learn more about computer programming please click below link.

brainly.com/question/14618533

#SPJ4


Related Questions

What is a barrier to entry preventing quantum computing hardware from becoming more widely available?.

Answers

The option that is barrier to entry preventing quantum computing hardware from becoming more widely available is that They cost companies millions of dollars to manufacture.

What is quantum computing?

Quantum computing is known to be an aspect of computing based on creating computer technology as a result of or on the principles of quantum theory.

Note that The option that is barrier to entry preventing quantum computing hardware from becoming more widely available is that They cost companies millions of dollars to manufacture.

See options below

a) They are limited to solving only intractable problems.

b) They cost companies millions of dollars to manufacture.

c) They need to be kept at a constant temperature of 0°C.

d) They are not expected to save data for more than a year.

Learn more about quantum computing from

https://brainly.com/question/15188300

#SPJ1

The sticky notes often have strings of characters written on them that appear to be passwords. What can you do to prevent the security risk that this practice presents

Answers

Educate the user on how to make strong passwords

______ control is not displayed at the runtime but its event is fired automatically at the specific time interval .

Answers

Timer Interval Property is a control is not displayed at the runtime but its event is fired automatically at the specific time interval .

What is a timer tool?

TimerTools is known to be one that  is said to be aimed to aid a person to be able to manage their Countdowns and stopwatches.

What is a timer interval?

The INTERVAL-TIMER function is known to be that which returns the number of seconds and it begins from an arbitrary point in regards to time.

Note that in regards to the above, Timer Interval Property is a control is not displayed at the runtime but its event is fired automatically at the specific time interval .

Learn more about Timer from

https://brainly.com/question/1786137

#SPJ1

Computer networks that use packet switching are less efficient than telephone networks that use circuit switching.

Answers

Computer networks that use packet switching are less efficient than telephone networks that use circuit switching is a false statement.

Is packet switching more better than circuit switching?

Packet switching is known to be easy to use and they are known to be very much affordable when compared to circuit switching.

Note that in packet switching, it is more efficient in regards to bandwidth because it do not need to deal with a little number of connections that cannot be using all that bandwidth.

Hence, Computer networks that use packet switching are less efficient than telephone networks that use circuit switching is a false statement.

Learn more about Computer networks from

https://brainly.com/question/1167985

#SPJ1

which of the following is acomputer program that detects, prevents. and takes action sto deactivate or remove malicious programms

Answers

An Antivirus program fits the description of a computer program that detects, prevents and takes action to deactivate or remove malicious programs.

What is an antivirus program?

An antivirus program is any software installed on a computer system with the sole aim of detecting, preventing and removing threats from harmful software applications. We can liken antivirus software to a security guard stationed in front of a building; the building in this case is the computer system.

You can learn more about an antivirus program here https://brainly.in/question/11940932

#SPJ1

Accessibility is the degree to which a product or service is readily available and usable by _____.

A - as many people as possible
B - anyone who is disabled
C - anyone who is disabled
D - employees

Answers

Answer:

A-As many people as possible

What type of digital marketing is exemplified by a company rewriting the code for its website to contain more keywords, or by finding creative ways to place its URL in multiple spots on the web

Answers

A type of digital marketing that is exemplified by a company rewriting the code for its website to contain more keywords, or by finding creative ways to place its URL in multiple spots on the web is referred to as social media marketing.

What is digital marketing?

Digital marketing can be defined as a type of marketing technique which typically involves the process of developing promotional techniques and sales strategies through the use of multimedia resources and electronic devices, so as to enhance the sales of goods and services that meet the needs of the customers or end users.

In this context, we can infer and logically deduce that social media marketing refers to a type of digital marketing that is exemplified by a company rewriting the code for its website to contain more keywords, or by finding creative ways to place its URL in multiple spots on the web.

Read more on marketing here: https://brainly.com/question/27534262

#SPJ1

Which type of printer maintenance commonly requires resetting a maintenance counter?

Answers

The type of printer maintenance that commonly requires resetting a maintenance counter is Fuser Reset or ITM Reset.

What is a Printer?

This refers to the device that is used to produce an output in a hardware format.

At some point during use, the printer can develop some fault and to run a maintenance, there would have to be a reset of the maintenance counter.

This can be done with the use of the Fuser Reset or ITM Reset.

Read more about printer maintenance here:

https://brainly.com/question/11188617

#SPJ1

Which of the following describes the IP address of a router to which packets destined for a remote network should be sent by default

Answers

The term that describes the IP address of a router to which packets destined for a remote network should be sent by default is the a gateway of last resort.

What is 'Gateway Of Last Resort'?

A Gateway of Last Resort is known to be the Default gateway and this is said to be a route that is known to be often used by the router if no other known route is seen to transmit the IP packet.

Note that Known routes are seen in the routing table. but, any route not known by the routing table is said or known to be forwarded to the default route.

Hence the primary function of a router is so that it can forward packets toward a given destination.

Therefore, The term that describes the IP address of a router to which packets destined for a remote network should be sent by default is the a gateway of last resort.

Learn more about IP address from

https://brainly.com/question/24930846

#SPJ1

________ sites let users evaluate hotels, movies, games, books, and other products and services.

Answers

Social review websites avail end users an opportunity to evaluate hotels, movies, games, books, and other products and services.

What is a website?

A website can be defined as a collective name which connotes a series of webpages that are interconnected or linked together with the same domain name, so as to provide certain information to end users.

What is social review?

Social review can be defined as a process through which end users are availed an opportunity to evaluate various products and services that are provided by an e-commerce business firm, especially through the use of websites and over the Internet (active network connection).

In conclusion, we can infer and logically deduce that social review websites avail end users an opportunity to evaluate products and services such as hotels, movies, games, books.

Read more on website here: https://brainly.com/question/26324021

#SPJ1

Basil was reading about a new attack that forces the system to abandon a higher cryptographic security mode of operation and instead fall back to an older and less secure mode. What type of attack is this

Answers

Since Basil was reading about a new attack that forces the system to abandon a higher cryptographic security mode of operation and the kind of attack is known to be Downgrade attack.

What is downgrade security attack?

A downgrade attack is known  to be a kind of of cyber attack that is made up of the fact that an attacker is known to often forces a network channel to make a switch to a kind of an unprotected or one that is said to be less secure data transmission standard.

Note also that the  Downgrading of a given protocol version is said to be a key element of  a type of a  man-in-the-middle attacks, and it is known to be one that is often used to take or hijack encrypted traffic.

Hence, Since Basil was reading about a new attack that forces the system to abandon a higher cryptographic security mode of operation and the kind of attack is known to be Downgrade attack

Learn more about Downgrade attack from

https://brainly.com/question/24304791

#SPJ1

During the functional testing phase of application development, an application tests for vulnerabilities against the running code. What type of code testing is this?

Answers

Dynamic analysis is the type of code testing that the above case is.

What is Dynamic analysis?

Dynamic analysis is known to be a form of testing and examination of a program by using or executing data in  a kind of real-time.

Note that the objective is to be able to see errors in a program while it is said to be running and as such,  Dynamic analysis is the type of code testing that the above case is.

Learn more about vulnerabilities from

https://brainly.com/question/25633298

#SPJ1

A text file has 456789 letters. If the text file is text wrapped to 80 characters per line (a line folds to the next after 80 columns of characters from the left), the number of lines with letters in the text file would be: . How many letters are in the last line

Answers

Answer:

5710 lines

Explanation:

To set up scenarios, you need to first use ______ to set up a list, then ______ to set up the reference cell. Last you need to use ______ to set up the cells that display the output results from the scenario.

Answers

To set up scenarios, you need to first use Goal seek to set up a list, then data table  to set up the reference cell. Last you need to use  VLOOKUP to set up the cells that display the output results from the scenario.

What is a Goal Seek in Excel?

Microsoft Excel is known to have a goal seeking tool that is said to be built-in and it is one that gives room for the user to know the desired input value for any kind of  formula if the output value is said to be already known.

Hence, To set up scenarios, you need to first use Goal seek to set up a list, then data table  to set up the reference cell. Last you need to use  VLOOKUP to set up the cells that display the output results from the scenario.

See full question below

To set up scenarios, you need to first use to set up a list, then to set up the reference cell. Last you need to use to set up the cells that display the output results from the scenario. CHOOSE; VLOOKUP; data table Goal seek; data table; VLOOKUP Data validation; VLOOKUP; CHOOSE Data table; VLOOKUP;

Learn more about  VLOOKUP from

https://brainly.com/question/14042837

#SPJ1

If you're connected to a switch and your NIC is in promiscuous mode, what traffic would you be able to capture

Answers

If you're connected to a switch and your NIC is in promiscuous mode, the traffic would you be able to capture would be broadcast traffic.

What is Broadcast traffic?

Broadcast traffic is used to send packets to all hosts on the network using the network's broadcast address. With a broadcast, the packet contains a destination IP address that only has numbers one (1s) in the host portion. This means that all hosts on that local network (broadcast domain) will receive and verify the packet. Many network protocols, such as DHCP, use broadcasts. When a host receives a packet sent to the network's broadcast address, the host processes the packet as a packet addressed to its unicast address.

Also, there are two types of broadcasts: directed broadcast and limited broadcast.

See more about computing at: brainly.com/question/10873104

#SPJ1

What does it mean when we say that we are currently in the noisy, intermediate-scale quantum computing (nisq) stage?

Answers

A noisy, intermediate-scale quantum computing (nisq) stage is said to be the topmost quantum processors that has  about 50 to 100 qubits, but are said to be never advanced enough to be able to attain fault-tolerance or even big enough to bring about sustainably in terms of quantum supremacy.

What does NISQ known for?

It connote Noisy Intermediate Scale Quantum. Intermediate scale and it is one that tells that one is talking about devices that are said to be large enough, and have about 50 qubits or more that is said to be enough.

Note that it is also one that a person cannot by brute force simulate the quantum system via the use of the most powerful existing digital computers.

Learn more about  quantum computing  from

https://brainly.com/question/15188300

#SPJ1

Write a recursive function called digit_count() that takes a positive integer as a parameter and returns the number of digits in the integer. Hint: The number of digits increases by 1 whenever the input number is divided by 10.

Ex: If the input is:

345
the function digit_count() returns and the program outputs:

3

Answers

Using the computational knowledge in python it is possible to write a code that Write a recursive function called digit_count()

What is a function in Python?

In Python, a function is a sequence of commands that performs some task and that has a name. Its main purpose is to help us organize programs into chunks that correspond to how we envision a solution to the problem.

Writting the code in python:

def countDigits(n):

  if n< 10:

     return 1

  else:

      return 1 + countDigits(n / 10)

See more about python at brainly.com/question/13437928

#SPJ1

During the maintenance phase of the sdlc, the team must _____ if a system's objectives are not being met

Answers

During the maintenance phase of the sdlc, the team must take the correct action if a system's objectives are not being met

What are the 5 phases of the traditional SDLC Software Development process)?

Software process is the set of activities that constitute the development of a computer system. These activities are grouped into phases, such as: requirements definition, analysis, design, development, testing and deployment.

The main focus of this phase of the SDLC is to ensure that the needs continue to be met and that the system continues to function as per the specification mentioned in the first phase.

See more about SDLC at brainly.com/question/14096725

#SPJ1

Your computer's sound stops working after updating the driver. What should you do to recover from this problem with the least amount of administrative effort

Answers

The thing to do in order to recover from this problem with the least amount of administrative effort is to Reboot the computer into Safe Mode and use Device Manager to roll back the driver.

What is a Device Driver?

This refers to the computer program that is in charge of a particular type of device that controls a computer part.

Hence, we can see that based on the fact that the audio in the computer beings to malfunction after updating the device drivers, the best step to take is to Reboot the computer into Safe Mode and use Device Manager to roll back the driver.

Read more about device drivers here:

https://brainly.com/question/17151563

#SPJ1

You want to be super private with your email. You'd like to be able to download your email to a single device, then remove it from your email server. What email protocol can you use to do that?

Answers

Since the person want to be super private with your email, the email protocol can you use to do that is POP 3.

What is  POP3 about ?

POP3 is known to be a tool that gives one room to be able to download email to a single device, which a person want to use if they want to add privacy to their emails.

Therefore, Since the person want to be super private with your email, the email protocol can you use to do that is POP 3.

Learn more about email from

https://brainly.com/question/24688558

#SPJ1

When patel’s advertising co. decided to upgrade its computer network, many people were involved in the decision. In b2b buying systems, decisions are often made:_____.

Answers

In b2b buying systems, decisions are often made by by a committee after a lot of considerable deliberation.

What is Business-to-Business service?

Business-to-business is known to be a kind of a scenario where one business is said to often makes a commercial transaction with another kind of business.

The B2B decision-making process is known to be made up of some discrete tasks such as:

Knowing that there is an issue or need.Examining  and comparing the available alternative or solutionsDefining the requirements that is needed for the product and others.

Hence, In b2b buying systems, decisions are often made by by a committee after a lot of considerable deliberation.

Learn more about b2b from

https://brainly.com/question/26506080

#SPJ1

What features should you present when demonstrating 2023 murano’s confident cornering?.

Answers

Answer:

features of muranos confident cornering 2022:-

-Intelligent All-Wheel Drive

-4-wheel independent suspension

-Electrically driven hydraulic power steering

Based on the automobile analysis, the features one should present when demonstrating 2023 Murano's confident cornering include "4-wheel independent suspension."

What is Cornering in a vehicle?

Cornering is a term that describes the extent of the force wielded on the vehicle's center of gravity.

Other features one should present when demonstrating 2023 Murano's confident cornering

Intelligent All-Wheel DriveElectrically driven hydraulic power steering

2023 Murano is a modern vehicle produced by Nissan Manufacturer. It comes with the latest design, swift navigation component, and easy-to-handle features.

For 2023, the Murano is seen to be having a lot of overdue makeovers and it is one that includes a feature of improvements such as revamp of the outside and interior.

Hence, in this case, it is concluded that the 2023 Murano is one of the latest vehicles to possess.

Learn more about the vehicle features here: brainly.com/question/17183497

#SPJ6

; This program replaces the value in R0 with its absolute value. ; ; It does NOT modify any other registers! ; .ORIG x0200 START XXXXXXXX ; copy R0 to itself to set the condition codes based on R0 XXXXXXXX ; if R0 is NON-NEGATIVE, skip the negation (already correct) XXXXXXXX ; R0 is negative, so negate it XXXXXXXX DONE BR START .END

Answers

Using the knowledge in computational language in LC-3 Assembly it is possible to write a code that replaces the value in R0 with its absolute value

Writting the code

       .ORIG x0200

START

       AND R0, R0, #0  ; copy R0 to itself to set the condition codes based on R0;

                       ; i.e performing addition operation with Zero option to set the flags

       BRzp DONE       ; if R0 is NON-NEGATIVE, skip the negation (already correct);

                       ; Branch to DONE if number is poistive

       NOT R0, R0      ; R0 is negative, so negate it i.e taking 2's complement

       ADD R0, R0, #1  ; R0 = -R0 is performed successfully

DONE    BR START

       

       .END

See more about  LC-3 Assembly at brainly.com/question/12978370

#SPJ1

You would like to see only the last 15 lines of /home/user/log file on your linux machine. Which command line interface (cli) command would you use?

Answers

In Linux computer systems, "tail -n 15 /home/user/logfile" is a command line interface (cli) command that should be used to view only the last 15 lines of /home/user/log file.

What is a Linux command?

A Linux command can be defined as a software program that is designed and developed to run on the command line, in order to enable an administrator (end user) of a Linux network perform both basic and advanced tasks by entering a line of text.

In Linux computer systems or machines, a command line interface (cli) command that should be used by an administrator (end user) to view only the last 15 lines of /home/user/log file is "tail -n 15 /home/user/logfile."

In conclusion, the above command would reveal only the last 15 lines of /home/user/log file on a Linux computer system.

Read more on Linux commands here: brainly.com/question/25480553

#SPJ1

>>> A = [21, 'dog', 'red'] >>> B = [35, 'cat', 'blue'] >>> C = [12, 'fish', green'] >>> E = [A, B, C] What is the value of E1 2

Answers

The value of E[1][2] is 'blue'

How to determine the value of E?

The code segment is given as:

A = [21, 'dog', 'red']

B = [35, 'cat', 'blue']

C = [12, 'fish', 'green']

E = [A, B, C]

The above code segment is written in Python, and the lists A, B and C are merged to form list E

This means that list E would be a two-dimensional list.

So, the value of E is [[21, 'dog', 'red'], [35, 'cat', 'blue'], [12, 'fish', 'green']]

Rewrite as:

E = [[21, 'dog', 'red'],

      [35, 'cat', 'blue'],

      [12, 'fish', 'green']]

The element at E[1][2] is the element at the second row and the third column.

This element is 'blue'

Hence, the value of E[1][2] is 'blue'

Read more about python programs at:

https://brainly.com/question/24833629

#SPJ1

In order for css to work with HTML5 elements, you need to use a javascript HTML5 shiv or shim. What is this placed in?

Answers

For CSS to work with HTML5 elements, the command that is placed in the above CSS is given in the image attached.

What are the HTML5 elements?

The Tags (Elements) are:

<article> - this stands for  an independent piece of issue of a document, such as a blog entry and others.

<aside > - this stands for  a piece of  writing or a content that is said to be in a little way or only slightly linked to the rest of the page.

Does HTML5 use JavaScript?

HTML5 is known to be one of the element that is often used to make the basic structure and depict content in WWW, but Javascript is known to be a vital aspect of HTML5.

Therefore, For CSS to work with HTML5 elements, the command that is placed in the above CSS is given in the image attached.

Learn more about HTML5 elements from

https://brainly.com/question/14036175

#SPJ1

Q 1: How computer produces result?
Q 2: Write function of power supply in system unit?

Answers

The computer produces result as an Output,  by the central processing unit.

What are the function of power supply in system unit?

The key functions of a power supply unit are:

It helps to change AC to DC.It transmit DC voltage to the motherboard, adapters, and othersIt gives cooling and lead to more air flow via its case.

What is the result of the computer?

The result shown by a computer is known as an output, the result is known to be made by the central processing unit, that is said to be a computer's whole aim for existing.

Hence, The computer produces result as an Output,  by the central processing unit.

Learn more about computer from

https://brainly.com/question/24540334

#SPJ1

True or false: A many-to-many relationship between classes A and B (where the maximum multiplicity on both sides of the association is *) is implemented by posting foreign keys in both A and B.

Answers

A many-to-many relationship between classes A and B (where the maximum multiplicity on both sides of the association is *) is implemented by posting foreign keys in both A and B is a false statement.

What is a many-to-many relationship?

A many-to-many relationship is known to be one that exist if one or more items that is found in one table can have an association to one or more items in another given table.

Hence,  A many-to-many relationship between classes A and B (where the maximum multiplicity on both sides of the association is *) is implemented by posting foreign keys in both A and B is a false statement.

Learn more about foreign keys from

https://brainly.com/question/17465483

#SPJ1

Salesforce organizes your data into: A. Objects and records, like tabs and rows on a spreadsheet. B. Objects and fields, like columns on a spreadsheet. C. Fields and records, like different databases. D. Objects and spreadsheets, like columns in a database.

Answers

Salesforce organizes your data into option A. Objects and records, like tabs and rows on a spreadsheet.

How does Salesforce organize data?

Salesforce is known to be a tool that helps one to put together their your into objects and records and it is said to have standard objects that has been set up and ready for use.

Hence, Salesforce organizes your data into option A. Objects and records, like tabs and rows on a spreadsheet.

Learn more about Salesforce from

https://brainly.com/question/7452075

#SPJ1

A user has reported that their workstation is running slowly. You perform a reboot of their workstation and receive a S.M.A.R.T. error during the boot-up process. Which of the following actions should you perform FIRST

Answers

The  actions that one need todo or perform FIRST is to backup the hard drive.

What causes a SMART error?

A composition of bad blocks can be a tool that can  lead to a SMART error, or when the drive of the system's temperature is known to have gotten too high as a result of poor ventilation or other environmental factors.

Note that The  actions that one need todo or perform FIRST is to backup the hard drive. because by doing so, one can be able to retrieve information back.

Hence the answer is correct.

Learn more about S.M.A.R.T. error from

https://brainly.com/question/26985946

#SPJ1

Other Questions
select all reagents that are capable of reducing aldehydes to 1 alcohols. multiple select question. lialh4 k2cr2o7, h2so4, h2o nabh4 Suppose the amount of a certain drug in the bloodstream is modeled by C(t)=15te-.4t. Given this model at t=2 this function is: Select one:a. At the inflection pointb. Increasingc. At a maximumd. Decreasing a companys balanced scorecard must emanate from its performance measures. (True or False) How far does priestley present society as unfair in an inspector calls? A 1250 kg car is stopped at a traffic light. A 3550 kg truck moving at 8. 33 m/a to the right. What is the momentum of the system What are accounting concepts? Explain any 2 of them. 1.) Light travels through a material at a speed of 1.20x108 m/s. What is the index of refraction for the material?2.) A diver shines a flashlight upward from beneath the water (n=1.33) at an angle of 22.4 to the vertical. At what angle does the light refract through the air above the surface of the water?3.) A 0.17 m tall object is placed 0.49 m from a converging lens with a 0.12 m focal length. How tall is the image?4. A physics class is investigating the properties of light using polarizing filters. The students change the orientation of the two filters to see how much light can travel through both filters.To completely block the light, which orientation should the students use for the two filters?Filter A should be vertical and Filter B should be horizontal.5.) A converging lens can produce both real and virtual images depending on the object's position. When does a converging lens produce a virtual image? Describe the image produced.A virtual image is produced if the object is on the focal point; the image is inverted, enlarged, and on the opposite side of the lens from the object.A virtual image is produced when the object is on the focal point; the image is upright, enlarged, and on the same side of the lens as the object.A virtual image is produced if the object is between the focal point and the lens; the image will be upright, enlarged, and on the same side of the lens as the object.A virtual image is produced if the object is between the focal point and the lens; the image will be upright, reduced, and on the opposite side of the lens from the object.Filter A should be vertical and Filter B should be at a 45 degree angle.Filter A should be vertical and Filter B should be at a 60 degree angle.Filter A should be vertical and Filter B should be vertical.6.) A student in a physics classroom measured the distance from a convex lens (focal length of 4cm) to the object as 20 centimeters. The distance from the lens to the image projected on a screen is 5 centimeters from the lens. What is the magnification of the image?7.) Which statement given BEST describes what happens to light as it passes from air into a piece of glass?The speed increases, its wavelength becomes longer, and its frequency remains the same.The speed decreases, its wavelength becomes shorter, and its frequency increases.The speed decreases, its wavelength becomes shorter, and its frequency remains the same.The speed increases, its wavelength becomes longer, and its frequency decreases.8.) Plot this into a graph.y = tan (x + 90) - 1 Which of the following best characterizes the findings from Caplan, Kennedy, and Petrossian (2011)? Criminals could easily disable the cameras in their neighborhood. The cameras were successful in reducing overall crime (shootings, auto-thefts, and sexual assault) The cameras were not as successful in reducing overall crime as had been promised. Newark, NJ is a dangerous city with a lot of crime Do monozygotic twins share 100% of their genetic material? secondary analysis can be cheaper and faster than collecting original data.T/F In Exercises 9-14, compute the solution of the given initial-value problem. d2 de y dr2 d2y dt2 y (0) = y(0) = 0 diy 12. +9y = sin 31 d2 14. + 4y sin 3r dr y(0) = 2, y'(0) = 0 Based solely on mass, which of the following terrestrial planets would you expect to retain a secondary atmosphere?A MercuryB VenusC MarsD the Moon what were the contributions of women and native americans during WW2? show that the number of photons per unit volume in a photon gas of temperature t is approximately (2x10^7 k^-3m^-3)t^3 : For instant valve closure at the end of a long pipeline with friction (Fig. 8.6), will the maximum head in the pipe be HR + ??,? (HR reservoir head). If ?Hs-the head nse of the wave front at t-La, how will the maximum head at the valve compare to HR + ??5? ??, ??? ??2 ??, bj friction. (a) incorrect; (b) correct Questions 1 and 4 Please help ASAP bc it is due tmr A monopolist faces a market demand curve given by QP) = 70 p. Its total costs are described by TC(Q) = 4/300Q^3 5Q + 250. a) Derive the monopoly price, quantity, and profits. b) Calculate Lerner Index under the monopoly equilibrium. c) Now suppose the government sets the maximum price at $40. What output level and price level will the monopolist choose to maximize profits? What is the deadweight loss? d) Suppose the government sets the maximum price at $30. What output level and price level will the monopolist choose to maximize profits? What is the deadweight loss? Pls help Im stuck Tysm I really thankful show that if a basis i is not optimal, then there is an improving swap, which means thtat there is a pair of indices