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
netineya [11]
3 years ago
13

Re-write the following arithmetic expressions as Scheme expressions and show the result of the Scheme interpreter when invoked o

n your expressions. (a) (22+42) (54 x 99).(b) ((22+42) x 54) x 99. (c) 64 x 102 + 16 x (44/22).
Computers and Technology
1 answer:
Gelneren [198K]3 years ago
6 0

Answer:

See Answer Below:

Explanation:

a) (22+42) (54 x 99)

= (22 + 42) × (54 × 99)

  (*      (+ 22 42)

           (* 54 99))

(b)    ((22+42) x 54) x 99

      = (*     (*    (+ 22 42)

                       54

                 99)

(c)  64 x 102 + 16 x (44/22)

   = (+    (* 64 102)

             (* 16

                 (/ 44 22) ) )

You might be interested in
(multiple choice)Select the items that describe possible problems with being unemployed and not earning income.
alexandr402 [8]

When someone is unemployed and not making any income for him or herself, or her or his family, a lot of impacts would be felt by them. They would not be able to afford food for themselves, or support their families in any way that requires monetary relief. They would also have problems in paying for medical treatments. Problems with paying rents and mortgages would also be faced by them.

Thus, the best answer to the question would be all of the above.

5 0
3 years ago
Read 2 more answers
A bakery sells three types of muffins whose prices are as follows: 1- blueberry muffin, $2.98 2- chocolate chip muffin, $4.50 an
andreev551 [17]

Explanation:

The menu is provided as given in the question. A while loop is used to keep getting input from the user until the user enters exit value 0. If elif commands are used to keep track of the respective muffins. Three counters are used to keep the count of each muffin and at the end the quantity of each muffin is multiplied with the price of each muffin then added together to get the total bill.

Python Code:

menu="""****************MENU*******************

Please select your muffins:      

Press 1 for blueberry muffin $2.98      

Press 2 for chocolate chip muffin $4.50

Press 3 for banana muffin $9.98        

Press 0 for exit!                

***************************************"""

print(menu)

blue=0

chock=0

banana=0

flag=0

while flag==0:

   inp=eval(input())

   if inp==1:

       blue+=1

       print("blueberry muffin added")

   elif inp==2:

       chock+=1

       print("chocolate muffin added")

   elif inp==3:

       banana+=1

       print("banana muffin added")

   elif inp==0:

       break

   else:

       print("invalid selection!")    

print("Your bill is: $",blue*2.98+chock*4.50+banana*9.98)

Output:

*******************MENU**********************

Please select your muffins:      

Press 1 for blueberry muffin $2.98      

Press 2 for chocolate chip muffin $4.50

Press 3 for banana muffin $9.98      

Press 0 for exit!

***************************************"*********

2

chocolate muffin added

3

banana muffin added

5

invalid selection!

1

blueberry muffin added

0

Your bill is: $ 17.46

7 0
4 years ago
What does the Attack Time slider let you set?
san4es73 [151]
B.how fast the compressor starts to work
4 0
4 years ago
In the RGB model, which color is formed by combining the constituent colors?
iogann1982 [59]
If you combine maximum values of Red Green and Blue you will get white.
4 0
3 years ago
Read 2 more answers
Which is an example of a variable name written in camelcase?
stiv31 [10]

Answer: songName

-DoggyMan5

4 0
3 years ago
Read 2 more answers
Other questions:
  • Define a Course base class with attributes number and title. Define a print_info() method that displays the course number and ti
    14·1 answer
  • Multiple choice
    9·2 answers
  • Using ______, a smartphone can connect to an automobile audio/control system
    6·1 answer
  • This program will store roster and rating information for a soccer team. Coaches rate players during tryouts to ensure a balance
    7·1 answer
  • Ergonomia este știința care studiază ....
    6·1 answer
  • What is cutting-edge technology
    6·1 answer
  • What is the most likely result of a correctly installed processor, but an incorrectly installed cooler?
    6·1 answer
  • How was the addition of an improvement over early web design?
    11·1 answer
  • Why Do You Need to Set Goals for a LinkedIn Automation Campaign?
    15·1 answer
  • What command will prevent all unencrypted passwords from displaying in plain text in a configuration file?.
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!