Let ∑ = {a,b}, and let L be the language over ∑:
L ={ w € ∑+ |w is even, and w contains at least one a in the first half and exactly one b in the second half }
Give a context-free grammar (CFG) for L, and briefly explain how it works to correctly represent the language. There are no additional requirements for your solution other than what is stated here, except the usual guidance to make sure your answer is clear and understandable and avoids too much unnecessary complexity. In particular, there is no credit for the grammar being unambiguous (if possible.)

Answers

Answer 1

Answer:

Explanation:

From the information given, By applying a CFG for L:

Because each state generates two symbols or null, the length will be equal and even.

1st Condition:

throughout the first half, at least one (a)

2nd:

exactly one (b) within the second half

Dear Student, there is a technical error that occurred when submitting this question. This makes us unable to submit the complete solution to the question but curb that effect, we've attached an image below that shows the complete algorithm and a detailed explanation of the question.

Best Regards.

Let = {a,b}, And Let L Be The Language Over : L ={ W + |w Is Even, And W Contains At Least One A In The

Related Questions

Why is it easier to spot a syntax error than a logical error?​

Answers

Answer:

Even small typos that do not produce syntax errors may cause logic errors. ... The logic error might only be noticed during runtime. Because logic errors are often hidden in the source code, they are typically harder to find and debug than syntax errors.Explanation:

What is meant by a balanced budget?

A. inflows are greater than outflows

B. inflows are less than outflows

C. inflows are equal to income

D.inflows are greater than or equal to outflows.

Answers

Answer:

D.inflows are greater than or equal to outflows.

Explanation:

A budget is a financial plan used for the estimation of revenue and expenditures of an individual, organization or government for a specified period of time, often one year. Budgets are usually compiled, analyzed and re-evaluated on periodic basis.

A balanced budget is a type of budget in which inflows are greater than or equal to outflows. Thus, when cash inflows (income) is greater than or equal to cash outflows (expenses), a budget is said to be balanced.

The first step of the budgeting process is to prepare a list of each type of income and expense that will be integrated or infused into the budget.

This ultimately implies that, before preparing a budget, it is of utmost importance to know total income (inflows) and expenses (outflows).

The final step to be made by the management of an organization in the financial decision-making process is to make necessary adjustments to the budget.

In conclusion, the benefits of having a budget is that it aids in setting goals, earmarking revenues and resources, measuring outcomes and planning against contingencies. It is typically used by individuals, government, organizations or companies due to the fact that, it's tied directly to the strategy and tactics of a company on an annual basis. Also, it is used to set a budget for marketing efforts while anticipating on informations about the company.

8.
A bank offers the following rate of interest for fixed deposit:
Time (Years)
Rate (%)
9.0
1 to 2
10.0
2 to 3
11.0
> 3
12.0
The amount (A) after n years is calculated by using the formula :
A = P (1 + r/100)
Where P = Principal amount deposited, ,
R = Rate of interest,
n = Number of years
Write a program to accept deposited amount (P), number of years the amount is deposited for (n) and compute
the accrued amount for an investor.​

Answers

Answer:

Simple interest does not add any interest rate on the interest amount ... r = Rate of Interest ... principal amount with the rate of interest and the tenure of the loan or deposit. ... (P x r x t) ÷ (100 x 12) ... Example 1: If you invest Rs.50,000 in a fixed deposit account for a period of 1 year at ... (5,00,000 x 18 x 3) ÷ 100 = Rs.2,70,000.

Explanation:

The following Integer values are pushed onto a stack, s. The values are pushed onto s in the order that they appear below (left to right).

1 7 4 6 10 9

Assume the following declaration has been made.
PriorityQueue priQue new PriorityQueuecinteger> :

Values are popped off the stack, s, and as each value is popped off the stack, it is inserted into the priority queue, priQue. The following code is then executed.

while (!priQueue.isEmpty()){
System.out.println (priQue.remove ())

The numbers printed to the screen would be: ______

Answers

Answer:

9 10 6 4 7 1

Explanation:

When the values are pushed to the stack they would end up in the stack in the same order as they go in.

1 7 4 6 10 9

when elements are popped from a stack they are removed from the end to the beggining of the stack, and since these elements are being added to the priorityQueue then priQue will have the following order

9 10 6 4 7 1

this will also be the order that the numbers will be printed out from left to right since priorityQueue remove method, removes the elements from left to right.

i don’t know what subject to put this question in but does anyone know the difference between a quarter grade and "fin" grade on skyward bc my current quarter grade is very different from my grade on fin and i don’t know what it means

Answers

What's skyward? Explain plz and i'll update the answer.

The following truth table matches which boolean condition?
A B ?
1 1 1
1 0 1
0 1 0
0 0 1
A && ( A || B)
A || ( !A && !B)
A && ( A && B)
!A && ( A || !B)
A || ( A || B)
Consider the following class:
public class Thingy implements Comparable {
private int val;
public Thingy() {
this(0);
}
public Thingy(int t) {
val = t;
}
}
Which of the following methods must be included so this class can be instantiated?
a. compareTo
b. equals
c. indexOf
d. size
e. toString
Assume that x and y are boolean variables and have been properly initialized.
(x || y) && !(x && y)
The result of evaluating the expression above is best described as:_____.
A. Always true
B. Always false
C. True only when x is true and y is true
D. True only when x and y have the same value
E. True only when x and y have different values
You have created the following set of classes: Bus, Car, Scooter, Train, and Vehicle. Which would you choose to be the abstract class?
A. Bus
B. Car
C. Scooter
D. Train
E. Vehicle
Consider the method definition:
public static String analyzeTemps(int temps [], int avg) {
int above = 0;
int below = 0;
for(int i =0; i < temps.length; i++) {
if (temps[i] > avg)
above++;
if (temps[i] < avg)
below++;
}
if (above > below)
return "Hotter than normal";
if (above < below)
return "Cooler than normal";
return "Temperatures normal";
}
What is returned by the following?
int temps [] = {82 , 73 , 77 , 79 , 86 , 88 , 76 , 78 , 83};
System.out.println(analyzeTemps(temps, 81));
4
5
Cooler than normal
Hotter than normal
Temperatures normal
Consider the following code:
int list [] = /* missing code */;
int val = /* missing code */;
int n = -1;
for (int i = 0; i < list.length; i++) {
if (val == list[i]) {
n = i;
break;
}
}
What algorithm is shown?
A. Binary Search
B. Insertion Sort
C. Merge Sort
D. Selection Sort
E. Sequential Search
Suppose a child class has overridden a method of its parent class. What key word does the child class use to access the method in the parent class?
a. child
b. parent
c. static
d. super
e. this
What two methods from Object are often overridden?
a. add, compareTo
b. add, remove
c. toString, add
d. toString, equals
e. toString, compareTo
Consider the following class:
public class FrozenDesert{
public FrozenDesert() {
System.out.println("Yum");
}
}
You write a class, FrozenYogurt, which extends FrozenDesert. Which of the following is a correct implementation of the constructor for FrozenYogurt?
I. public FrozenYogurt() {
System.out.println("I'm the new ice cream");
super();
}
II. public FrozenYogurt() {
super();
System.out.println("I'm the new ice cream");
super();
}
III. public FrozenYogurt() {
super();
System.out.println("I'm the new ice cream");
}
a. I only
b. II only
c. III only
d. I and II
e. I, II and III
The constant in the Integer wrapper class that represents the smallest int value is ______.
A. MIN
B. MIN_VALUE
C. SMALL_INT
D. SIZE
E. Integer.MAX

Answers

Answer:

1 a

2 c

3 a

4 a

5c

6 b

7 a

8 c

Explanation:

The mass percent of hydrogen in CH₄O is 12.5%.Mass percent is the mass of the element divided by the mass of the compound or solute.

What is the mass percent?

Mass percent is the mass of the element divided by the mass of the compound or solute.

Step 1: Calculate the mass of the compound.

mCH₄O = 1 mC + 4 mH + 1 mO = 1 (12.01 amu) + 4 (1.00 amu) + 1 (16.00 amu) = 32.01 amu

Step 2: Calculate the mass of hydrogen in the compound.

mH in mCH₄O = 4 mH = 4 (1.00 amu) = 4.00 amu

Step 3: Calculate the mass percent of hydrogen in the compound.

%H = (mH in mCH₄O / mCH₄O) × 100%

%H = 4.00 amu / 32.01 amu × 100% = 12.5%

The mass percent of hydrogen in CH₄O is 12.5%.

CO2 = 1.580 grams H2O = 0.592 grams Lookup the molar mass of each element in the compound Carbon = 12.0107 Hydrogen = 1.00794 Oxygen = 15.999 Calculate the molar mass of CH4O by adding the total masses of each element used. 12.0107 + 4 * 1.00794 + 15.999 = 32.04146 Now calculate how many moles of CH4O you have by dividing by the molar mass. m = 1.15 g / 32.04146 g/mole = 0.035891 mole Now figure out how many moles of carbon and hydrogen you have. Carbon = 0.035891 moles Hydrogen = 0.035891 moles *

Therefore, The mass percent of hydrogen in CH₄O is 12.5%.

Learn more about mass percent here:

https://brainly.com/question/5295222

#SPJ5

Unemployment rate is a macroeconomic measure that describes:
O A. the percentage of people who are looking for a job but cannot find
one.
B. the value of the goods produced in a country divided by its
population.
c. the total value of goods and services a country produces in a year.
D. the increase in prices of consumer goods over a period of time.



Someone help me ASAP pleaseeee

Answers

Answer:

c

Explanation:

3. Comparing the Utopian and dystopian views of Technology according to Street (1992) which one in your view is more applicable to your society? Give at least three reasons for your answer.[15marks]

Answers

Answer:

Following are the explanation to the given question:

Explanation:

The impact of a social delay in the debate around this one is serious, real perceptions of technology. It higher employment brings a political use of new information technology to further fragmentation and anomaly amongst their representatives with the ability for the same technology. They explain this dichotomy in utopian or dystopian positions inside the following portion.

Perhaps the most important aspect of the utopia was its implicit idea that solutions to social problems are available technically. The technological effects on the community or populist forms of democratic engagement were defined often that is solutions.

Its claim from the group indicates that perhaps the Internet can promote political participation by enabling citizens to communicate easily across geographic and social frontiers. The claim suggests that this exchange would in turn promote the creation of new consultative spaces or new modes of collective activity. By comparison, the authoritarian model emphasizes the role of technology in transforming citizens' and policy interactions. Ward (1997) states which online referenda and proposals are typically described as mechanisms of change.

Nothing less prevalent today are futuristic internet interpretations. Privacy as well as material on the Internet was a topic of genuine responsibility and formed two of the biggest discussions on the possible negative effects of this technology. Cyber-tumblers' tales and facts about oneself are prevalent across the web. Online entertainment questions confront Web users from all segments of society. Online entertainment questions

I assume that technology's Dystopian perspectives are relevant to society.

Even though people from every side of the issue claim that this technology would have a utopian or dystopian effect on business or community, society will be adapted to cultural underperformers and much more rational interpretations become. The demands for the impact on society were less severe when society had used technology capabilities, such as phones, television, and even phone line.If they regard the web and all its technological trappings as just a panacea for democracy problems or not, that truth about the capabilities of the internet lies between these utopian or dystopian definitions, like most of the truth.To grasp this technology which is practically transforming society, we have to consider its extreme impact as goods that are culturally incomplete between social diffusion of the Web and digital adoption of technology.

Consider the following pseudocode.
i = 0
sum = 0
REPEAT UNTIL i = 4
i = 1
sum++
DISPLAY sum

What is the output?

Answers

Considering the pseudocode :

i = 0

sum = 0

REPEAT UNTIL i = 4

i = 1

sum++

DISPLAY sum

The output of the pseudocode will be 4.

pseudocode

pseudocode  is a plain language description of the steps in an algorithm or another system.

Let's write the code in python.

i = 0

sum = 0

while i < 4:

   sum += 1

   i += 1

print(sum)

Code explanation:The first line of code, we initialise i as zero.The sum was also initialise as zero.Then we use the while loop to loop through i until its less than 4.Then we add one to the sum for each loop.Then, increase the value of i to continue the loop.Finally, we print the sum.

learn more on pseudocode here : https://brainly.com/question/17101205

Consider the following statements. An abstract class is better than an interface when the variables in the abstract class or interface are likely to have changing values. An interface is better than an abstract class when nearly all of the methods in the abstract class or interface are abstract. An abstract class is better than an interface if new methods are likely to be required in the abstract class or interface in the future. An abstract class is better than an interface if a sub class is likely to need to inherit more than one super class. Which of the choices below is correct?

a. I and Il are true
b. I and III are true
c. II and III are true
d. I, II, and III are true
e. I, III, and I are true

Answers

Well the nonchalant question given for 4th grade red named babyface Justin and Jerome

Consider the following code segment, where num is an integer variable.int[][] arr = {{11, 13, 14 ,15},{12, 18, 17, 26},{13, 21, 26, 29},{14, 17, 22, 28}};for (int j = 0; j < arr.length; j++){for (int k = 0; k < arr[0].length; k++){if (arr[j][k] == num){System.out.print(j + k + arr[j][k] + " ");}}}What is printed when num has the value 14 ?
a. 14 14
b. 18 19
c. 16 17
d. 17 16
e. 19 181/1

Answers

Answer:

c. 16 17

Explanation:

Given

[tex]num = 14[/tex]

The above code segment

Required

The output

In the code segment, we have the following iterations:

for (int j = 0; j < arr.length; j++) and for (int k = 0; k < arr[0].length; k++)

The above iterates through all the elements of the array.

The if condition is true, only on two occasions

(i) When i = 0; j = 2

(ii) When i = 3; j = 0

i.e.

arr[0][2] = 14

arr[3[0] = 14

So, the result of the print statement is: j + k + arr[j][k]

(i) When i = 0; j = 2

j + k + arr[j][k]  = 0 + 2 + 14 = 16

(ii) When i = 3; j = 0

j + k + arr[j][k]  = 3 + 0 + 14 = 17

Hence, (c) 16 17 is true

Write the difference between left-sentential form and
right-sentential form

Answers

Answer:

answer is below

Explanation:

A left-sentential form is a sentential form that occurs in the leftmost derivation of some sentence. A right-sentential form is a sentential form that occurs in the rightmost derivation of some sentence.

d. Chipboard
4. Which component of a computer connects the processor to the other hardw
a. Motherboard
b. CPU
c. Punch card
d. Chip
5. Which is referred to the brain of computer?
a. Processor
b. RAM
c. ROM
d Hard drive
6. How many parts are consists in a computer for information processing cycle?
a. Only one part
b. Two parts
Three parts
d Four parts
7. Which among the following if absent, a computer is not complete?
a. Mouse
b. DVD
c. Projector
d. User
8
GET AT​

Answers

Answer:

7

Explanation:

Adobe Indesign project 4 museum indesign file. The instructions are 70 pages long I cant sit still long enough to read them

Answers

Answer:

? Read on to learn about the possible reasons and resolutions. ... Check whether you have the latest update installed for InDesign. ... InDesign cannot open the file when your system does not have enough memory ... Copy page elements into a new document.

Explanation:

Which one is the answer for the question.

Answers

Answer:

if/else statement

Explanation:

If the condition specified in the if statement is true, the block of code at the if statement is run. If not, the code at the else statement is run.

Implement in a programming language of your choice the void function swap( a, b ) that exchanges the values of 2 passed actual int parameters a and b. State which language you select. Actual parameters a and b are 2 distinct addressable programming objects (variables).

Answers

Answer:

Javascript.

function swap(a, b) {

a = b;

b = a;

// can you explain more, aka for what to return

}

Explanation:

Using a loop and indexed addressing, write code that rotates the members of a 32-bit integer array forward one position. The value at the end of the array must wrap around to the ?rst position. For example, the array [10,20,30,40] would be transformed into [40,10,20,30].

Answers

Answer:

//begin class definition

public class Rotator{

    //main method to execute the program

    public static void main(String []args){

       

       //create and initialize an array with hypothetical values

       int [] arr =  {10, 20, 30, 40};

       

       //create a new array that will hold the rotated values

       //it should have the same length as the original array

       int [] new_arr = new int[arr.length];

       

       

       //loop through the original array up until the

       //penultimate value which is given by 'arr.length - 1'

      for(int i = 0; i < arr.length - 1; i++ ){

           //at each cycle, put the element of the

           //original array into the new array

           //one index higher than its index in the

           //original array.

          new_arr[i + 1] = arr[i];

       }

       

       //Now put the last element of the original array

       //into the zeroth index of the new array

       new_arr[0] = arr[arr.length - 1];

       

       

       //print out the new array in a nice format

      System.out.print("[ ");

       for(int j = 0; j < new_arr.length;  j++){

           System.out.print(new_arr[j] + " ");

       }

       System.out.print("]");

       

    }

   

   

}

Sample Output:

[ 40 10 20 30 ]

Explanation:

The code above is written in Java. It contains comments explaining important parts of the code.  A sample output has also been provided.

write a flow chart for lcm and its algorithim​

Answers

Answer: flowchart linked as an image

Explanation:

The World Health Organization decided that addiction to video games is considered a mental health disorder. Do you agree or disagree?

What responsibility, if any, do game designers have to ensure that users do not misuse their games?

(I’m mainly looking for an answer to the second bit, thank you! ^^)

Answers

Answer:

I disagree and I will tell you why because there was study based on video games and seniors and the theory was that they play games to keep there minds active. I will give you an example let's say you were in a situation and you learned how to make or create something from playing video games, in closeur video games can help us in problems

16238)
Which type of device often controls iot
tasks?
Desktop
Laptop
Samart phone
switch

Answers

Answer:

Consumer connected devices include smart TVs, smart speakers, toys, wearables and smart appliances. Smart meters, commercial security systems and smart city technologies -- such as those used to monitor traffic and weather conditions -- are examples of industrial and enterprise IoT devices.

StringReverser
Given the following code that creates a Scanner and gets a String from the user, finish the code so that the program will:
Output the provided String, input, backwards
Note that the answer should be one phrase - the reverse of input.
The use of an additional method is optional.
SAMPLE OUTPUT
======================
Enter a word or phrase:
this is a test
REVERSED:
tset a si siht

Answers

Answer:

Explanation:

The following code is written in Java, it uses the scanner import to take in a string from the user. Then it uses the string builder import to use the input string and reverse it. Finally outputting the reversed string. The output can be seen in the attached picture below.

import java.util.Scanner;

class Brainly

{

   public static void main(String[] args) {

       Scanner in = new Scanner(System.in);

       System.out.println("Enter a string: ");

       String answer = in.nextLine();

       StringBuilder sb=new StringBuilder(answer);

       sb.reverse();

       System.out.println("Reversed: \n" + sb.toString());

   }

}

Multiply the following two Tom's Tiny floating-point format numbers (8-bit: sign bit, 3-bit 2's complement exponent, 4-bit fraction). Make sure to correctly round the result before putting the answer back in the 8-bit format.

A = 10010011
B = 10101000
AxB = _______

Answers

Answer:

A*B =  00111100

Explanation:

Given data :

A = 10010011

B = 10101000

Find A * B

For A = 10010011  express in sign bit , exponent and number

repeat same process for B

attached below is a detailed solution

A*B =  00111100

You work part time at a computer repair store. You just upgraded the processor in a customer's computer. The computer starts, but it shuts down shortly after starting Windows. Because you know that the problem is related to the processor, you will check any issues related to the processor installation. In this lab, you task is to diagnose and correct the problem.

Answers

Answer:

Explanation:

If the computer is starting up and getting into windows then this means that the processor itself is not dead. First, check to see if the processor fan is spinning correctly when turning on the computer. If it is, then you will need to remove it, and make sure that the processor is perfectly slotted within the cpu slot and that no pins are bent. If this is the case, then clean the cpu top with an alcohol swab and reapply thermal paste. If it is overheating due to any of these reasons it would cause the pc to power off in order to preserve the processor. If none of these fix the problem then it might be a faulty processor or a problem with another component such as the RAM or power cables.

Name the processes that the information processing cycle consist of:​

Answers

Answer:

Hello Dear!...

Explanation:

The information-processing cycle consists of four basic operations: input, processing, output, and storage.

Hope that helps you Buddy..

Buhbye!

Take care!

Q : Write a simple code, which basically takes a integer value from PC terminal and calculates the solutions on Arduino board and replays the answers to the PC terminal.


a. Power of given value.


b. If number is prime number or not.


you should upload your answers with *.c file with necessary comments.

Answers

Answer:

I have uploaded my answers with *.c file with necessary comments.

Explanation:

a. Power of given value.

A

#include <stdio.h>

int main() {

int base, exp;

long long result = 1;

printf("Enter a base number: ");

scanf("%d", &base);

printf("Enter an exponent: ");

scanf("%d", &exp);

while (exp != 0) {

result *= base;

--exp;

}

printf("Answer = %lld", result);

return 0;

}

b. If number is prime number or not.

#include <stdio.h>

int main() {

int n, i, flag = 0;

printf("Enter a positive integer: ");

scanf("%d", &n);

for (i = 2; i <= n / 2; ++i) {

// condition for non-prime

if (n % i == 0) {

flag = 1;

break;

}

}

if (n == 1) {

printf("1 is neither prime nor composite.");

}

else {

if (flag == 0)

printf("%d is a prime number.", n);

else

printf("%d is not a prime number.", n);

}

return 0;

}

Hope this helps!!!

Your disaster recovery plan calls for tape backups stored at a different location. The location is a safe deposit box at the local bank. Because of this, the disaster recovery plan specifies that you choose a method that uses the fewest tapes, but also allows you to quickly back up and restore files. Which backup strategy would best meet the disaster recovery plan for tape backups?

Answers

☞ANSWER☜

Store Physical Backup Media Offsite. Like data stored in the cloud, offline data stored on physical media is susceptible to unauthorized access. Offsite media storage helps significantly reduce the possibility of theft and physical damage to your media assets from fires, floods and natural disasters.

An incremental backup is one in which successive copies of the data contain only the portion that has changed since the preceding backup copy was made. ... Incremental backups are often desirable as they reduce storage space usage, and are quicker to perform than differential backups.

A person wants to buy a house that cost $100,000 but she only has about 20,000 in her savings account she goes to a bank to see if they can help her the bank agrees to lend her enough money to buy the house but she has to pay the money back overtime. This situation best illustrates which function of money?

A. Measure of value
B.Medium of exchange
C.Standard of deferred payment
D.Store of value



Someone please help me ASAP.

Answers

Answer:

B

Explanation:

Since she is exchanging

ik its a dead game but who wants to play agar.io with me? the code is agar.io/#UMDX3A and my name on there is cohen

Answers

Answer:

I git banned lol

Explanation:

(a)
The computer network that covers the whole city is called​

Answers

Answer:

A metropolitan area network, or MAN, consists of a computer network across an entire city, college campus or small region. A MAN is larger than a LAN, which is typically limited to a single building or site. Depending on the configuration, this type of network can cover an area from several miles to tens of miles.

Explanation:

Whatever programming language you use will ultimately need to be translated into binary in order for the computer to understand it.

a. True
b. False

Answers

Answer:

Javascript:

function translate(what) {

if (what) {

return 1;

} else if (!what) {

return 0;

}

}

translate(true);

Explanation:

True is 1;

False is 0;

Other Questions
What happened as a result of corporate-owned radio stations using similarplaylists?A. Pirate radio stations were created to provide more musical variety.B. Lots of independent radio stations began populating the web.C. Federal regulations closed down large corporate-owned stations.D. Custom playlist stations became available on the Internet.SUBMIT What type of relationship do Tom and Laura Wingfield have in The Glass Menagerie?IndifferentAffectionateDistantHostile PLEASE HURRYWhat are the right trianglesPlease Ill give brainlyist {f(1)=15 f(n)=f(n-1)n Whatever programming language you use will ultimately need to be translated into binary in order for the computer to understand it.a. Trueb. False HELPPP IM STUCK ON THIS Consider functions f(x) and g(x). Which expression is equal to f(x)* g(x)? Choose the correct preposition to complete the sentence.The ball flew across the field and landed in front _______ the captain. If a country wants to join the UN, two-thirds of all UN member countries need to approve its application. How many countries need to vote yes for a new nation to join? Q : Write a simple code, which basically takes a integer value from PC terminal and calculates the solutions on Arduino board and replays the answers to the PC terminal. a. Power of given value.b. If number is prime number or not.you should upload your answers with *.c file with necessary comments. The cone and the sphere have the same volume. The diameter of the cone is 24 cm, and the diameter of the sphere is 18 cm.What is the HEIGHT of the CONE? Use 3.14 What is the area of the triangle? does England have any important rivers and lakes? If you place a 38-foot ladder against the top of a 32-foot building, how many feet will the bottom of the ladder be from the bottom of the building? Round to the nearest tenth of a foot. helppppp plzzz i will give brainiest im alost out of time Did the United States learn from past mistakes at the end of world war ll? 8.A bank offers the following rate of interest for fixed deposit:Time (Years)Rate (%)9.01 to 210.02 to 311.0> 312.0The amount (A) after n years is calculated by using the formula :A = P (1 + r/100)Where P = Principal amount deposited, ,R = Rate of interest,n = Number of yearsWrite a program to accept deposited amount (P), number of years the amount is deposited for (n) and computethe accrued amount for an investor. I will give brainiest algebra two I need to show all work so please if you do help please help me with the work portion Which characteristic is common to the 3 major religions practiced in the Middle East?