Use the writeln() method of the document object to display the current platform in a

tag in the webpage. Hint: The platform property of the window.navigator object contains the current platform.

Answers

Answer 1

Using the knowledge in computational language in JAVA it is possible to write a code that the document object to display the current platform in a tag in the webpage

Writting the code in JAVA:

<TABLE>

     <ROWS>

     <TR>

     <TD>Shady Grove</TD>

     <TD>Aeolian</TD>

     </TR>

     <TR>

     <TD>Over the River, Charlie</TD>

     <TD>Dorian</TD>

     </TR>

     </ROWS>

     </TABLE>

   

See more about JAVA at brainly.com/question/12975450

#SPJ1

Use The Writeln() Method Of The Document Object To Display The Current Platform In A Tag In The Webpage.

Related Questions

The cell tower’s base transmission station is connected to a mobile ____ station.

Answers

The cell tower’s base transmission station is connected to a mobile switching station.

What is a switching station?

A switching station is known to be a kind of a substation that is known to be without transformers and it is one that often operate  only based or at a single voltage level.

Note that Switching stations are known to be often used as collector and they also acts as a distribution stations.

Hence,  The cell tower’s base transmission station is connected to a mobile switching station.

Learn more about transmission station from

https://brainly.com/question/1312500

#SPJ1

scheduling is approximated by predicting the next CPU burst with an exponential average of the measured lengths of previous CPU bursts.

Answers

SJF scheduling is approximated by predicting the next CPU burst with an exponential average of the measured lengths of previous CPU bursts.

What is SJF in operating system?

SJF is a term that connote Shortest Job First. It is said to be a type of CPU scheduling whose algorithm is linked with each as it is said to process the length of the next CPU burst.

Note that for one to be able to know the time for the next CPU burst to take place, one need to take the SJF into consideration as that is its function.

Hence, SJF scheduling is approximated by predicting the next CPU burst with an exponential average of the measured lengths of previous CPU bursts.

See options below

A) Multilevel queue

B) RR

C) FCFS

D) SJF

Learn more about scheduling from

https://brainly.com/question/19309520

#SPJ1

The system log daemon, rsyslogd, creates a socket for other system processes to write to. what is the path to this socket?

Answers

If the system log daemon, rsyslogd, creates a socket, the path to this socket is known to be /dev/log.

What is the system log daemon?

The syslog daemon is known to be a kind of a server process that is known to often gives or provides a form of message logging tools that is made for application and system processes.

Note that the syslog daemon is said to be one that begins by the Internet Daemon and it is also one that tend to receives messages on well-known port such as  514.

Note that The syslog daemon must be on before any application program and as such, If the system log daemon, rsyslogd, creates a socket, the path to this socket is known to be /dev/log.

Learn more about system log from

https://brainly.com/question/25594630

#SPJ1

See full question below

The System Log Daemon, rsyslogd, creates a socket for other system processes to write to. What is the path to this socket?

Select one:

a. /etc/rsyslog.socket

b. /var/log.sock

c. /tmp/log

d. /dev/log

The command-line interface tells a user that it's ready to receive commands by displaying a specific set of characters called a(n) _____

Answers

Answer:

it's called the prompt, mean yeah

When using spanning tree protocol. What is the first step in selecting paths through a network?

Answers

The first step in selecting paths through a network is STP must first select the root bridge, or master bridge.

Which one is the first step in STP operation?

The STP network convergence consists in three steps: elect a root bridge, elect root ports and elect designated and non-designated ports. When you enable STP, the first step in its convergence process is to elect a switch to act as a root bridge using the Spanning Tree Algorithm.

See more about STP at brainly.com/question/20039073

#SPJ1

Assembler Language
CSCI 360-1 Assignment 4 Name_____________________
Spring 2019 ABENDs and Dump Reading
25 points
This programming assignment does not require any further coding or documentation than what is provided. The program will ABEND and your task is to learn how to investigate what happened so that you can debug your own Assembler programs in the future. To begin, run the following program on the Marist mainframe using the ASSIST JCL used previously. Be sure you type it or copy it EXACTLY as shown below:
DUMP1 CSECT
USING DUMP1,15 ESTABLISH REG 15 AS BASE REG
*
SR 2,2 CLEAR REG 2
*
LA 3,NUM1 LOAD ADDRESS OF NUM1 INTO REG 3
LA 4,NUM2 LOAD ADDRESS OF NUM2 INTO REG 4
*
A 2,0(,3) ADD NUM1 TO REG 2
A 2,0(,4) ADD NUM2 TO REG 2
*
LA 5,SUM LOAD ADDRESS OF SUM INTO REG 5
ST 2,0(,5) STORE THE SUM OF NUM1 & NUM2 AT SUM
*
XDUMP , SET REG 2 TO 35
*
LTORG
*
SUM DC F'0' FULLWORD OF ZERO TO LATER HOLD SUM
*
NUM1 DC F'1206000000' VARIOUS FULLWORD INTEGER VALUES
NUM2 DC F'972460'
NUM3 DC F'1344335922'
*
END DUMP1
Use the resulting ABEND dump output to answer the questions below. Each is worth 2 points except question 11 which is worth 5 points.
Did this error occur (a) while the program was being assembled or (b) when it was being run?
________________________________________________________________________________
What is the address of the next instruction which would have been executed?________________________________________________________________________________
What is the value of the condition code at the time of the ABEND?
________________________________________________________________________________
What is the length of the instruction that caused the ABEND (number of bytes)?
_______________________________________________________________________________
What is the address of the instruction that caused the abend?
_________________________________________________________________________________
What type of error occurred (number and name)?
_________________________________________________________________________________
What usually causes this error?
_________________________________________________________________________________
What does the value in register 2 represent at the time of the ABEND dump?
__________________________________________________________________________________
What instruction needs to be added to fix this ABEND?
_________________________________________________________________________________
What does the value stored at location counter value 00002C represent?
_________________________________________________________________________________
What exactly happened here to cause the ABEND? Be detailed but succinct in your description.
_________________________________________________________________________________

_________________________________________________________________________________

_________________________________________________________________________________

_________________________________________________________________________________

_________________________________________________________________________________

Answers

hello thnks

Explanation:

For the IPv4 CIDR address 153.10.22.56 /22 What is the... Netmask: [ Select ] Network Address: [ Select ] Host Mask: [ Select ] Broadcast Address: [ Select ] Number of possible hosts: [ Select ] Host Number: [ Select ]

Answers

Netmask:

The netmask is calculated by putting the number of 1’s equal to the given mask value (here 22).

Netmask = 11111111.11111111.11111100.00000000

= 255.255.252.0

Therefore, the netmask is equal to 255.255.252.0

Network Address:

The network address is obtained by performing the AND operation of the bits in the given IP address with the bits of the netmask.

IP address (153.10.22.56) = 10011001.00001010.00010110.00111000

Netmask (255.255.252.0) = 11111111.11111111.11111100.00000000

Network address = 10011001.00001010.00010100.00000000

= 153.10.20.0

Therefore, the network address is equal to 153.10.20.0

Host Mask:

The remaining or the unused bits in the netmask are used as the host mask. In other words, the host mask is obtained by complementing each bit of the netmask.

Netmask = 11111111.11111111.11111100.00000000

Host mask = 00000000.00000000.00000011.11111111

= 0.0.3.255

Therefore, the host mask is equal to 0.0.3.255

Broadcast address:

The broadcast address is used to send the packages to all the hosts in the network. It is obtained by setting all the bits after the network address to 1.

Network address (153.10.20.0) = 10011001.00001010.00010100.00000000

Broad cast address = 10011001.00001010.00010111.11111111

= 153.10.23.255

Therefore, the broadcast address is equal to 153.10.23.255

The number of possible hosts:

The number of possible hosts is computed as follows:

Possible hosts = 2n, where n is the number of host bits.

Out of the above 2n hosts, 2 are reserved and hence the number of usable hosts is equal to 2n – 2.

Number of hosts = 210 – 2 = 1024 – 2 = 1022

Host number:

Host number is the decimal equivalent of the host bits in the IP address.

Ip address (153.10.22.56) = 10011001.00001010.00010110.00111000

Host bits = 10.00111000

Host number = 29 + 0 + 0 + 0 + 25 + 24 + 23 + 0 + 0 + 0

= 512 + 32 +16 + 8

= 568

Hence, the host number is equal to 568.

See more abou computing at: brainly.com/question/14971369

#SPJ1

A _______ engine is a specialized program that assists you in locating information on the web and the internet.

Answers

Answer:

search

Explanation:

A search engine is a type of software that is used to carry out web searches. It works by "crawling" through the World Wide Web one web page at a time and indexing the pages.

which computer can be used where is no electricity ?​

Answers

Answer:

mechanical computers

Explanation:

A mechanical computer is built from mechanical components such as levers and gears rather than electronic components. The most common examples are adding machines and mechanical counters, which use the turning of gears to increment output displays.

Answer:

Non-electric computers.

A mechanical computer is a computer built from mechanical components such as levers and gears rather than electronic components

A touch screen _____.

Answers

A touch screen is known to be a kind of a display device that gives room for its users to be able to interact with a computer through the use of their finger or stylus.

What is a Touch Screen?

Touch screen are regarded as output device as a person can be able to touch and  use screen that displays the content in their mobile.

Hence, A touch screen is known to be a kind of a display device that gives room for its users to be able to interact with a computer through the use of their finger or stylus.

Learn more about touch screen from

https://brainly.com/question/17654061

#SPJ1

To generate a control break report, your input records must be organized in ____ order based on the field that will cause the breaks.

Answers

To generate a control break report, your input records must be organized in directory order based on the field that will cause the breaks.

What is directory?

Directory serves as guide in locating a particular item.

The directory is written in a way for an individual or an employee to understand and be able to retrieved needed information.

Therefore, to generate a control break report, your input records must be organized in directory order based on the field that will cause the breaks.

Learn more on directory below

https://brainly.com/question/14364696

#SPJ1

What is the correct syntax for defining an __init__() method that takes no parameters?

Answers

The correct syntax for defining an __init__() method that takes no parameters is: def __init__(self): pass

What is a syntax?

The set of guidelines known as syntax establishes the meaning of the different symbol combinations.

This instructs the machine on how to decipher the code.

When writing code, the idea of syntax deals with a very precise collection of words and a very strict sequence for those words when we offer instructions to the machine.

Learn more about syntax:
https://brainly.com/question/831003
#SPJ1

Figure shows a multiplexer in a synchronous TD slot is only 10 bits long (3 bits taken from each input plus is the output stream? The bits arrive at the multiplexer arrows.

Answers

The solution to the bits arrive at the multiplexer arrows is shown in the image attached.

What is a multiplexer used for in computing?

A multiplexer is known to be a kind of a device that is same to be one that is able to take a lot of analog signals and also helps to forwards the input that were taken into a single line.

Note that they are seen as devices that are often used to to boast the amount of data that are known to be passed over a network.

A good example of  a given non-electronic circuit of a multiplexer is known to be the single pole multi-position switch.

Therefore, The solution to the bits arrive at the multiplexer arrows is shown in the image attached. because it accurately tells the the arrangement of the 10 bits  in the arrow.

Learn more about multiplexer from

https://brainly.com/question/15052768

#SPJ1

The developers have used the results from the model to choose a computer controlled flood defense system. It will have a barrier which can open or close. describe the role of the microprocessor in such a system​
key word sensor , ADC , microprocessor, Preset , higher and lower barrier

Answers

The role of the microprocessor in a computer controlled flood defense system are:

The flood signal makes the microprocessor to start a flood control work or function that tends to interrupts the constant operating cycle that is known to be executed.

Note that  if any, and it start and keeps the operation of a drain cycle until the water is known to have returns to the constant level for a a given period of time.

What is the role of the microprocessor?

The Functions of Microprocessor are:

It helps to control or monitors all the parts of the machine and it often sends timing signals.It helps to move data between memory and I/O devices.It helps to bring back data and instructions from a given memory.

The microprocessor is known to be one that acts as the central unit of a computer system that carries out duties such as the arithmetic and logic operations.

Hence, The role of the microprocessor in a computer controlled flood defense system are:

The flood signal makes the microprocessor to start a flood control work or function that tends to interrupts the constant operating cycle that is known to be executed.

Note that  if any, and it start and keeps the operation of a drain cycle until the water is known to have returns to the constant level for a a given period of time.

Learn more  about microprocessor from

https://brainly.com/question/614196

#SPJ1

What are the three advantages of using blockchain technology? multiple choice all of the answer choices are correct. digital trust internet of things integration immutability

Answers

The  three advantages of using blockchain technology are:

digital trust internet of thingsimmutability

What is blockchain technology?

A Blockchain is known to be a kind of a chain of blocks that is made up of information.

Note that the data that are said to be stored inside a block is one that is based on the type of blockchain. Blockchain  is seen as a kind of a shared, form of immutable ledger that quickens the process of putting down or recording transactions and helps in the tracking of assets in a business network.

Hence, The  three advantages of using blockchain technology are:

digital trust internet of thingsimmutability

Learn more about blockchain technology from

https://brainly.com/question/25700270

#SPJ1

Which data protection process provides prebuilt capabilities, mapped to specific regulations, to create the necessary resources to implement and demonstrate compliance with these regulations

Answers

The data protection process  that provides prebuilt capabilities, mapped to specific regulations, to create the necessary resources to implement and demonstrate compliance with these regulations is known as The European Union General Data Protection Regulation (GDPR).

Who are held responsible for your compliance with data protection laws and processes?

Employers are known to be people who must be held accountable for data processing works while also working and complying with data protection principles.

The General Data Protection Regulation (GDPR) is known to be one of the hardest privacy and security law in the globe as it is known to be a body that imposes obligations onto its firm anywhere.

Hence, The data protection process  that provides prebuilt capabilities, mapped to specific regulations, to create the necessary resources to implement and demonstrate compliance with these regulations is known as The European Union General Data Protection Regulation (GDPR).

Learn more about data protection  from

https://brainly.com/question/27113550

#SPJ1

You have a user remotely connecting to the corporate network from a client location. They can connect to the corporate network file server. But they cannot access files and folders they need on the client LAN in order to work on their project. What would you enable in order to allow the user to access resources on both networks while the VPN is connected

Answers

I don't really get this question but I will go with hotspot

Write the first line of a function named Days. The function should return an integer value. It should have three integer parameters: intYears, intMonths, and intWeeks. All arguments should be passed by value.

Answers

Answer:

Program:

Module Module1

Function Days(intYears As Integer, intMonths As Integer, intWeeks As Integer) As Integer

' 1 year = 365days

' 1 month=30.417 days

' 1 week = 7 days

Days = 365 * intYears + 30.417 * intMonths + 7 * intWeeks

End Function

Sub Main()

Dim years, months, weeks As Integer

Console.Write("Enter the number of years: ")

years = Convert.ToInt32(Console.ReadLine())

Console.Write("Enter the number of months: ")

months = Convert.ToInt32(Console.ReadLine())

Console.Write("Enter the number of weeks: ")

weeks = Convert.ToInt32(Console.ReadLine())

Console.WriteLine("Days: " & Days(years, months, weeks))

Console.ReadKey()

End Sub

End Module

Create a program that will calculate and print to the screen a sales receipt

Answers

Answer:

The Code:

print('Invoice Bill')

table = Table(['Item Name', 'Item Price'])

total = 0

while(1):

   name = input('Enter Item name:')

# "x" to exit and print the table

   if(name != 'x'):

       price = int(input('Enter the Price:'))

       # store all the prices in "total"

       total += price

       table.add_row([name, price])

       continue

   elif(name == 'x'):

       break    

table.add_row(['TOTAL', total])

print(table)

print('Your total bill amount is ', total, '/-')

Explanation:

This program is written in the PYTHON language.

The user needs to enter the item name and price as much as they want; this will print the item name, item price and total in tabular form.

#SPJ2

During the merge sort operation for the list {90 7 9 43 62 12 21 36}, at what left and right partition position is 21 added to the temporary list

Answers

The point at left and right partition position to add 21 is Left position is 1 and right position is 7.

How do you solve merge sort?

The Algorithm for Merge Sort operations are:

First one need to find the middle index of the array. Then one has to Divide the array from the middle. Then do Call merge sort for the second half of the array. Then one can finally merge two sorted halves into one sorted array.

Hence, The point at left and right partition position to add 21 is Left position is 1 and right position is 7.

See Group of answer choices

Left position is 2 and right position is 6

Left position is 1 and right position is 7

Left position is 4 and right position is 7

Left position is 2 and right position is 5

Learn more about sort operation from

https://brainly.com/question/15090822

#SPJ1

Computer professionals known as software engineers, or Blank______, use the software development life cycle to create software required for information systems.

Answers

Answer:

Computer professionals known as software engineers, or programmers use the software development life cycle to create software required for information systems.

Explanation:

Computer professionals are called software engineers and programmers because they develop and program software. Some additional titles for computer professionals are hardware engineers and iOS/Android developers.

In cell H5, create a formula to divide the value in cell F5 by cell F12 using relative cell references.

Answers

The Excel formula to enter in cell H5 using the relative style of cell referencing is = F5/F12

What are Excel formulas?

Excel formulas are expressions or equations used alongside Excel functions to perform arithmetic and logical formulas for computation.

How to create the Excel formula to enter in cell H5?

From the question, we understand that we are to make use of the relative style of referencing

This means that we make use of the cell name as it is, without adding the  "$" sign, as it is in absolute style of cell referencing and mixed style of cell referencing

So, we make use of cell F5 as F5 and we make use of cell F12 as F12

The value in cell F5 divided by cell F12 using relative cell references is represented as:

F5 divided by F12

Rewrite the above formula as follows:

F5/F12

Excel formulas begin with the "=' sign

So, the above formula becomes

= F5/F12

Hence, the Excel formula to enter in cell H5 using the relative style of cell referencing is = F5/F12

Read more about Excel formulas at:

brainly.com/question/1285762

#SPJ1

When making routine transponder code changes, pilots should avoid inadvertent selection of which code?

Answers

When making routine transponder code changes, pilots should avoid inadvertent selection of  code. 7700.

What are the  transponder code that pilot  should  avoid?

Under normal as well as non-emergency operations, it is very essential  for pilot to make sure he  avoid using the transponder codes of 7500,  as well as 7600, and 7700.

Especially  while switching  codes,  It is easy in switching by  pilot to  go to of these 3 codes on accident.

In this case, When making routine transponder code changes, pilots should avoid inadvertent selection of  code. 7700.

Learn more about general emergency on:

https://brainly.com/question/14331925

#SPJ1

When posting to a professional networking account, you should share stories and comments that _____.

Answers

When posting to a professional networking account, you should share stories and comments that  Offer valuable information to your target audience

What is meant by a professional networking account?

This is used to refer to an account that has a large number of audiences or of people who follow the account based on what the owner of the network offers. The reason for this may be due to the fact that account is a blog that talks about health or about lifestyle.

It is advised that the person who is behind the account keep the people that are his audiences in mind whenever he is sharing posts to the account. The information that would be most useful to the people has to be considered.

Hence we can say that When posting to a professional networking account, you should share stories and comments that  Offer valuable information to your target audience

Read more on networking here:https://brainly.com/question/1027666

#SPJ1

Define a function SwapRank() that takes two char parameters passed by reference and swap the values in the two parameters. The function does not return any value. Ex: If the input is A C, then the output is: C A

Answers

The program that takes two char parameters passed by reference and swap the values in the two parameters is illustrated below.

What is a program?

A computer program is a sequence of instructions in a programming language for a computer to execute.

The program is illustrated below:

void SwapGrade(char &g1, char &g2)

{

char t = g1;

g1= g2;

g2 = t;

}

Output

B

C

C B

Learn more about program on:

https://brainly.com/question/26642771

#SPJ1

What is a "Top-Level Domain Name"?

Answers

A top-level domain is known to be an aspect of a domain that quickly follows the last dot symbol that is seen in a domain name.

What is a "Top-Level Domain Name"?

This is known to be the biggest level in terms of the hierarchical Domain Name System of the Internet.

Note that TLD (top-level domain) is said to be the most generic domain that is seen on the Internet's hierarchical DNS (domain name system) as A top-level domain is known to be an aspect of a domain that quickly follows the last dot symbol that is seen in a domain name.

Learn more about Domain Name from

https://brainly.com/question/13437432

#SPJ1

Define a function Output Value() that takes two integer parameters and outputs the sum of all negative integers starting with the first and ending with the second parameter. If no negative integers exist, sum is 0. End with a newline. The function does not return any value. Ex: If the input is -7 1, then the output is: -28 Note: Negative numbers are less than 0.

Answers

The function is written in C++ programming language and is be displayed below:

long OutputVal(int start, int end) {

 long result = 1;

 for (int num = start; num <= end; num++) {

   result *= num;

 }

 return result;

}

The program defines a function Output Value(), takes two integer parameters, and outputs the sum of all negative integers starting with the first and ending with the second parameter.

Read more about C++ here:

https://brainly.com/question/20339175

#SPJ1

We initialize the parameters to all zero values and run the linear perceptron algorithm through these points in a particular order until convergence. The number of mistakes made on each point are shown in the table below. (These points correspond to the data point in the plot above)

Answers

The main aim of running the parameters in the linear perceptron algorithm is to be able to develop a machine learning algorithm for binary classification tasks.

What is a linear perceptron algorithm?

This refers to the linear classification algorithm that is used in machine learning.

This is done in order to learn a decision boundary that divides different classes using a hyperplane.

Hence, we can see that your question is incomplete because the parameters are not included, hence a general overview was given to give you a better understanding of the concept.

Read more about machine learning here:

https://brainly.com/question/25523571

#SPJ1

True or false? you should avoid using your power point slides as handouts, according to the text.

Answers

true, you should avoid using power point notes always

Output values below an amount Write a program that first gets a list of integers from input. The input begins with an integer indicating the number of integers that follow. Then, get the last value from the input, which indicates a threshold. Output all integers less than or equal to that last threshold value. Assume that the list will always contain fewer than 20 integers. java

Answers

The program that first gets a list of integers from input, gets the last value from the input, which indicates a threshold, and outputs all integers less than or equal to that last threshold value is:

import java.util.Scanner;

public class LabProgram {

 /* Define your methods here */

public static void main(String[] args) {

Scanner scnr = new Scanner(System.in);

int[] userValues = new int[20];

int upperThreshold;

int numVals;

numVals = scnr.nextInt();

GetUserValues(userValues, numVals, scnr);

upperThreshold = scnr.nextInt();

OutputIntsLessThanOrEqualToThreshold(userValues, numVals, upperThreshold);

}

}

Read more about java programming here:

https://brainly.com/question/26952414

#SPJ1

Other Questions
by the early sixteenth century, the portuguese controlled a major commercial empire in postganglionic neurons A> are myelinated. B. release acetylcholine via exocytosis.C. are not myelinatedD. all of these. according to the harvey/allard chapter on managing organizational change and diversity, to benefit from diversity, organizations and corporate leaders need to support policies and programs that: TRUE / FALSE. blood types are an example of codominant alleles. name the genotypic ratio for the offspring of an ao mom and a bo dad. 18. Multiply, then check your work by switching factors.a. 693 x 83b. 910 x 45c. 38 x 84d. 409 x 89 the statement that third parties are irrelevant in modern-day politics is ______. Type missing numbers in this sequence Multiplying an estimate of lifetime daily dose by the cancer slope factor (CSF) for a chemical yields an estimate of the incremental increase in probability of cancer due to a that exposure: (2 points) TRUE or FALSE (circle one) The advantages of high throughput toxicity testing include all but which of these?: (2 points) Readily translated to chronic exposure situations Allows rapid testing of many chemicals in an assay Uses fewer animals to get toxicologic information Is less expensive than traditional toxicity testing Does this graph represent an endothermic or exothermic chemical reaction? Explainyour reasoning.Potential Energy -HeactantsAHReaction ProgressProducts13 You are a recent Berkeley College graduate and you are working in the accounting department of Macys. Next week, you are required to attend an inventory meeting for the store located in the Paramus Park mall. You know this store well because you shop there frequently. One of the managers of the store feels that the mens shoe department is unprofitable because the selection is poor, there are few sizes available, and there just arent enough shoes. The manager is pushing for a very large shoe inventory to make the department more desirable to shoppers and therefore more profitable. Explain in this discussion why it is good or bad to have a large inventory of shoes. 2. Do the terms LIFO, FIFO, and Weighted Average have anything to do with the actual physical flow of the items in inventory? Please explain Compare the presentations about desalination in the two passages. Explain how they are alike different. Describe how the authors use similar and different facts to achieve their unique purposes. Use at least TWO details from the texts in your responce Find the distance from point X to line p. Compare the amount of current entering a junction in a parallel circuit with that leaving the junction. (A junction is a point where three or more conductors are joined.) plssConsidering that the figure shows a square and congruent quarter circles, then the shaded area in the figure corresponds to (consider = 3) A RewardsChargeCard must use ChargeCard as its base class. Such a card has a reward rate - the percentage of money the user gets back as rewards for each charge transaction. The rewards are accumulated until used. When rewards are used, the accumulated reward amount is deposited into the card and accumulated reward amount is reset to zero. A ChargeCard must support the following calling syntaxes:ConstructorThe constructor should accept two required parameters, designating the spending limit on the card and the reward rate (as a float). Additionally, the constructor must accept an optional parameter that designates an initial balance (with the balance being 0 by default). For example, the syntax# using default value of balancecard = RewardsChargeCard(1000, 0.01)would create a new card, with spending limit of 1000, reward rate of 0.01, and an initial balance of zero.# specifying the value of balance explicitlycard = RewardsChargeCard(1000, 0.01, 100)would create a new card, with a spending limit of 1000, reward rate of 0.01, and an initial balance of 100.charge(amount)The RewardsChargeCard should override the parent class implementation of this method by:First calling the parent class implementation ofcharge(amount)Updating the value of accumulated rewards. Each charge transaction earns (amount * reward rate) toward the accumulated rewards. Rewards will only be added on valid transactions (if the charge is accepted).Returning True if the amount does not exceed the sum of the current card balance and the card limit, and False otherwise.For example, the following operations would result in the accumulated reward value 10.card=RewardChargeCard(10000, 0.01)card.charge(1000)If the charge is invalid (over the limit) the rewards are not added. For example, the following operations would result in no rewardscard = RewardChargeCard(10000, 0.01, 1000) # inital balance is 1000card.charge(10000) # charge is over the limit+balance, invalid operation, no rewardsgetRewards()A call to this method returns the value of accumulated rewards.useRewards()A call to this method applies the currently accumulated rewards to the balance and then sets the rewards total to 0. Applying rewards to the balance is identical to depositing money to the card, and a convenient way to apply accumulated rewards to the balance is by using the parent class deposit(amount) method and then setting the reward total to 0.To help you test your implementation of RewardsChargeCard, we provide you with a sample session that uses the RewardsChargeCard class:from RewardsChargeCard import RewardsChargeCard# spending limit of 10000, reward rate 0.03, initial balance 0visa = RewardsChargeCard(10000, 0.03)# returns True, as charge is accepted; new balance is 100.# accumulated reward value is 3visa.charge(100)# return value of 3.0 is displayedprint(visa.getRewards())# new balance is 1100# accumulated 30 for this transaction# total accumulated reward value is 33visa.charge(1000)# return value of 33.0 is displayedprint(visa.getRewards())# balance is adjusted to 1067# accumulated reward value is set to 0visa.useRewards()# return value of 1067.0 is displayedprint(visa.getBalance())# return value of 0 is displayedprint(visa.getRewards())# return False, as the amount we are charging is larger than the limit# no rewards should be addedvisa.charge(100000)# return value of 0 is displayedprint(visa.getRewards()) Additionally, we provide you with TestRewardsChargeCard.py script that uses Python unittest framework. Save ChargeCard.py, TestRewardsChargeCard.py and your implementation of RewardsChargeCard.py in the same directory. Then Run the TestRewardsChargeCard.py script and fix any errors that the script finds.Submit the single file, RewardsChargeCard.py, which should contain your implementation of the RewardsChargeCard class.PreviousNext A cone without a base is made from a quarter- circle. The base of the cone is a circle of radius 3 cm. What is the volume of the cone? Explain your reasoning. in 1971, when the consumer price index was 40.48, women earned a median income of $2,408 per year. if the consumer price index in 2012 was 229.6, how much was $2,408 in 2012 dollars? Suppose AD = Im (the m x m identity matrix). Show thatfor any b in Rm , the equation Ax = b has a solution.[Hint: Think about the equation AD b = b.] Explain why A cannothave more rows than columns. What is the current yield on $1000 par value bond that sells for $900 with the coupon rate is 10%? which of the following organizational structures best represents al capones illegal enterprises?