1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
KonstantinChe [14]
3 years ago
7

1) a) Create an unambiguous grammar which generates basic mathematical expressions (using numbers and the four operators , -, *,

/). Without parentheses, parsing and mathematically evaluating expressions created by this string should give the result you'd get while following the order of operations. For now, you may abstract "number" as a single terminal, n. In the order of operations, * and / should be given precendence over and -. Aside from that, evaluation should occur from left to right. So 8/4*2 would result in 4, not 1. 1 2*3 would be 7. 4 3*5-6/2*4 would be 4 15-6/2*4

Computers and Technology
1 answer:
Temka [501]3 years ago
8 0

Answer:

Explanation:

CHECK THE ANSWER IN THE ATTACHMENT CORNNER

You might be interested in
Anybody know how to code?
Anni [7]

▪︎An onscreen camera for drawing virtual images is called "turtle" in python language.

\hookrightarrowThe codes we will be using in the following algorithm are :

▪︎Turtle.left

▪︎Turtle.right

▪︎Turtle.move #upward

\hookrightarrow An algorithm to help the python turtle reach the finish line :

  1. Turtle.left
  2. Turtle.left
  3. Turtle.left
  4. Turtle.move#upward
  5. Turtle.move#upward
  6. Turtle.move#upward
  7. Turtle.right
  8. Turtle.right
  9. Turtle.move#upward
  10. Turtle.left
3 0
3 years ago
1.The character escape sequence to force the cursor to go to the next line is________: 2. The character escape sequence to force
Luda [366]

Answer:

Hi there Kaylee! The answers to the blanks are as follow:

1.The character escape sequence to force the cursor to go to the next line is \n

2. The character escape sequence to force the cursor to advance forward to the next tab setting is \t  

3.The character escape sequence to represent a single quote \'

4.The character escape sequence to represent a double quote is \"

5.The character escape sequence to represent a backslash is \\

Explanation:

Character escape sequences are used for processing of special characters that may otherwise be used in a context where those characters are reserved as keywords or carry other symbolic reference. If these are not escaped, the output will not be correct.  

6 0
3 years ago
Complete the printtictactoe function with char parameters horizchar and vertchar that prints a tic-tac-toe board with the charac
lora16 [44]
Void printtictactoe(char horizchar, char vertchar)
{
int i,j;
int scale = 5;

for(j=0; j<3; j++) {
   for (i = 0; i < scale; i++)
      printf("%*c%*c\n", scale+1, vertchar, scale+1, vertchar);
      if (j < 2) 
         for (i = 0; i < (scale * 3)+2; i++)
             printf("%c", horizchar);
             printf("\n");
    }
}

I left out many braces because of the layout issues with this website. There is a scale factor you can set to the desired size of the board cells!
3 0
3 years ago
Write a program to read a sentence which is a single string. Then count the number of words in the sentence. The program will re
patriot [66]

Answer:

The program in Python is as follows:

sentence = input("Sentence: ")

words = len(sentence.split())

print("Words:", words)

Explanation:

This reads the sentence for the user

sentence = input("Sentence: ")

This counts the number of words

words = len(sentence.split())

This prints the number of words

print("Words:", words)

6 0
3 years ago
What features do you think that a smart fridge should have? Please give me a quick answer! And in detail.
Lina20 [59]
A smart fridge should have a variety of functions. The most important function of a smart fridge and the main incentive to purchase one is the ability to see the food in your fridge at a glance. This refrigerator should be programmed to recognize barcodes and keep track of the stock of certain items. Also, there should be other feature such as the ability to see calendars, create grocery lists, have it read recipes out loud, and more. A feature that should be added is more software protection to defend against hackers, and overall optimization to reduce the price.
7 0
3 years ago
Other questions:
  • Write an expression that computes the average of the values 12 and 40.
    6·1 answer
  • Which command will display each line in the text file based on the alphabet?
    10·1 answer
  • Ancler Corporation wants to calculate how much their profits were in the first quarter of the year. They should use a
    6·2 answers
  • The amount of pressure a power source creates to move electrons. *
    9·1 answer
  • What is the purpose of a poster frame?
    5·2 answers
  • What happens when you run a program in Python? ​
    12·2 answers
  • Given that the input A is false, the input B is false, and the input C is true, what is the resulting value of the output?
    12·1 answer
  • ________is the most popular public key algorithm available and can be used for digital signatures, key exchange, encryption, and
    10·2 answers
  • A hydraulic lift has a mechanical advantage of 5. If the load weighs 350 N, what effort is required to lift the weight? Provide
    5·1 answer
  • What does this function do?
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!