write a complete c++ program using function and array.​

Answers

Answer 1

Answer:

Index Value Hash

0 1 $

1 2 $$

2 3 $$$

3 4 $$$$

4 5 $$$$$

Explanation:


Related Questions

Code Example 9-1 struct Product { string name; double price; int quantity; }; (Refer to Code Example 9-1.) Given a Product object named product, which of the following statements would you use to display the value of the name data member on the console? a. cout << product::name; b. cout << product.name; c. cout << product("name"); d. cout << product[0];

Answers

Answer:

a. cout << Product ::name;

Explanation:

Computer software use different languages which helps user to initiate command. When a user initiates command the results are displayed according to input command. If product name is required as output then insert command should be product::name; this will display names of different products present in the system.

The analog computer deals directly with

Answers

continuously variable aspects of physical phenomena such as a electrical, mechanical etc.

The analog computer deals directly with measured values of continuous physical magnitude.

What is an Analog computer?

An analog computer may be defined as a type of computer that is significantly used to process analog data. These computers store data as a continuum of physical quantities and perform calculations using measurements.

It is completely different from digital computers, which use symbolic numbers to represent results. are great for situations that require data to be measured directly without conversion to numbers or codes. Analog computers, although readily available and used in scientific and industrial applications such as control systems and aircraft, have largely been superseded by digital computers due to the many complications involved.

Therefore, the analog computer deals directly with measured values of continuous physical magnitude.

To learn more about Analog computers, refer to the link:

https://brainly.com/question/18943642

#SPJ2

Your question seems incomplete. The most probable complete question is as follows:

The analog computer deals directly with:

number or codes.measured values of continuous physical magnitude.signals in the form of 0 or 1.signals in discrete values from 0 to 9

DESCRIBE THE GENERAL STRATEGY BEHIND DEALOCK PREVENTION AND GIVE A PRATICAL EXAMPLE

Answers

Answer:

........

Explanation:..........

Why is it useful for students to practice the MLA and APA citation methods?

Answers

Answer:

Citing or documenting the sources used in your research serves three purposes:

It gives proper credit to the authors of the words or ideas that you incorporated into your paper.

It allows those who are reading your work to locate your sources, in order to learn more about the ideas that you include in your paper.

Which one is the result of the ouWhen you move a file to the Recycle Bin, it will be immediately deleted from your computer.

A. True

B. Fals

Answers

Answer:

B => false

Explanation:

it just keep it on recycle bin => not being removed

False

Explaination :

The deleted file will stay in Recycle Bin for a short period of time before it's permanently deleted from your computer

Write a program that asks the user to enter in a username and then examines that username to make sure it complies with the rules above. Here's a sample running of the program - note that you want to keep prompting the user until they supply you with a valid username:

Answers

user_in = input ("Please enter your username: " )

if user_in in "0123456789":

print ("Username cannot contain numbers")

elif user_in in "?":

print ("Username cannot continue special character")

else:

print (" Welcome to your ghetto, {0}! ".format(user_in))

hi, please help me, please help me.​

Answers

my day has been good
hope this helps

What’s cloud-based LinkedIn automation?

Answers

Answer:

Cloud based LinkedIn automation includes tools and software that run through the cloud-system and are not detectable by LinkedIn. Cloud based LinkedIn automation tools are becoming the favorite among B2B marketers and sales professionals as they are giving the desired outcomes without any effort.

Which of the given assertion methods will return true for the code given below? Student student1 = new Student(); Student student2 = new Student(); Student student3 = student1;
The Student class is as follows.
public class Student{
private String name;
}
a. assertEquals(student1, student2);
b. assertEquals(student1, student3);
c. assertSame(student 1, student3);
d. assertSame(student1, student2);

Answers

Answer:

The true statements are :

A. assertEquals(student1,student2)  

C. assertSame(student1,student3)

Explanation:

AssertEquals() asserts that the objects are equal, but assertSame() asserts that the passed two objects refer to the same object or not, if found same they return true, else return false.

Methods are collections of named code segments that are executed when evoked

The assertion method that will return true for the given code is: assertEquals(student1,student2)  

The code segment is given as:

Student student1 = new Student();

Student student2 = new Student();

Student student3 = student1;

In Java, the assertEquals() method returns true if two objects have equal values.

Assume student1 and student2 have equal values, the statement assertEquals(student1,student2) will return true

Read more about java methods at:

https://brainly.com/question/15969952

write a C++ program that receives a number as input from the user ,and checks whether it is greater than 8 and less than 10 or not and print the result

Answers

num_in = float (input = ("Please enter a number from 0 to ten: "))

def cmp_num(num_in):

try:

if num_in > 8 and num_in < 10:

print ("{0} is greater than 8 and less than 10".format(num_in) )

elif num_in < 8 and num_in < 10:

print (" {0} is less than 8 and less than 10".format(num_in) )

else:

print ("{0} is out of the restriction".format (num_in))

except ValueError:

print ("Invalid input")

An error due to wrong input by the user

Answers

Answer:

when did it take place..

Differentiate between email and NIPOST System

Answers

Answer: NIPOST System is sending mail physical like photos and letters and many items

Email is electronic  mail sent through the internet but you can send it anywhere

Explanation:

Code Example 4-1 int limit = 0; for (int i = 10; i >= limit; i -= 2) { for (int j = i; j <= 1; ++j) { cout << "In inner for loop" << endl; } cout << "In outer for loop" << endl; } (Refer to Code Example 4-1.) How many times does "In inner for loop" print to the console? a. 1 b. 0 c. 2 d. 5 e. 7

Answers

Answer:

"In inner for loop" is printed twice.

Answer: C. 2

Explanation:

Code:

int main()

{

   int limit = 0;

   for  (int i =0; i>=limit; i-=2) {

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

           cout << "In inner for loop" << endl;

       }

       cout << "In outer for loop" << endl;

   }

   return 0;

}

Output:

In inner for loop

In inner for loop

In outer for loop

The output "In inner for loop" print twice.

Thus, option (c) is correct.

In the given code example, the inner for loop has a condition j <= 1.

This condition means that the loop will execute as long as j is less than or equal to 1.

However, the initial value of j is i, and the value of i decreases by 2 in each iteration of the outer for loop.

When i = 8, the inner loop has the condition j ≤ 1.

The loop will iterate as long as j is less than or equal to 1.

So the inner loop executes twice: once when j = 8, and then when j = 9. The statement "In inner for loop" prints twice.

Therefore, the output print twice.

Thus, option (c) is correct.

Learn more about Output problem here:

https://brainly.com/question/33184382

#SPJ4

5. Which events is used to code on any form load
a) Form Text b) Form Code c) Form Load d) Form Data

Answers

Answer:

I think b is correct answer

Argue whether we can infer anything about a candidate’s ability to work in a professional environment based on his or her resume’s formatting.
Compare how you would address a resume with wacky fonts to how you would respond to grammatical errors in a resume.

Answers

Answer:

when dressing feaded back is postive and then list areas of inprovmenr to met the job requirements

Explanation:

What are computer programs that make it easy to use and benefit from techniques and to faithfully follow the guidelines of the overall development methodology

Answers

Answer:

A Tool

Explanation:

Tools are computer programs that make it simple to use and benefit from techniques while adhering to the overall development methodology's guidelines. The correct option is A).

What are computer programs?

A computer-aided software development case tool is a piece of software that aids in the design and development of information systems. It can be used to document a database structure and provide invaluable assistance in maintaining design consistency.

A computer software application is one that is developed to assist a particular organizational function or process, such as payroll systems, market analysis, and inventory control.

The goal of introducing case tools is to reduce the time and cost of software development, while also improving the quality of the systems created.

Therefore, the correct option is A) Tools.

To learn more about computer programs, refer to the below link:

https://brainly.com/question/9963733

#SPJ2

The question is incomplete. Your most probably complete question is given below:

A) Tools

B) Techniques

C) Data flow

D) Methodologies

what is the main difference between a computer program and computer software​

Answers

Answer:

Think of computer software sort of as DNA, because DNA is the human body's computer software. And a computer program is like an activity your body does.

Explanation:

Sorry if this didn't help.

By Using the following schema, answer the following SQL queries and commands: Product(P_code.P_name, P_price, P_on_hand,vend_code) Vender(vend_code, vend_fname, vend_areacode, vend_phone) 1- find the venders names who sell products in TN-5 area and their names include "dan". 2- find the code, name and vender code of product that has price between 1500S and 2500S and the product that has price between 48005 and 5600S. 3- Find the name, and code of venders who had 5 microwaves that has price less than 3500S. 4- Find the phone numbers of venders who sell Televisions. 5- Delete the records of venders who their first name is 'smith'

Answers

Explanation:

answer me pls i need sol bbbd

Cryptarithmetic algorithm

Answers

Answer:

CryptArithmetic or verbal arithmetic is a class of mathematical puzzles in which the digits are replaced by letters of the alphabet or other symbols. Usually it is required that each letter would be replaced by a unique digit. Each letter having different value from the other letters.

Explanation:

Cryptarithm now denotes mathematical problems usually calling for addition, subtraction, multiplication, or division and replacement of the digits by letters of the alphabet or some other symbols. ... Since D × B has only one digit, B must be 3 or less. The only two possibilities are 0 and 2.

Sydnee would like a chart to appear once in her report, but she is having wouble making this occur She does not understand why the chart is showing multiple times in the report. What is most likely causing the problem?

O The chart is placed in the header and footer of a database
O The chart is placed in the field of a database.
O The chart is placed in a database with one group
O The chart is placed in a database with five groups​

Answers

AnswerSydnee would like a chart to appear once in her report, but she is having wouble making this occur She does not understand why the chart is showing multiple times in the report. What is most likely causing the problem? a chart to appear once in her report, but she is having wouble making this occur She does not understand why the chart is showing multiple times in the report. What is most likely causing the problem?

a chart to appear once in her report, but she is having wouble making this occur She does not understand why the chart is showing multiple times in the report. What is most likely causing the problem?

O The chart is placed in the header and footer of a database

O The chart is placed in th a chart to appear once in her report, but she is having wouble making this occur She does not understand why the chart is showing multiple times in the report. What is most likely causing the problem? a chart to appear once in her report, but she is having wouble making this occur She does not understand why the chart is showing multiple times in the report. What is most likely causing the problem?

O The chart is placed in the header and footer of a database

O The chart is placed in the field of a database.

O The chart is placed in a database with one group

O The chart is placed

O The chart is placed in the header and footer of a database

O The chart is placed in the field of a database.

O The chart is placed in a database with one group

O The chart is placede field of a database.

O The chart is placed in a database with one group

O The chart is placed

O The chart is placed in the header and footer of a database

O The chart is placed in the field of a database.

O The chart is placed in a database with one group

O The chart is placed

O The chart is placed in the header and footer of a database

O The chart is placed in the field of a database.

O The chart is placed in a database with one group

O The chart is placed in a database with five groups​ :nce in her report, but she is having wouble making this occur She does not understand why the chart is showing multiple times in the report. What is most likely causing the problem?

O The chart is placed in the header and footer of a database

O The chart is placed in the field of a database.

O The chart is placed in a database with one group

O The chart is placed in a database with five groups​

Hold on, our servers are swamped. Wait for your answer to fully load.

Explanation:

Sydnee would like a chart to appear once in her report, but she is having wouble making this occur She does not understand why the chart is showing multiple times in the report. What is most likely causing the problem?

O The chart is placed in the header and footer of a database

O The chart is placed in the field of a database.

O The chart is placed in a database with one group a chart to appear once in her report, but she is having wouble making this occur She does not understand why the chart is showing multiple times in the report. What is most likely causing the problem?

a chart to appear once in her report, but she is having wouble making this occur She does not understand why the chart is showing multiple times in the report. What is most likely causing the problem? a chart to appear once in her report, but she is having wouble making this occur She does not understand why the chart is showing multiple times in the report. What is most likely causing the problem?

a chart to appear once in her report, but she is having wouble making this occur She does not understand why the chart is showing multiple times in the report. What is most likely causing the problem?

O The chart is placed in the header and footer of a database

O The chart is placed in the field of a database.

O The chart is placed in a database with one group

O The chart is placed

O The chart is placed in the header and footer of a database

O The chart is placed in the field of a database.

O The chart is placed in a database with one group

O The chart is placed

O The chart is placed in the header and footer of a database

O The chart is placed in the field of a database.

O The chart is placed in a database with one group

O The chart is placed

O The chart is placed in the header and footer of a database

O The chart is placed in the field of a database.

O The chart is placed in a database with one group

O The chart is placed

O The chart is placed in a database with five groups​

What is indirect program memory addressing? Explain the working of the following instructions?

a) JMP AX
b) JMP LIST[DX]
c) JMP NEAR PTR[DI+3]

Answers

Indirect main memory addressing is described as the method in which the variable's address is stored in a mind register and also a command is utilized to point towards the memory registers which hold the register. Instruction is used to direct towards a register that displays the results of the variables. The register, in turn, refers to that variable's address in simplistic words. As just a result, it is indeed considered a passive program, memory address.

The instructions operate as follows:

a)

JMP AX :

The JMP instruction is being used to execute an unconditional jump.AX is indeed the label's name. JMP AX codes are being used to transfer control of the flow program to the AX label.

b)

JMP LIST:

The JMP command can be used to execute an unconditional jump, JMP LIST[DX] is the label's name.  The JMP LIST[DX] program is being used to transfer control of its flow programs to the specified section. It is the segment to which the flow control is transmitted.

c)

JMP NEAR PTR[DI+3]: 

Unconditional jumps could be done with the JMP command as you'll see, the label is JMP NEAR PTR[DI+3]. It's being used to transmit flow control to a particular section, throughout this case [DI+3]. The close keyword indicates that perhaps the code segment would be in the line of code being nearby.

Learn more:

brainly.com/question/20320915

how did hitles rules in nazi germany exemplify totiltarian rule?

Answers

Answer:

hope this helps if not srry

Describe two types of storage devices?​

Answers

Answer:

Central Process Unit and Random Access Memory

What does the statement that follows do? double gallons[6] = { 12.75, 14.87 }; a. It assigns the two values in the initialization list to the first two elements but leaves the other elements with the values currently in memory. b. It assigns the two values in the initialization list to the first and second elements, third and fourth elements, and fifth and sixth elements. c. This statement is invalid. d. It assigns the two values in the initialization list to the first two elements and default values to the other elements.

Answers

Answer:

It assigns the two values in the initialization list to the first two elements and default values to the other elements.

Explanation:

Given

The array initialization

Required

Interpret the statement

double gallons[6] implies that the length/size of the array gallons is 6.

In other words, the array will hold 6 elements

{12.75, 14.87} implies that only the first two elements of the array are initialized ; the remain 4 elements will be set to default 0.

In the home tab under the paragraph group of options what are you unable to do?

Answers

Im not sure what this is?? Maybe add a picture or more context! ❤️

when was first generation of computer invented? ​

Answers

Introduction: 1946-1959 is the period of first generation computer. J.P.Eckert and J.W. Mauchy invented the first successful electronic computer called ENIAC, ENIAC stands for “Electronic Numeric Integrated And Calculator”.

Which Windows installation method requires that you manually rename computers after the installation?​

Answers

Answer:

Command line

Explanation:

After installation of the machine one needs to manually rename the computer. This can be done through the start then settings, then system, and select rename the PC in the right-hand side column.

Write equivalent predicate statement for Every teacher who is also a painter loves Bob​

Answers

Answer:

Every teacher who is also a painter loves Bob

I have no idea how to answer this question so I’m just gonna

mk chưa hiểu nên các bạn giúp mk vs

Answers

Answer:

my tab and state it all over my name to

hi, please help me.solution.​

Answers

Answer:

aahdbdnsjajaissjdjdhskakwjdhbebs

Other Questions
Which chemical can remove color of red/Pink phenol and make it clear like water transparent? Which of the following chemical equations depicts a balanced ionic equation?A. 2OH+Ca2+>Ca(OH)2 B. OH+Ca2+>Ca(OH)2 C. 2OH+Ca2+>2Ca(OH)2 D. OH+2Ca2+>Ca(OH)2 Which equations are equivalent to Three-fourths + m = negative StartFraction 7 over 4 EndFraction? Select three options. 16. Sandra is choosing an Internet service provider. Smart Dot Company costs $12 per month plus $0.50 for each hour of Internet used. Communication Plus costs $2.50 for every hour of Internet used.a. Create an equation to represent the cost of using the internet with each company. (2 marks) Let C represent the cost of using internet in any month.Let t represent the number of hours used. . If the Federal Reserve raises interest rates in an autonomous tightening ________. A) the MP curve shifts up, there is an upward movement along the IS curve, and the AD curve shifts to the left to a lower level of equilibrium output B) the MP curve shifts down, there is a downward movement along the IS curve and the AD curve shifts to the right to a higher level of equilibrium output C) the MP curve shifts up, there is a downward movement along the IS curve and the AD curve shifts to the right to a lower level of equilibrium output D) the MP curve shifts down, there is an upward movement along the IS curve and the AD curve shifts to the left to a higher level of equilibrium output A strawberry nutritional drink used for a liquid diet is flavored with methyl butanoate. Draw the structure of methyl butanoate. An architectural drawing lists the scale as 1/4" = 1'. If a bedroom measures 212" by 334" on the drawing, how large is the bedroom? summary conclusion of the circus elephant. Choose the word with the underlined part pronounced differently from that of the others.1/ a. match b. pan c. transmit d. safety2/ a. equipment b. upset c. end d. help3/ a. folk b. hold c. photo d. neighbor4/ a. fairy b. train c. afraid d. wait5/ a. excited b. prince c. once d. escape find the rate of energy radiated by a man by assuming the surface area of his body 1.7mand emissivity of his body 0.4 If f(x)= sqrt x, which equation describes the graphed function. observe a farming system in your neighbourhood and write short notes on it. Consider that President Roosevelt delivered the "Four Freedoms" speech on January 6, 1941. What is the historicalcontext of this speech in relation to World War II? How many grams of Al were reacted with excess HCl if 3.86 L of hydrogen gas were collected at STP in the following reaction? 2 Al (s) + 6 HCl (aq) 2 AlCl (aq) + 3 H (g) what is the definition of unit?definition of unit? Find the value of the following (-42) + 15 + (-63) can someone say this and fast A friend is calling his sister from his parents house to talk to her about what means of transportation various people are using to come visit their parents to celebrate their 50th anniversary. Using the image and person or people indicated, write a sentence telling how each of them is coming. Use the verb venir. If sin x = 0.1 and 270 < x < 360, what is the value of x to the nearest degree? The roof rafter of a house has been raised to a height of 13 yards at the ridge. Half of the length of the run measures 9 yards. Findthe length of the rafter. Round to the nearest 100th. poe was orphaned by