Draw the Abstract Syntax Trees for the following statements and represent them in text form. i) 1+2+3 ii) 6÷3×4+3

Answers

Answer 1

Answer:

your a legend you can do it just pleave

Explanation:

:)


Related Questions

You are working for a company that is responsible for determining the winner of a prestigious international event, Men’s Synchronized Swimming. Scoring is done by eleven (11) international judges. They each submit a score in the range from 0 to 100. The highest and lowest scores are not counted. The remaining nine (9) scores are averaged and the median value is also determined. The participating team with the highest average score wins. In case of a tie, the highest median score, among the teams that are tied for first place, determines the winner.
Scoring data is be provided in the form of a text file. The scoring data for each team consists of two lines; the first line contains the team name; the second line contains the eleven (11) scores. You will not know ahead of time how many teams will participant. Your program will:
Prompt the user for the name and location of the scoring data file.
Process the sets of records in the file.
Read and store the team name in a string variable.
Read and store the scores in an array.
Display the team name followed by the complete set of scores on the next line.
Calculate and display to two decimal places the average of the nine qualifying scores, dropping the lowest and highest scores.
Determine and display the median value among the qualifying scores.
Display the count of the number of participating teams.
Display the winning team name and their average score. Indicate if they won by breaking a tie with a higher median score value.
A sample data file has been provided to allow you to test your program before submitting your work. Records in the sample data file look like this:
Sea Turtles
11 34 76 58 32 98 43.5 87 43 23 22
Tiger Sharks
85 55 10 99 35 5 65 75 8 95 22
The Angry Piranhas
30 10 80 0 100 40 60 50 20 90 70
The average score for the Sea Turtles was 46.5. The Angry Piranhas and the Tiger Sharks both had an average score of 50.0. The tiger sharks had a median value of 55.0, making them the winners of the competition.
You will define and use at least one function in your solution. As a suggestion, you should consider calling a function that sorts the array of judge’s score values into ascending order (lowest to highest). The advantage of doing this is that after being sorted, the lowest value is the first entry in your array and the highest value is the last entry in your array.
The average or arithmetic mean is a measure of central tendency. It is a single value that is intended to represent the collection of values. For this problem, you will only use nine of the values to determine the average. You will not include the highest score and the lowest score.
The median is another measure of central tendency. The median is often referred to as the middle value. In a set of values, half the values are less than the median and the other half are greater than the median. In a sorted array of five elements, the median is the third element. There are two values that are less then it and there are two values that are greater than it. In a sorted array of six values, the median is the simple average of the third and fourth values. In some cases, the median is a better representative value than the average.
You are encouraged to read the article entitled "Mixing getline with cin".
To receive full credit for this programming assignment, you must:
Use the correct file name.
Submit a program that executes correctly.
Interact effectively with the user.
Grading Guideline:
Correctly name the file submitted.
Create a comment containing the student’s full name.
Document the program with other meaningful comments.
Prompt the user for a file name and location.
Open, read, and process all the data in the input file.
Store the judge’s scores in an array.
Correctly display the team name and all scores.
Calculate and display the average score correctly.
Calculate and display the median score correctly.
Correctly count and display the number of competing teams.
Correctly determine and display the winning team and score.

Answers

Answer:

my sql

Explanation:

try with mysql

and database build

What are recommended CPUs?

Answers

INTEL:

It does vary depending on your PC use, however, for office work, the i5 8th Gen is a recommended CPU as it can handle the requirements for office use without stress. For Gaming and high-end use, the i9 is a recommended CPU as it can handle games easily without stress.

AMD:

AMD Ryzen 3 3300X is good for office work and can handle office scenarios and the AMD Ryzen 7 3800x is good for gaming and high-end use.

Hope this helps,

Azumayay

1
Select the correct answer from each drop-down menu.
What Is DHTML?
DHTML Is
It allows you to add functionality such as
Reset
Next

Answers

Answer:

DHTML (Dynamic HTML) is a collection of a few different languages

Explanation:

Dynamic HTML is a collection of HTML, DOM, JavaScript, and CSS.

It allows for more customizability than regular HTML. It allows scripts (JavaScript), webpage styling (CSS), manipulation of static objects (DOM), and building of the initial webpage (HTML).

Since the question is incomplete, I'm not really sure what all you need answered - please leave a comment if you would like something else explained. :)

Is there SUM in Small basic? ​

Answers

Answer:

no

Explanation:

Write a program that prompts the user to enter two positive integers less than 1,000,000,000 and the program outputs the sum of all the prime numbers between the two integers. Two prime numbers are called twin primes, if the difference between the two primes is 2 or -2. Have the program output all the twin primes and the number of twin primes between the two integers.

Answers

Answer:

In Python:

low = int(input("Low: "))

high = int(input("High: "))

if low >= 1000000000 or high >=1000000000:

   print("Out of range")

else:

   mylist = []

   for num in range(low,high+1):

       flag = False

       if num > 1:

           for i in range(2, num):

               if (num % i) == 0:

                   flag = True

                   break

       if not flag:

           mylist.append(num)

           print(num, end = " ")

   print()

   print("The twin primes are: ",end="")

   count = 0

   for i in range(1,len(mylist)):

       if mylist[i] - mylist[i-1] == 2:

           print(str(mylist[i])+" & "+str(mylist[i-1]),end=", ")

           count+=1

   print()

   print("There are "+str(count)+" twin primes")

Explanation:

See attachment for complete program where comments were used to explain each line

3 uses of Microsoft word in hospital

Answers

Explanation:

You can write, edit and save text in the program.

What is the full form of 'Rom

Answers

Answer:

Read-only memory

Explanation:

Read-only memory is a type of non-volatile memory used in computers and other electronic devices. Data stored in ROM cannot be electronically modified after the manufacture of the memory device.

What is picture ..............​

Answers

Answer:

In its most general sense, a picture is a visual representation of something, especially in the form of a painting, drawing, photograph, or the like. A picture can also refer to a mental image, among other senses.

Which component of an email gives the recipient an idea of the email’s purpose and urgency?

A.
signature
B.
salutation
C.
CC and BCC
D.
subject line

Answers

Answer:

subject line

Explanation:

it is a brief description of what the email subject is.

5. In an array-based implementation of the ADT list, the getEntry method locates the entry by a. going directly to the appropriate array element b. searching for the entry starting at the beginning of the array working to the end c. searching for the entry starting at the end of the array working to the beginning d. none of the above

Answers

Expert Answer for this question-

Explanation:

Answer- C

What is output given the user input? >three blind mice System.out.print("Enter info: "); Scanner keyboard = new Scanner(System.in); String info = keyboard.nextLine(); Scanner inputScnr = new Scanner(info); int item1 = inputScnr.nextInt(); String item2 = inputScnr.next(); String item3 = inputScnr.next(); System.out.println(item1 + " " + item2 + " " + item1); A. blind mice3 B. 3 mice C. 3 blind miceD. Error: input mismatch exception

Answers

Answer:

Probably would be D.

In the print statement...

System.out.println(item1 + " " + item2 + " " + item1)

this would mean the pattern of the output is "ABA". There is no answer that matches that pattern.

We would see a number at the start, something in the middle and then the number again at the end. Because this is not an option in our answers, by process of elimination, we can determine that the only answer which must be correct is D.

Somewhere along there is also input mismatch exception apparently.

, ¿hacia dónde crees que va el hombre en su afán permanente de mejorar e innovar? ¿será que mejora nuestra condición humana, o será que nos deshumaniza?

Answers

Responder:

Por favor, consulte la explicación.

Explicación:

La pregunta aquí puede verse desde una perspectiva diferente basada en la noción individual. Desde mi propia perspectiva, el deseo de innovar es algo que debe promoverse por varias razones que incluyen; Evitar el estancamiento, impulsar la economía y el comercio, promover la relajación y reducir el estrés humano, entre otros. Sin embargo, la innovación ha visto realmente un aumento drástico en el nivel de automatización utilizando varias herramientas tecnológicas como la inteligencia artificial, el aprendizaje automático, Internet de las cosas, etc., lo que ha provocado una predicción generalizada de que la demanda de humanos se reducirá. Desde mi propio punto de vista, los humanos crearon y programaron estos sistemas y creo que es hora de que más humanos se vuelvan cada vez más conocedores de la tecnología, ya que este aumento en la capacidad innovadora ha ayudado a multiplicar el número y la velocidad a la que se están resolviendo los problemas. Por tanto, creo que el deseo humano de innovar mejora nuestra condición humana.

The microprogram counter (MPC) contains the address of the next microcode statement for the Mic1 emulator to execute. The MPC value is either the next sequential microcode instruction in the control store (PROM), or a microcode instruction in the control store pointed to by the ADDR bits in the current executing microinstruction. What part of the current executing microcode instruction determines the value placed in the MPC

Answers

Answer:

MAR bit

Explanation:

The MPC computers area set of software and hardware standards that was developed by the consortium of computer firms which is led by Microsoft. It contains the address of a next microcode for the Mic1 emulator foe execution.

The part of the executing microcode instruction that determines the value which is placed in the MOC is the MAR bit. The MAR is the memory address register in the CPU which stores the memory address or such addresses to which some data will be sent and also stored.

which type of secondary storage has a fast reading access among the secondary storage​

Answers

Answer:

RAM provides much faster accessing speed to data than secondary memory. By loading software programs and required files into primary memory(RAM), computer can process data much more quickly. Secondary Memory is slower in data accessing. Typically primary memory is six times faster than the secondary memory.

Which of the following parameters is optional sample(a,b,c,d=7

Answers

Parameter D is Optional as it is already assigned to an integer value: 7.

The optional Parameter is D as it is said to be assigned  an integer value of 7.

What are optional parameters?

This is known to be a process  that  is made up of optional choices that one do  not need to push or force so as to pass arguments at their set time.

Note that The optional Parameter is D as it is said to be assigned  an integer value of: 7 because it implies that one can use the call method without pushing the arguments.

Learn more about Parameter from

https://brainly.com/question/13151723

#SPJ2

A disk has 4000 cylinders, each with 8 tracks of 512 blocks. A seek takes 1 msec per cylinder moved. If no attempt is made to put the blocks of a file close to each other, two blocks that are logically consecutive (i.e. follow one another in the file) will require an average seek, which takes 5 msec. If, however, the operating system makes an attempt to cluster related blocks, the mean interblock distance can be reduced to 2 cylinders and the seek time reduced to 100 microsec. How long does it take to read a 100 block file in both cases, if the rotational latency is 10 msec and the transfer time is 20 microsec per block

Answers

Answer:

The answer is below

Explanation:

a)

If the blocks of a file are not put together, that is for nonadjacent block of files to each other, the time (t) taken to read a 100 block file is:

t = (average seek + rotational latency + transfer time) * 100 block

Average seek = 5 msec, rotational latency = 10 msec and transfer time = 20 microsec = 0.02 msec

t = (5 + 10 + 0.02) * 100 = 1502 msec

b)

If the blocks of a file are put together, that is for adjacent block of files to each other, the time (t) taken to read a 100 block file is:

t = (seek time * mean interblock distance + rotational latency + transfer time) * 100 block

seek time = 100 microsec = 0.1 msec, rotational latency = 10 msec and transfer time = 20 microsec = 0.02 msec, mean interblock distance = 2 cylinders

t = (0.1*2 + 10 + 0.02) * 100 = 1022 msec

Other Questions
Summarize the text in the tale tell heart story by edger poe . List five to seven key events from the story in the order in which they happen. Your summary should include main points from the beginning, middle, and end of the story. which party believed that the germans were a superior race? How many miles long was the route traveled by the Seminoles? What type of relationship involves an organism using another fortransportation or housing? Someone pls help me in French homework Jenny earns a 77 on her most recent test. Jenny's score is no less than 5 points greater than 4/5 of Terrance's score. If t represents Terrance's score, which inequality represents the situation? The two numbers that multiply to 36 and add to -20 are omar paid $5 for his lunch and left $3 tip. what percent did omar tip his server And how u got it :))) PromptDescribe tu personalidad, cmo eres?Read More >> how to find surface area of trapezoid. vaughn Inc. acquired all of the outstanding common stock of Roberts Co. on January 1, 2020, for $276,000. Annual amortization of $21,000 resulted from this acquisition. Vaughn reported net income of $80,000 in 2020 and $60,000 in 2021 and paid $24,000 in dividends each year. Roberts reported net income of $50,000 in 2020 and $57,000 in 2021 and paid $12,000 in dividends each year. What is the Investment in Roberts Co. balance on Vaughn's books as of December 31, 2021, if the equity method has been applied Microsoft hires several engineers and technologists who hail from several countries. What effects has Microsoft had on the local sub-culture of WA State? How did Korea come to be divided into North Korea and South Korea, which later resulted in the Korean War?AAfter World War II, Russia and the United States divided control of Korea into North and SouthBJapan ruled Korea and divided it into North and South to weaken Korea's powerCommunist China and Nationalist China divided Korea into two countries, one communist and one free.DKorea held national elections after World War II and chose to be two separate nations. Need answer Now!!618 is 75% what is 100%? Find the area of a triangular garden if the sides are approximately 6 feet, 14 feet, and 13 feet (to the nearest square foot).546 ft239 ft210 ft2578 ft2 Which group has more people? can someone help find x, y, and z 1Questo 10 - Um capital aplicado aumos simples durante 2 anos, sobtaxe de juros de 5% ao ms, gerouum montante de R$ 26.950,00.valor do capitalaplicado In what ways were economic difficulties a factor in the rise of Nazi's political power?