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
boyakko [2]
3 years ago
5

Your task is to fill in the missing parts of the C code to get a program equivalent to the generated assembly code. Recall that

the result of the function is returned in register %eax. You will find it helpful to examine the assembly code before, during, and after the loop to form a consistent mapping between the registers and the program variables.
Engineering
1 answer:
Rudik [331]3 years ago
6 0

Answer:

See Explaination

Explanation:

//Function

long loop (long x, long n)

{

//Declare a variable named result and initialize it to zero

long result = 0;

//Declare a variable named mask

long mask;

//For loop

for(mask = 1; mask != 0; mask = mask << (n & 0xFF))

{

//Calculate

result | = (x&mask);

}

//Return result

return result;

}

You might be interested in
The cylinder C is being lifted using the cable and pulley system shown.
Sonja [21]

Answer:

sry but it's kinda hard

4 0
3 years ago
25 points and brainliest is it A, B, C, D
Bogdan [553]

Answer:

SIR IT IS D HOPE THIS HELPS (☞゚ヮ゚)☞☜(゚ヮ゚☜)

Explanation:

4 0
3 years ago
Read 2 more answers
A cylindrical tank is required to contain a gage pressure 520 kPa . The tank is to be made of A516 grade 60 steel with a maximum
enot [183]

Answer:

t= 4.5 mm

Explanation:

Given that

P = 520 KPa ( gauge)

Maximum allowable normal stress ,σ= 150

d= 2.6 m

Wall thickness = t

The normal stress for pressure vessel given as

\sigma=\dfrac{Pd}{2t}               ( hoop stress)

We always take maximum stress for safe design.

\sigma=\dfrac{Pd}{2t}

Now by putting the values

150\times 1000=\dfrac{520\times 2.6}{2t}

t= 4.5 mm

So the minimum thickness, t, of the wall is 4.5 mm

4 0
4 years ago
11. Ten bagels is what percentage of a dozen bagels?
IRINA_888 [86]

Answer:

the answer is d 83.3%

Explanation:

3 0
3 years ago
In part A you are asked to write the pseudocode for the program. In part B you are asked to write the syntax of the code for the
Naya [18.7K]

Answer:

C++.

Explanation:

#include <iostream>

#include <string>

using namespace std;

///////////////////////////////////////////////////////////////

int main() {

   string quote, book;

   int page;

   

   cout<<"What is your favorite quote from a book?"<<endl;

   getline(cin, quote);

   cout<<endl;

   /////////////////////////////////////////////

   cout<<"What book was that quote from?"<<endl;

   getline(cin, book);

   cout<<endl;

   /////////////////////////////////////////////

   cout<<"What page was that quote from?"<<endl;

   cin>>page;

   cout<<endl;

   /////////////////////////////////////////////

   int no_of_upper_characters = 0;

   for (int i=0; i<quote.length(); i++) {

       if (isupper(quote[i]))

          no_of_upper_characters++;

   }

   

   cout<<"No. of upper case characters: "<<no_of_upper_characters<<endl;

   /////////////////////////////////////////////

   int no_of_characters = quote.length();

   cout<<"No. of characters: "<<no_of_characters<<endl;

   /////////////////////////////////////////////

   bool isDog = false;

   for (int i=0; i<quote.length(); i++) {

       if (isDog == true)

           break;

       else if (quote[i] == 'd') {

           for (int j=i+1; j<quote.length(); j++) {

               if (isDog == true)

                   break;

               else if (quote[j] == 'o') {

                   for (int z=j+1; z<quote.length(); z++) {

                       if (quote[z] == 'g') {

                           isDog = true;

                           break;

                       }

                   }

               }

           }

       }

   }

   

   if (isDog == true)

       cout<<"This includes 'd' 'o' 'g' in the quote";

   //////////////////////////////////////////////

   return 0;

}

3 0
3 years ago
Other questions:
  • What does basic levels of competence involves??​
    13·2 answers
  • How does a carburetor work?
    7·1 answer
  • A classroom that normally contains 40 people is to be air-conditioned with window air-conditioning units of 5 kW cooling capacit
    6·1 answer
  • Consider five wireless stations A,B,C,D,E. Station
    5·2 answers
  • Consider a 5 m long, air-filled section of a coaxial transmission line, given that the radius of the inner conductor is 10 cm an
    7·1 answer
  • Fill in the blank to output the quotient of dividing 100 by 42. print (100______42)​
    8·1 answer
  • Expert Review is done by end users.
    9·1 answer
  • A proposed embankment fill requires 7100 ft of compacted soil. The void ratio of the compacted fill is specified as 0.5. Four bo
    10·1 answer
  • If fog is so bad that I can’t see for short distance what should I do
    9·2 answers
  • Work to be performed can come from the work package level of the work breakdown structure as well as other sources. Which of the
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!