What is the result of the following code?
int x = 1;
switch(x)
{
case 1: printf( "Help" );
case 0: printf( "Me" );
break;
case 2: printf( "Hello World" );
}
A. HelpMe
B. Help
C. Help Me
D. Hello World

Answers

Answer 1

Answer:

B: Help

Explanation:

During the execution of this switch statement, it will print "Help" because that's the only case that matches the value of x, it will not print "Me" because that case does not match, so it will fall through that case into the break statement.


Related Questions


2. Which one of the following is the purpose of relating tables in a database?
A. To permit external data only to be viewed.
B. To allow data to be sorted before printing to a report.
C. To enable mathematical calculations to be carried out more efficiently.
D. To avoid duplication of data.

Answers

Answer:

D. To avoid duplication of data.

program that initialises a vector with the following string values: “what” “book” “is” “that” “you” “are” “reading”.

Answers

A program that initializes a vector with the following string values: “what” “book” “is” “that” “you” “are” “reading” are the usage of namespace std;int main().

What is a vector software program?

Vector images software program permits customers to layout and manages pc photos the usage of geometric and mathematical commands, instead of clicks and strokes as utilized in drawing software program. Vector photos created the usage of those applications may be scaled indefinitely with out dropping quality.

#include #include #include the usage of namespace std;int main(); vector::iterator it; for (it = vs.begin(); it != vs.end(); it++) string tmp; while (cin.get()!='n') for (it = vs.begin(); it != vs.end(); it++) }

Read more about the vector :

https://brainly.com/question/25705666

#SPJ1

what are differences between Ram and Rom?​

Answers

Answer:

RAM, which stands for random access memory, and ROM, which stands for read-only memory, are both present in your computer. RAM is volatile memory that temporarily stores the files you are working on. ROM is non-volatile memory that permanently stores instructions for your computer.

Explanation:

Answer:

RAM is random access memory - we can have it even after we shut down the computer. it is volatile .it stores temporarily.

ROM - Read only memory. it is non volatile memory. we can only have it until computer is turn on. after that it's gone.it stores memory permanently

The commented line states that I have assigned a 2D array to a pointer but I want array of such pointers which could store numbers of 2D Array.

Answers

It is impossible to store numbers or contents of 2D array to a pointer array.

How to store pointers in 2D Arrays?

Arrays and pointers are different data structure elements, and there is a limit to the operations that can be performed on both.

Having said that, it is impossible to store numbers or contents of 2D array to a pointer array.

The closest you can do, is to use the following declaration:

int *p[] = {(array-type [][number of columns]) {Array-content}}

Read more about arrays and pointers at:

https://brainly.com/question/17355709

#SPJ1

Answer:

Get the element => *( (int *)aiData + offset ); calculate offset => offset = (1 * coloumb_number)+ 2); Add offset in array base address => (int *)aiData + offset; //here typecast with int pointer because aiData is an array of integer Get the element => *( (int *)aiData + offset );

A date for creation or revision
is mandatory for all web pages?

Answers

Answer:

I do believe so

Explanation:

Most websites have this, as far as I know

prove that A + ĀB = A + B using 1) boolean basic laws and 2) truth table​

Answers

Answer:

projects of sums or POS Boolean expectation may also be generated from two tables quite easy divide determining which rows of the table have and output of zero writing on some term for each row and final multiplying all the some terms this creates a bowler expression representing the truth table as whole

Explanation:

helpful

E. Write an algorithm to show 'How to prepare a cucumber sandwich?". ​

Answers

Answer:

Place slices of bread on plate, side by side...

Postcondition: Sandwich is ready to eat.

Step 1: Start with the number 1.

Step 2: find another person and form a pair.

Step 3: add your numbers together.

Step 4: one person from the pair sits down.

Step 5: the other person goes back to step 2.

If x = 5 and y = 7, will statement if(x!=y) execute?
A. yes
B. no

Answers

A. yes

!= means not equal, so if you substitute, you get if(5 is not equal to 7), which renders True and executes

How are charts useful in Excel worksheets? Name three types of charts available in Excel and describe with an example how each might be used. What are some things you can do with a chart to make the information clearer to a reader? What are some things you can do with a chart to make it more visually appealing?

Answers

Answer:

Spread sheets

Explanation:

Charts are employed to display series of numeric data in a graphical format to help people understand large amounts of data and the relationships between them.

What is a worksheet?

A worksheet is a sheet that is used as a guide in doing some work to make preliminary plans, supplementary computations, notes, or comments.

Charts are used to display a series of numeric data in a graphical format in order to help people understand large amounts of data and their relationships.

Good graphs allow for precise estimation of the quantities represented. The reader must understand the scale used to represent quantity on the graph in order to estimate quantities.

Create your graph with as few elements as possible. Color can help distinguish data sets in a graph, but avoid glaring color combinations (such as chartreuse and violet), as these can be distracting.

Vertical bars are used to describe information in column charts. They can work with a wide range of data, but they are most commonly used for information comparison. Line charts are excellent for displaying trends.

Thus, by using some things like this, one can make charts clearer.

For more details regarding worksheets, visit:

https://brainly.com/question/13129393

#SPJ2

The layer of ISO/OSI that enables someone to access network is

Options:
(a) application
(b) data-link
(c) physical
(d) session

Answers

Answer:

The network layer essentially enables a user to connect to the internet or any available network. From what I understand, the session layer should be the answer since it primarily means establising a connection with a server which only takes place over a network.

Explanation:

4. The volume of a sphere is (4.0/3.0)rr3 and the surface area is 4.0rr2, where r is the radius of
the sphere. Given the radius, design an algorithm that computes the volume and surface area of
the sphere. (You may assume that T-3.141592) (Exercise#17)

Answers

An algorithm that computes the volume and surface area of this sphere include:

Get the radius.Calculate the volume.Calculate the surface area.

What is an algorithm?

An algorithm is a standard formula which comprises a set of finite steps and instructions that must be executed in order to proffer solutions to a problem on a computer, under appropriate conditions.

For this exercise, an algorithm that computes the volume and surface area of this sphere is as follows:

Get the radius.Calculate the volume.Calculate the surface area.

Read more on algorithm here: brainly.com/question/24793921

$SPJ1

Where can you get help to create citations for ProQuest articles?

Select one:

a.

By checking the USP handbook

b.

All of the above

c.

By using ProQuest's "CITE" button

d.

By checking your writing textbook

Answers

B is the correct answer , check under citations in the index .

4.24 LAB: Exact change
Write a program with total change amount as an integer input, and output the change using the fewest coins, one coin type per line. The coin types are Dollars, Quarters, Dimes, Nickels, and Pennies. Use singular and plural coin names as appropriate, like 1 Penny vs. 2 Pennies.

Ex: If the input is:

0
or less than 0, the output is:

No change
Ex: If the input is:

45
the output is:

1 Quarter
2 Dimes

Answers

The Exact change program is an illustration of conditional statements;

Conditional statements are used to make decisions

The Exact change program

The Exact change program written in java programming language, where comments explain each action purposes

import java.util.*;

public class Money{

public static void main(String [] args){

Scanner input = new Scanner(System.in);

// Declare Variables

int amount, dollar, quarter, dime, nickel, penny;

// Prompt user for input

System.out.print("Amount: ");

amount = input.nextInt();

// Check if input is less than 1

if(amount<=0)  {

  System.out.print("No Change");  }

else  {

  // Convert amount to various coins

  dollar = amount/100;   amount = amount%100;

  quarter = amount/25;   amount = amount%25;

  dime = amount/10;   amount = amount%10;

  nickel = amount/5;   penny = amount%5;

  // Print results

  if(dollar>=1)    {

    if(dollar == 1) { System.out.print(dollar+" dollar\n");}

  else { System.out.print(dollar+" dollars\n"); }

}

if(quarter>=1){

if(quarter== 1){System.out.print(quarter+" quarter\n");}

else{System.out.print(quarter+" quarters\n");}

}

if(dime>=1){

if(dime == 1){System.out.print(dime+" dime\n");}

else{System.out.print(dime+" dimes\n");} }

if(nickel>=1){

if(nickel == 1){System.out.print(nickel+" nickel\n");}

else{System.out.print(nickel+" nickels\n");}}

if(penny>=1){

if(penny == 1) {System.out.print(penny+" penny\n");}

else { System.out.print(penny+" pennies\n"); }}}}}

Read more about conditional statements at:

https://brainly.com/question/11073037

#SPJ1

Can someone please tell me how to do this step by step?

ASAP

Answers

The steps that are required to customize elements of a Word document and its formatting to be consistent with other magazine articles are listed below.

How to customize elements and format a document?

In Microsoft Word 2019, the steps that are required to customize elements of a Word document and its formatting to be consistent with other magazine articles include the following:

You should apply a style set.You should change the color of an underline.You should use the Thesaurus.You should change the character spacing, change the font color and update a style.You should apply a character style.You should change the font case.You should insert a Quick Part.You should insert a table of contents.You should change the table of content (TOC) level.You should apply a style.You should update the table of contents.

In conclusion, the end user should update the table of contents as the last step, so as to reflect the change to his or her Word document.

Read more on Microsoft Word here: https://brainly.com/question/25813601

#SPJ1

Complete Question:

As the owner of On Board, a small business that provides orientation services to international students, you are writing an article about starting a business that will be published in an online magazine for recent college graduates. You need to customize elements of the document and its formatting to be consistent with other magazine articles. What are the steps?

(please help) What do you do if Brainly keeps saying your blocked?

Answers

You could probably make a new account if it’s just the account blocked

Create a scenario of a hypothetical company that needs an information system. This scenario should include the following information:
a) Size of the project
b) Staff/experts availability
c) System level of criticality
- Then explain the development methodology (waterfall, agile …etc.) would you choose in this case? Why?

Answers

A  hypothetical company that needs an information system is Memphis drilling and construction company.

What is the size of a project?

This is known to be the  the number of firms taking part in the project and thus in the case above, it is small project.

In terms of Staff/experts availability, there are experts from the mining industry with years of experience, soil survey analyst as well as other minor staff.

In terms of System level of criticality, it is big because the extent to drilling will make use of the information system and other major decisions made.

Learn more about  information system from

https://brainly.com/question/14688347

#SPJ1

Trent is researching what it would take to become a pharmaceutical scientist. What academic requirements should he complete?
A.
an associate’s degree
B.
on-the-job training
C.
technical school
D.
a doctorate degree
E.
a bachelor’s de

Answers

Trent is researching and for Trent to become a pharmaceutical scientist, he needs to complete a doctorate degree. hence, Option D is the correct answer.

What degree is a doctorate?

A doctorate degree can be defined as the best-earned academic degree in U.S postsecondary education. Doctoral tiers usually take 4 or greater years to complete, and the number of credits required for completion can also additionally range relying on the program.

hence, Trent is researching and for Trent to become a pharmaceutical scientist, he needs to complete a doctorate degree.  Option D is the correct answer.

Learn more about doctorate degree:

https://brainly.com/question/21974838

#SPJ1

Which of the following is not a valid technique to create a function stub?

a.
Use a pass statement

b.
Raise NotImplementedError

c.
Print a "FIXME" message and return -1

d.
Leave the function body empty

Answers

An option which isn't a valid technique to create a function stub is to: D. leave the function body empty.

What is a function stub?

A function stub can be defined as a type of function that can be called safely without an error. However, a function stub has no definition because it doesn't actually perform any action when called.

In this context, leaving the function body empty is an option which isn't a valid technique to create a function stub.

Read more on function stub here: https://brainly.com/question/17214711

#SPJ1

Write a program to print each item in the list of your favourite ice cream. please give proper answers. ​

Answers

Answer:

Python

Explanation:

#List Favorite ice-cream

ice_cream = ["Pistachio", "Cookies and cream", "Chocolate", "Banana split" , "Vanilla"]

for flavor in ice_cream:

print(flavor)

codehs 8.2.5 spell it out pls help

Answers

The answer is not here, so you should look down↓:

Explanation:

The programming question requires that we write a function that takes a string and returns every character in it but the first character.

The function in Python, where comments are used to explain each line.

This defines the function too.

This returns every character in the string except the first one.

Review 03 diagnostic and troubleshooting skills including data gathering methods and techniques.

Answers

The kinds and ways to improve your diagnostic and troubleshooting skills are:

Be Relax and never panic when you encounter it.Know everything about your computer. Look for solutions and clues and state them down. Find out the repeatability.

What is diagnostic and troubleshooting?

Diagnosing is known to be the act of finding out the root cause of any issue through an act of elimination but troubleshooting is known to be the act of fixing of the problem after diagnosis is said to have been carried out.

Therefore, The kinds and ways to improve your diagnostic and troubleshooting skills are:

Be Relax and never panic when you encounter it.Know everything about your computer. Look for solutions and clues and state them down. Find out the repeatability.

Learn more about troubleshooting skills from

https://brainly.com/question/14983884

#SPJ1

I want a loyal girlfri,end​

Answers

Answer:

go to dating app

Explanation:

A square QR code contains 40×40 tiny squares (pixels) where each tiny square represents a 0 or a 1. Calculate how many bytes of data can be stored on the QR code​

Answers

Answer:

Explanation:

QR Codes are made of multiple rows and columns. The combination of these rows and columns makes a grid of modules (squares). There can be a maximum of 177 rows and 177 columns which means the maximum possible number of modules is 31,329. With the eye, these are just small squares and mean very little, but the exact arrangement of those modules allows the QR Code to encode its data. This means that, unlike traditional barcodes which are 1 dimensional and use 1 row of lines, QR Codes use 2 dimensions which allows them to store a lot more data in the same area of space.

importance of software in computer​

Answers

Answer:

It allows accomplishing functions using the computer. The software is the instruction we want the computer to process for us.

Explanation:

I want to type a letter. I need a software that can interpret my letters in the keyboard and the program can print what I am typing.

An array called numbers contains 35 valid integer numbers. Determine and display how many of these values are greater than the average value of all the values of the elements. Hint: Calculate the average before counting the number of values higher than the average

Answers

python

Answer:

# put the numbers array here

average=sum(numbers)/35 # find average

count=0 #declare count

for i in numbers: #loop through list for each value

if i > average: #if the list number is greater than average

count+=1 #increment the count

print(count) #print count

Why should we apply print preview before printing the document.​

Answers

to helps them to see how the final printed material will appear. 

If 294.00 units are made and demand is 287.00. Your fixed expenses are $1257.00. Your variable cost per unit is $2.25. Your Sales price is 6.49. The variable expenses for the day is?

Answers

If the  294.00 units are made and the cost per unit is $2.25 then variable expenses for the day is $661.5.

Given that 294.00 units are made and the variable cost per unit is $2.25

We have to find variable expenses for the day.

Total variable expenses for the day are a product of the output and the variable cost per unit.

So the variable expenses = no. of output x variable cost per unit

Variable expenses = 294 x 2.25

Variable expenses = 661.5

Hence the variable expenses for the day is $661.5

Learn more about variable expenses here: https://brainly.com/question/8225307

#SPJ10

a transmitter is operating at 150 MHz with a power of 3 W into a one-quarter wavelength vertical antenna. The receiver, which is 32.2 km away, has an antenna with a gain of 8 dB. What is the received power?

Answers

The received power will be 1.243 nW

We're given:

frequency [tex]f[/tex] = 150MHz

distance of the receiver [tex]d[/tex] = 32.2 km=32200m

Power of transmitter [tex]P_{t}[/tex] = 3W

Antenna gain = 8dB

To find :

Power received [tex]P_{r}[/tex]

[tex]P_{r}= \frac{P_{t} *G_{t}*G_{r}* \lambda^2 }{16*\pi^2*d^2}[/tex]

where [tex]G_{t[/tex] is transmit gain and [tex]G_{r[/tex] is receive gain as refrenced to isotropic source

⇒wavelength [tex]\lambda = \frac{c}{f}[/tex] where c is the speed of the light

⇒  [tex]\lambda = \frac{3*10^8}{150*10^6} =2m[/tex]

[tex]G_{t}= 1*1.64[/tex] ( value of [tex]dipole[/tex] = 1.64)

Now,

Antenna gain[tex]=8dB[/tex] ( in decibals)

⇒[tex]10log(x)=8[/tex]

⇒[tex]x=10^0^.^8=6.3095[/tex]

⇒ considering isotropic receiver

⇒[tex]G_{r}=6.3095*1.64=10.3477[/tex] ([tex]dipole[/tex] =1.64)

Now , using the formula

[tex]P_{r}= \frac{3 *1.64*10.3477 *2^2 }{16*\pi^2*32200^2}=1.2437*10^-^9[/tex]

Hence The received power will be 1.243 nW

Leaen more about communication devices here:

https://brainly.com/question/14530107

#SPJ10

Explain how cache (SRAM) can support CPU pipelining.

Answers

Answer:

The Pipeline Burst Cache is basically a storage area for a processor that is designed to be read from or written to in a pipelined succession of four data transfers. As the name suggests 'pipelining', the transfers after the first transfer happen before the first transfer has arrived at the processor.

Use pseudocode to write a function or procedure that will find the maximum of three numbers a, b, and c.

Answers

Answer:

Check if a > b

   if true -> check if a > c

        if true -> a has the maximum value

        if false -> c has the maximum value

   if false -> check if b > c

        if true -> b is the maximum

         if false -> c is the maximum

Explanation:

To find the maximum, you need to find the largest number.

This can be done by making multiple nested if-statements, comparing 2 variables and finding which one is larger.

Other Questions
Type the correct answer in the box. Use numerals instead of words. If necessary, use / for the fraction bar.Polygon MNOPQ is dilated by a scale factor of 0.8 with the origin as the center of dilation, resulting in the image MNOPQ. The coordinates of point M are (2, 4), and the coordinates of point N are (3, 5).The slope of is Suppose that a person takes a fall while hiking and develops tetanus when the pathogen enters through an open wound in their arm. They do not spread the tetanus infection to anyone else. The tetanus infection is considered to be ______. Prepare the journal entry to record each of the following four separate insurances of stock a. corporation issue 4000 share of 5$ par value common stock for 35000 cash Which of the following compounds would make a good electrolyte?Select one:O a. ethanolO b. carbon dioxideO c. sodium chlorideO d. water What molecule is shown below? Cuales son los personajes principales de la leyenda (El taita imbabura y la mama cotacachi the answer choices is A. x B. z C. w D.y pls help me, I greatly appreciate all the help I'm getting A. received a $600 utility bill for electricity usage in july to be paid in august. b. owed wages to 10 employees who worked three days at $100 each per day at the end of july. the company will pay employees at the end of the first week of august. c. on july 1, loaned money to an employee who agreed to repay the loan in one year along with $1,200 for one full year of interest. no interest has been recorded yet. A sinewave has a period (duration of one cycle) of 460 s. What is the corresponding frequency of this sinewave in kHz, expressed to three significant figures (see Study Note 7.1 in the Using numbers (maths) booklet)?If the frequency of the sinewave is now reduced by a factor of 4.25, what will be the new period value? Express your answer in ms to three significant figures.Note: in the second part of this question, to avoid rounding errors in your calculations, use the full frequency value from the first part, not the rounded value to three significant figures. Stock Alpha has a beta of .79 and a reward-to-risk ratio that is less than the reward-to-risk ratio of Stock Omega. Omega has a beta of 1.12. This information implies that: Group of answer choices Alpha is riskier than Omega and both stocks are fairly priced. Alpha is less risky than Omega and both stocks are fairly priced. either Alpha is underpriced or Omega is overpriced or both. either Alpha is overpriced or Omega is underpriced or both. Alpha is less risky than Omega and both stocks are correctly priced. Scientists group organisms into kingdoms by looking at specific characteristics. Thermus aquaticus, shown below, is a specialized bacteria called a thermophile. Thermophiles are microorganisms that can live in bodies of water that are extremely hot, such as deep sea hydrothermal vents.A microscopic image of thermus aquaticus.Which characteristic most likely describes a mushroom but not Thermus aquaticus?cell walleukaryoticunicellularprokaryotic What mass of YCL3 forms when 10.0 grams of each reactant are combined? What is the solution to the following equation?3( x - 4 ) - 5 = x - 3A. x = 8B. x = 3C. x = 12D. x = 7 1 Select the correct answer from the drop-down menu. sinr O tant = cost. Therefore, tan(90-A) = COST. 1/tan(90-A) 1/sin A 1/cos(90 - A) 1/tan A . (All angle measurements are in degrees.) Reset Next 1 Select the correct answer from the drop - down menu . sinr O tant = cost . Therefore , tan ( 90 - A ) = COST . 1 / tan ( 90 - A ) 1 / sin A 1 / cos ( 90 - A ) 1 / tan A . ( All angle measurements are in degrees . ) Gravity is the attractive pull between two objects that have mass. The strength of the gravitational distance. As distance between the objects increases, the force of gravity decreases. If the distanceone-fourth as strong as before. Which one of the graphs best represents the relationship betweenpull is doubled,gravity and distance. dependson mass and the force of gravity isA. A B. BC. CD. DSorry for the bad picture right now i dont have to take a nice picture Jane has asthma. She wants to find a way to control her asthma without always relying on her rescue inhaler. She visits a hypnotherapist and within a month is less reliant on her inhaler because of the: Please choose the correct answer from the following choices, and then select the submit answer button. posthypnotic suggestions. prehypnotic suggestions. hypermnesia. posthypnotic amnesia. where are mc donalds I have been stuck on this lab this is my program. Given four values representing counts of quarters, dimes, nickels and pennies, output the total amount as dollars and cents.Output each floating-point value with two digits after the decimal point, which can be achieved as follows:print(f'Amount: ${dollars:.2f}')My program:quarters = int(input("Quarters: "))dimes = int(input("Dimes: "))nickels= int(input("Nickels: "))pennies= int(input("Pennies: "))dollars = (quarters * 0.25 + dimes * 0.10 + nickels * 0.05 + pennies * 0.01)print("Amount: ${:.2f}".format(dollars))not sure why my answer is for wrong.my output is: (with input) 1 2 3 4 Quarters: Dimes: Nickels: Pennies: Amount: $1.41expected out put is : Amount: $1.41What about my code adds the extra part to my answer? Its about creating and Solving Linear Equations by writing linear equations from geometric figures please help A government-imposed price ceiling set below the market's equilibrium price will create a shortage for a product. As a result of the shortage, either the demand curve will tend to shift to the left or the supply curve will shift to the right or both.