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
forsale [732]
3 years ago
11

Write a program to accept 10 different whole number from the user and store them in a

Computers and Technology
1 answer:
Harman [31]3 years ago
8 0

Explanation:

Question is not well presented:

The search strings in the question are not well formatted.

First thing, I'll arrange the account number in order of 7;

Meaning that the length of each account number is 7

8149420 5333174 3080098 6755963 9526981 4449539 9387197 5104726 2931356 4282637 1750219 6086650 3164838 2419590 4578589 9718904 674994 12545408

Answer:

// This program is written in C++ Programming Language

// Comments are used for explanatory purpose

// Program starts here

#include <iostream>

using namespace std;

// Initialise Function

int ArrayList(int[], int, int);

// Main Method starts at

int main()

{

// The list of account is 18; so, we Initialise an integer Variable to hold this value

const int acctlist = 18;

// Initialise an array to hold the account numbers

int List[acctlist] = { 8149420 5333174 3080098 6755963 9526981 4449539 9387197 5104726 2931356 4282637 1750219 6086650 3164838 2419590 4578589 9718904 674994 12545408

};

// Declare account number and search result Variables of type integer

int accountnumber, Result;

// Prompt user for account number

cout << "Enter a valid account number: ";

cin >> accountnumber;

// Determine if valid or not

Result = ArrayList(List, acctlist, accountnumber);

if(Result == -1){

cout << "Account number " << AcctNum << " is invalid.\n";}

else{

cout << "Account number " << List[Result] << " is valid\n";

}

return 0;

}

// Function starts here

int ArrayList(int list[], int size, int value)

{

int index = 0,

pos = -1;

bool seen = false;

// Check if Account number is seen in list

while (!seen && index < size)

{

if (list[index] == value)

{

seen = true;

}

pos = index;

}

index++

You might be interested in
A news ____ website collects and displays content from a variety of online news sources, including wire services, print media, b
ale4655 [162]

Answer:

Aggregation

Explanation:

This type of website is responsible for collecting the data through RS feeds and web scrapping tools and inject the data in server side templates of highly flexible technologies like pug to display them in one space.By this the user do not will have to walk around many web sites to find the data on news he/she need. This type of news website collects it in one place.

5 0
4 years ago
Select the correct answer.
DochEvi [55]

Answer:

ask customers to use strong passwords to protect their accounts

6 0
3 years ago
Read 2 more answers
Caroline is collaborating with several writers who are creating multiple documents. There is a single list of content that must
Yakvenalex [24]

A Word document can be shared with multiple users by selecting the File menu at the top ribbon and then select Share from the drop down menu

<em>Several writers</em> can work together on Microsoft Word by using the co-authoring, sharing, and co-editing features in MS Word

In order to co-author the content list, Caroline, should

1. Create the content list document

2. Click on <em>Share</em> icon on the top right corner of the document

3. Ensure to save the document in OneDrive

4. Input the email addresses of the other writers who are working on the list

5. Enter a message to the writers to add the title of the content they are working on in the list

When the other writers open the link to the document sent to them in the email they receive, and they open the document in a web browser, by selecting Edit Document > Edit in Browser

The presence of a writer and their real time changes to the content list document, showing the content they are working on are shown by <u>colored flags</u> that has the author (writer) name next to the content they are working on

Learn more about collaboration in Word here:

brainly.com/question/1877453

4 0
3 years ago
Which NIMS communication principle ensures that communications and information systems can be expanded to support any situation,
madam [21]

Answer: Portability

Explanation: National; approach to incident management(NIMS) principle named as portability is responsible for the supporting the system in any situation. It lets an individual to access the equipment that are familiar.

Portability helps in moving the flow of the communication and resources with easiness and information system can be extended till the requirement to support the incidental situation.

8 0
4 years ago
What Occurs when all forces acting on an object cancel out, and there is no movement
s344n2d4d5 [400]
<span>When all forces acting on an object cancel out, and there is no movement, the force is called A. balanced force. A balanced force for example is a vase in the inclined plane stopped by a box. The force exerted by the box to the vase is equal to the sine of the weight of the base where the two cancels out. </span>
8 0
3 years ago
Other questions:
  • It is important to avoid using a person’s title in an email to avoid offending him or her.
    9·2 answers
  • A device that converts analog signals into digital and vice versa for a computer to communicate over phone lines is called a ___
    8·1 answer
  • You company hired you to build a network. List of technical question that you will ask?
    11·1 answer
  • You have just read about a new security patch that has been made available for your Windows system, so you install the patch as
    6·1 answer
  • Complete the sentence about entering and editing data in a cell in a spreadsheet.
    12·2 answers
  • When you must give something up in order to get something else it's called
    7·1 answer
  • Win10如何删除自己添加的环境变量?...............
    8·1 answer
  • What is the output of this program?
    11·1 answer
  • Is anyone else's pa.dl.et not working??? It says The requested URL / was not found on this server. That’s all we know.
    14·1 answer
  • What is the importance of internet in education<br>​
    7·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!