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
DiKsa [7]
3 years ago
6

Assume a function requires 20 lines of machine code and will be called 10 times in the main program. You can choose to implement

it using a function definition or a macro definition. Compared with the function definition, macro definition will lead the compiler to generate, for the entire program, ______
Engineering
1 answer:
Volgvan3 years ago
7 0

Answer:

"Macro Instruction"

Explanation:

A macro definition is a rule or pattern that specifies how a certain input sequence should be mapped to a replacement output sequence according to a defined procedure. The mapping process that instantiates a macro use into a specific sequence is known as macro expansion.

It is a series of commands and actions that can be stored and run whenever you need to perform the task. You can record or build a macro and then run it to automatically repeat that series of steps or actions.

You might be interested in
LAB 3.3 – Working with String Input and Type CastingStep 1: RemovefindErrors.cppfrom the project and add thepercentage.cppprogra
jolli1 [7]

Answer:

// Program is written in C++ Programming Language

// Comments are used for explanatory purpose

#include<iostream>

using namespace std;

int main ()

{

// Variable declaration

string name;

int numQuestions;

int numCorrect;

double percentage;

//Prompt to enter student's first and last name

cout<<"Enter student's first and last name";

cin>>name; // this line accepts input for variable name

cout<<"Number of question on test"; //Prompt to enter number of questions on test

cin>> numQuestions; //This line accepts Input for Variable numQuestions

cout<<"Number of answers student got correct: "; // Prompt to enter number of correct answers

cin>>numCorrect; //Enter number of correct answers

percentage = numCorrect * 100 / numQuestions; // calculate percentage

cout<<name<<" "<<percentage<<"%"; // print

return 0;

}

Explanation:

The code above calculates the percentage of a student's score in a certain test.

The code is extracted from the Question and completed after extraction.

It's written in C++ programming language

4 0
4 years ago
Discuss in detail the following methods used to redistribute income and wealth in cash grants?​
aev [14]

Answer:

Redistribution of income and wealth is the transfer of income and wealth (including physical property) from some individuals to others through a social mechanism such as taxation, welfare, public services, land reform, monetary policies, confiscation, divorce or tort law.

-The term typically refers to redistribution on an economy-wide basis rather than between selected individuals.

Interpretations of the phrase vary, depending on personal perspectives, political ideologies and the selective use of statistics.

-It is frequently heard in politics, usually referring to perceived redistribution from those who have more to those who have less. Occasionally, however, it is used to describe laws or policies that cause opposite redistribution that shift monetary burdens from low-income earners to the wealthy.

-

The phrase is often coupled with the term class warfare, with high-income earners and the wealthy portrayed as victims of unfairness and discrimination.

-

Redistribution tax policy should not be confused with predistribution policies. "Predistribution" is the idea that the state should try to prevent inequalities from occurring in the first place rather than through the tax and benefits system once they have occurred. For example, a government predistribution policy might require employers to pay all employees a living wage, not just a minimum wage, as a "bottom-up" response to widespread income inequalities or high poverty rates.

Many alternate taxation proposals have been floated without the political will to alter the status quo. One example is the proposed "Buffett Rule", which is a hybrid taxation model composed of opposing systems, intended to minimize the favoritism of the special interest tax design.

7 0
3 years ago
In a certain chemical plant, a closed tank contains ethyl alcohol to a depth of 71 ft. Air at a pressure of 17 psi fills the gap
Yuliya22 [10]

Answer:

the pressure at a closed valve attached to the tank 10 ft above its bottom is 37.88 psi

Explanation:

Given that;

depth 1 = 71 ft

depth 2 = 10 ft

pressure p = 17 psi = 2448 lb/ft²

depth h = 71 ft - 10 ft = 61 ft

we know that;

p = P_air + yh

where y is the specific weight of ethyl alcohol ( 49.3 lb/ft³ )

so we substitute;

p = 2448 + ( 49.3 × 61 )

= 2448 + 3007.3

= 5455.3 lb/ft³

= 37.88 psi

Therefore, the pressure at a closed valve attached to the tank 10 ft above its bottom is 37.88 psi

5 0
3 years ago
The correct area in sq. Inches and sq. Feet is: Select one: a. 966.76 sq. Inches and 8.056 sq. Feet b. 96.676 sq. Inches and 8.0
kogti [31]

Answer:

c. 96.676 sq. Inches and 0.671 sq. Feet

Explanation:

From the list of the given option, we are told to chose the correct area in sq. inches that correspond to sq. Feet.

If we recall from the knowledge of our conversion  table that,

1 sq feet = 144 sq inches

Then, let's confirm if the option were true.

a.  966.76 sq. Inches and 8.056 sq. Feet

Assuming

if 1 sq feet = 8.056

in sq inches, we have ( 8.056 × 144 ) sq inches

= 1160.064 sq. inches

So, 1160.064 sq. inches is equal to 8.056 sq. Feet. Then option 1 is wrong

b. 96.676 sq. Inches and 8.056 sq. Feet

if 1 sq feet = 8.056

in sq inches, we have ( 8.056 × 144 ) sq inches

= 1160.064 sq. inches

So, 1160.064 sq. inches is equal to 8.056 sq. Feet. Then option 2 is wrong/

c. 96.676 sq. Inches and 0.671 sq. Feet

if 1 sq feet = 0.671

in sq inches, we have ( 0.671 × 144 ) sq inches

=  96.624 sq. Inches which is closely equal to 96.676 sq. Inches

Therefore, this is the correct answer as it proves that 96.676 sq. Inches = 0.671 sq. Feet

8 0
3 years ago
Engine oil (unused) flows at 1.81 x 10^-3 kg/s inside a 1-cm diameter tube that is heated electrically at a rate of 76 W/m. At a
Ann [662]

Answer:

(a)Tb = 330.12 K (b)Tc =304.73 K (c)19.81 K/m (d) h =60.65 W/m². K

Explanation:

Solution

Given that:

The mass flow rate of engine oil m = 1.81 x 10^-3 kg/s

Diameter of the tube, D = 1cm =0.01 m

Electrical heat rate, q =76 W/m

Wall Temperature, Ts = 370 K

Now,

From the properties table of engine oil we can deduce as follows:

thermal conductivity, k =0.139 W/m .K

Density, ρ = 854 kg/m³

Specific heat, cp = 2120 J/kg.K

(a) Thus

The wall heat flux is given as follows:

qs = q/πD

=76/π *0.01

= 2419.16 W/m²

Now

The oil mean temperature is given as follows:

Tb =Ts -11/24 (q.R/k) (R =D/2=0.01/2 = 0.005 m)

Tb =370 - 11/24 * (2419.16 * 0.005/0.139)

Tb = 330.12 K

(b) The center line temperature is given below:

Tc =Ts - 3/4 (qs.R/k)= 370 - 3/4 * ( 2419.16 * 0.005/0.139)

Tc =304.73 K

(c) The flow velocity is given as follows:

V = m/ρ (πR²)

Now,

The The axial gradient of the mean temperature is given below:

dTb/dx = 2 *qs/ρ *V*cp * R

=2 *qs/ρ*[m/ρ (πR²) *cp * R

=2 *qs/[m/(πR)*cp

dTb/dx = 2 * 2419.16/[1.81 x 10^-3/(π * 0.005)]* 2120

dTb/dx = 19.81 K/m

(d) The heat transfer coefficient is given below:

h =48/11 (k/D)

=48/11 (0.139/0.01)

h =60.65 W/m². K

8 0
3 years ago
Other questions:
  • The volume at a section of a 2-lane highway is 1800 vph in each direction and the density is approximately 30 bpm. A slow moving
    10·1 answer
  • A water pump delivers 6 hp of shaft power when operating. The pressure differential between the outlet and the inlet of the pump
    9·1 answer
  • Using Von Karman momentum integral equation, find the boundary layer thickness, the displacement thickness, the momentum thickne
    14·1 answer
  • An air conditioner using refrigerant-134a as the working fluid and operating on the ideal vapor-compression refrigeration cycle
    7·2 answers
  • Yasir is trying to build an energy-efficient wall and deciding what materials to use. How can he calculate the thermal resistanc
    6·1 answer
  • Electrical pressure or “force”<br><br> A) current<br> B) resistance <br> C) voltage
    6·1 answer
  • What factors are likely to promote the formation of stress corrosion cracks?
    8·1 answer
  • Which of the following tape measure techniques can be used to achieve accurate measurements? Choose all that apply.
    14·1 answer
  • On the position time curve, if the slope of a tangent at a point is positive, that means:
    6·2 answers
  • If the old radiator is replaced with a new one that has longer tubes made of the same material and same thickness as those in th
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!