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
emmainna [20.7K]
3 years ago
7

C++ Question (if and while loops)

Computers and Technology
1 answer:
IceJOKER [234]3 years ago
8 0
Your while statement is in error

<span>while (wage = 0) assigns 0 to wage.

What you want is to compare wage to 0, ie.:

while (wage == 0).

However, comparing double's to some value is very bad practice due to rounding errors. Much safer is to always have a < or > in there:

while (wage < 0.0001)

If you confuse assignment (=) and comparison (==) often, and you don't have a compiler to warn you for this, you can adopt the coding style to put the constant first:

while(0 == x)</span>
You might be interested in
________ is/are used to temporarily hold small units of program instructions and data immediately before, during, and after exec
valentinak56 [21]
The registers are used to temporarily hold small units of data and instructions .<span />
5 0
3 years ago
You have been hired as a Systems Analyst in a famous Burger chain. Due to its popularity, the demands from customers also increa
IceJOKER [234]

a. Assume you are preparing a Customer Satisfaction Questionnaire. What types of questions would you include? Prepare 5 questions that you would ask.

The questions that I would ask would be designed in order for me to know whether our organizational programs have translated to a lower customer satisfaction. Examples of those questions would be:

1. Do you enjoy eating at our place?

2. How would you compare our service  in the past to our service now?

3. How likely are you to recommend our restaurant to your friends?

4. Is there any area where you think we could improve?

5. Do you have any other suggestions for us?

b. What type of questions would you ask the waiters and cooks during the interview? Prepare 5 questions (each) that you would ask waiters and cooks.

I would ask questions that would allow me to determine whether these people are able to work in a fast-paced environment. For example:

1. How good are you at working under pressure?

2. Do you find busy environments stressful?

3. Are you good at multitasking?

4. Have you worked at a busy restaurant before?

5. Do you have a cooperative spirit?

c. What modern requirements determination methods are appropriate for this project?

Prototyping is the requirement that would most help in this task.

7 0
3 years ago
2. Suppose a computer using direct mapped cache has 220 words of main memory and a cache of 32 blocks, where each cache block co
Advocard [28]

Answer:

(a) The block size = 16 words (b) the format for the sizes of the tag, block, and word fields are stated below:

Tag Block Offset  

11 bits 5 bits 4 bits

(c)The memory address 0DB63 will map to 22nd block and 3 byte of a block. (d)  The main advantage of the cache is, when the cache block is made larger or bigger then, there are fewer misses. this occur when the data in the block is used.

One of the disadvantage is that if the data is not used before the cache block is removed from the cache, then it is no longer useful. here there is also a larger miss penalty.

Explanation:

Solution

(a)The Cache of 32 blocks and the memory is word addressable  

The main memory size is not stated, so let's consider it as 2^20  

The main memory size = 2^20  

The block size = 16 words  

The Number of blocks = main memory size/ block size = 2^20/16. = 2^16= 64 K words.

(b) The Main memory is 2^20, which says it is 1 M words size and it requires 20 bits  

Now,

From which 32 cache block requires 2^5, 5 bits and block size means offset requires 2^4, 4 bits

Thus, the sizes of the tag, block, and word fields are stated below:

Tag Block Offset  

11 bits 5 bits 4 bits

(c)The hexadecimal address is 0DB63 , its binary equivalent is  

0000 1101 1011 0110 0011  

The tag = ( first 11 bits) = 0000 1101 101  

block = ( next 5 bits ) = 1 0110  

offset = ( next 4 bits ) = 0011  

Therefore, the memory address 0DB63 will map to 22nd block and 3 byte of a block.

(d) The main advantage of the cache is that, when the cache block is made larger or bigger then, there are fewer misses. this occur when the data in the block is used.

One of the disadvantage is that if the data is not used before the cache block is removed from the cache, then it is no longer useful. here there is also a larger miss penalty.

3 0
3 years ago
1
max2010maxim [7]

Answer:Go to the location where you want to save the file.

Explanation:

8 0
4 years ago
Katie wants to use VLOOKUP for a column in a table. Which value of the mode parameter should she use to look for an exact match
Lapatulllka [165]

The exact match mode is the mode parameter that Katie should use to look for an exact match of the searched data

Further Explanation:

The VLOOKUP function in Excel helps us search for and retrieve information from a particular column in a table and lookups a value in the left-most column of the table. It has two modes of matching.

Exact matching – When you perform a range_lookup, an argument FALSE is defined to mean that there is an exact match of the return value.

  • To achieve this, select a cell in your Excel worksheet
  • Type =VLOOKUP in the type bar of the Excel sheet
  • Select the value to look up and then select the data range
  • Type the column number that you want to search and then type FALSE
  • Press enter

Learn about VLOOKUP in Excel by clicking the links below

brainly.com/question/9579933

brainly.com/question/10686097

#LearnWithBrainly

4 0
4 years ago
Other questions:
  • HELPPP ASAPP
    8·2 answers
  • List the five human relations skills
    12·1 answer
  • Task 1 (25 points): In database [your Pitt username], create the following entity tables: movies actors locations Each tables lo
    7·1 answer
  • Which of the following is true about strings?
    15·1 answer
  • Develop a Java application that provides program output in a logical manner and incorporates appropriate data types. Similar to
    6·1 answer
  • How long does it take to go 80 miles if you are going 80 mph?
    8·2 answers
  • Encapsulation is a form of information hiding and an important characteristic of object-oriented programming. When a programmer
    6·1 answer
  • Differentiate between email and NIPOST System
    12·1 answer
  • In the world of computer languages, whats the most popular language?
    13·1 answer
  • Put these numbers in order from smallest to largest:<br> 1. 00101112<br> 2. 011110<br> 3. 011110112
    12·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!