Homework

Homework Questions? Ask a Tutor for Answers ASAP

Ask an Expert,
Get an Answer ASAP!

Homework
This answer was rated:

The data file accounts.txt contains the valid account

numbers for a credit card...
The data file accounts.txt contains the valid account numbers for a credit card company. The quantity of account numbers in the file is specified as the first value in the data file. For example, a data file containing the following data has 5 account numbers. Make this exact file:
5 (###) ###-####(###) ###-####(###) ###-####(###) ###-####(###) ###-####
The C++ program should:
• Read the first integer from the data file
• Dynamically allocate an array of integers to hold the account numbers
• Read the account numbers from the data file into the array
• Use a selection sort routine to sort the numbers into ascending order
• Enter a loop which:
o Asks the user to enter a number
o Uses the binary search algorithm to see if the number is ***** the array
o Displays a message to the user telling them if the account number is ***** (in the array) or invalid (not in the array).
o Allows user to exit by entering -1.
Use pointer notation wherever possible, instead of array notation or pass-by-reference notation.
Input validation: as your program reads each account number, ensure the account number is ***** than zero.
The program should be modular, with separate functions to read the data, sort, search, and print results. You must dynamically allocate the array in a separate function (not main). Your output should be well-organized, neat, and easy to read.
Also include prototypes.
Show More
Show Less
Ask Your Own Homework Question
Answered in 2 minutes by:
9/20/2017
LogicPro
LogicPro, Engineer
Category: Homework
Satisfied Customers: 13,333
Experience: Expert in Java C++ C C# VB Javascript Design SQL HTML
Verified
Hi
Ask Your Own Homework Question

Welcome

Thank you for asking me. Hope you are doing well.

Zip all files; upload the zipped file to http://wikisend.com and post download link here.

Ask Your Own Homework Question
Customer reply replied 5 months ago
Oh, you just made your own account file.

Got it my friend

What is the deadline?

Ask Your Own Homework Question
Customer reply replied 5 months ago
Friday September 22, by 11:59 pm

thank you for the information. Will have it ready.

Ask Your Own Homework Question

Let me know once accepted

Ask Your Own Homework Question

Are you there my friend?

LogicPro
LogicPro, Engineer
Category: Homework
Satisfied Customers: 13,333
Experience: Expert in Java C++ C C# VB Javascript Design SQL HTML
Verified
LogicPro and 87 other Homework Specialists are ready to help you
Ask your own question now
Customer reply replied 5 months ago

Yes I accepted the offer.

Thank you

Ask Your Own Homework Question
Customer reply replied 5 months ago

No problem

have a good time

Ask Your Own Homework Question
Customer reply replied 5 months ago

Thanks you too.

thanks

Ask Your Own Homework Question

Just posted the answer Link for Accounts.zip
Let me know once you get it

Unzip the zip file to get required files.

Please consider adding bonus by using the "Write a review or give a bonus" button on your question pages.
http://ww2.justanswer.com/help/what-if-expert-does-really-fantastic-job-hl

You can ask me again using "For LogicPro only" at the start of your questions like other customers to get instant answers. It will ensure that question is for me.
Please bookmark my profile page:
http://www.justanswer.com/homework/expert-logicpro/
so you can come back and ask me a question anytime.
Thank you for using this site!

Ask Your Own Homework Question
Customer reply replied 5 months ago

I got the code, but there is a problem. When I put a number in, it's says that number is ***** vaild like "5 is not vaild". Am I doing something wrong or can you fix it on your end? Also, can you make it so letters like A or b aren't vaild?

Thanks.

I will check and reply

Ask Your Own Homework Question

You need to input numbers which are in accounts.txt except the first number because first number is ***** of records in data file. For any other number, it will show invalid number.

For letters, I will modify it and reply you.

Ask Your Own Homework Question
This answer is protected
Would you like to ask this question?
If you've already paid for this answer, simply Login.
Was this answer helpful?
Ask LogicPro Your Own Question
LogicPro
LogicPro
LogicPro, Engineer
Category: Homework
Satisfied Customers: 13,333
13,333 Satisfied Customers
Experience: Expert in Java C++ C C# VB Javascript Design SQL HTML

LogicPro is online now

A new question is answered every 9 seconds

How JustAnswer works:

  • Ask an ExpertExperts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional AnswerVia email, text message, or notification as you wait on our site. Ask follow up questions if you need to.
  • 100% Satisfaction GuaranteeRate the answer you receive.

JustAnswer in the News:

Ask-a-doc Web sites: If you've got a quick question, you can try to get an answer from sites that say they have various specialists on hand to give quick answers... Justanswer.com.
JustAnswer.com...has seen a spike since October in legal questions from readers about layoffs, unemployment and severance.
Web sites like justanswer.com/legal
...leave nothing to chance.
Traffic on JustAnswer rose 14 percent...and had nearly 400,000 page views in 30 days...inquiries related to stress, high blood pressure, drinking and heart pain jumped 33 percent.
Tory Johnson, GMA Workplace Contributor, discusses work-from-home jobs, such as JustAnswer in which verified Experts answer people’s questions.
I will tell you that...the things you have to go through to be an Expert are quite rigorous.

What Customers are Saying:

Wonderful service, prompt, efficient, and accurate. Couldn't have asked for more. I cannot thank you enough for your help.

Mary C.Freshfield, Liverpool, UK

This expert is wonderful. They truly know what they are talking about, and they actually care about you. They really helped put my nerves at ease. Thank you so much!!!!

AlexLos Angeles, CA

Thank you for all your help. It is nice to know that this service is here for people like myself, who need answers fast and are not sure who to consult.

GPHesperia, CA

I couldn't be more satisfied! This is the site I will always come to when I need a second opinion.

JustinKernersville, NC

Just let me say that this encounter has been entirely professional and most helpful. I liked that I could ask additional questions and get answered in a very short turn around.

EstherWoodstock, NY

Thank you so much for taking your time and knowledge to support my concerns. Not only did you answer my questions, you even took it a step further with replying with more pertinent information I needed to know.

RobinElkton, Maryland

He answered my question promptly and gave me accurate, detailed information. If all of your experts are half as good, you have a great thing going here.

DianeDallas, TX

< Previous | Next >

Meet the Experts:

LogicPro

LogicPro

Engineer

13,333 satisfied customers

Expert in Java C++ C C# VB Javascript Design SQL HTML

Manal Elkhoshkhany

Manal Elkhoshkhany

Tutor

4,551 satisfied customers

More than 5000 online tutoring sessions.

Linda_us

Linda_us

Finance, Accounts & Homework Tutor

3,138 satisfied customers

Post Graduate Diploma in Management (MBA)

Chris M.

Chris M.

M.S.W. Social Work

2,636 satisfied customers

Master's Degree, strong math and writing skills, experience in one-on-one tutoring (college English)

F. Naz

F. Naz

Chartered Accountant

2,161 satisfied customers

Experience with chartered accountancy

Bizhelp

Bizhelp

CPA

1,887 satisfied customers

Bachelors Degree and CPA with Accounting work experience

Seanna

Seanna

Tutor

1,781 satisfied customers

3,000+ satisfied customers, all topics, A+ work

< Previous | Next >

Related Homework Questions
I want Write a straight-arrow ESA lesson plan for an
Hello i want Write a straight-arrow ESA lesson plan for an elementary level class of adults in which the students would learn the vocabulary for finding places in a town and be able to use it when giv… read more
Writing_Coach1
Writing_Coach1
Master\u0027s Degree
11 satisfied customers
I need to diagram 2:8z11. I need to diagram 2:8-11
I need to diagram James 2:8z11 JA: The Tutor can help you get an A on your homework or ace your next test. Tell me more about what you need help with so we can help you best. Customer: I need to diagr… read more
GLENN
GLENN
Master of Mathematics
359 satisfied customers
Write out how to preform the following all variables are
Write out how to preform the following all variables are char. a is 0x100, b is 0x200, c is 0x300. Set up registers at the beginning using loads and tell me what each register is being used for. Also … read more
GLENN
GLENN
Master of Mathematics
359 satisfied customers
Functions Assignment For this assignment, you need to create
Functions Assignment For this assignment, you need to create a function that implements the Triangle Classification Algorithm. The algorithm has a lot of steps in it, but each step is simple. We have … read more
LogicPro
LogicPro
Engineer
13,333 satisfied customers
What is the maximum amount of money someone can receive for
What is the maximum amount of money someone can receive for financial aid for college? lets say the tuition is $40k a year and the student have no EFC. Please also provide a breakdown of where the fin… read more
NPVAdvisor
NPVAdvisor
CFP Licensee and Practitioner
Master's Degree
180 satisfied customers
It's an Access datasheet: 4-4 Enter Names into a Database In
It's an Access datasheet: 4-4 Enter Names into a DatabaseIn Application 4-2, you practiced using alphabetic indexing rules 5–8 to file names that would appear on physical documentsIn this application,… read more
Richard
Richard
IT Manager
IT Manager, Consultant
3,322 satisfied customers
I have a graded project exam national electric code. can you
hello i have a graded project exam national electric code. can you help me get it done?. and how much would you charge?… read more
Chris Parson
Chris Parson
Electrician
20 satisfied customers
I have two more programs thati am looking for help on the
I have two more programs thati am looking for help on the deadline is Thursday by 9pm. Thank you!… read more
LogicPro
LogicPro
Engineer
13,333 satisfied customers
Searching for a latin translation. Found a phrase on
searching for a latin translation. Found a phrase on gravestone. Ran it through Google Translate, but doesn't make sense to me in the context of a gravestone. maybe an expert could explain the phrase'… read more
Olivia Kent
Olivia Kent
Managing Partner
Doctoral Degree
2,207 satisfied customers
In a study of helicopter usage and patient survival, among
In a study of helicopter usage and patient survival, among the 52493 patients transported by helicopter, 294 of them left the treatment center agains medical advice and the other 52,199 did not leave … read more
GLENN
GLENN
Master of Mathematics
359 satisfied customers
I am working on a homework assignment and need answers about
I am working on a homework assignment and need answers about changing articles and adjectives … read more
Cher
Cher
JustAnswer Expert & Mentor;Teacher/Tutor
Masters Degree
1,382 satisfied customers
Subtraction Game, Name the file subtraction_game.py.
Subtraction Game, Name the file subtraction_game.py. ***Modify the below example so it meets the following requirements:**The new program shall present random subtraction questions to the player until… read more
LogicPro
LogicPro
Engineer
13,333 satisfied customers
Need help with the following two python based programs: 1) I
Need help with the following two python based programs:1) I need a program that reads four integer values corresponding to an IP address "a1.a2.a3.a4" (IPv4), and determines whether the values form a … read more
Ingo U
Ingo U
Master\u0027s Degree
357 satisfied customers
12. If the appellate court requires that issues be presented
12. If the appellate court requires that issues be presented in the form of questions, how should the questions be phrased? A. As briefly and broadly as possible, leaving details for the discussion in… read more
Cher
Cher
JustAnswer Expert & Mentor;Teacher/Tutor
Masters Degree
1,382 satisfied customers
Turtle ASCII Table. Name file turtle_ascii.py Using Turtle
Turtle ASCII Table. Name file turtle_ascii.pyUsing Turtle graphics:(Display the ASCII character table) Write a program that displays the characters in the ASCII character table from ! to ~. Display te… read more
Ingo U
Ingo U
Master\u0027s Degree
357 satisfied customers
Writing/listening comprehension (50point), directions, you
Writing/listening comprehension (50point) , directions, you will hear a story in Spanish. In English, summarize the story in a composition of between ten and twenty sentences, the story is on 4L side … read more
Cher
Cher
JustAnswer Expert & Mentor;Teacher/Tutor
Masters Degree
1,382 satisfied customers
Network Administration (All essay answers need to be
Network Administration (All essay answers need to be double-spaced)1. Create a table the shows six of the common TCP/IP protocols installed on Windows Server 2012/R2. Protocol Name OSI Layer Function2… read more
David L.
David L.
Bachelor\u0027s Degree
6 satisfied customers
Research Paper Conduct a SWOT analysis and a financial
Research PaperConduct a SWOT analysis and a financial analysis for a telecommunication organization of your choice. Write a 5-8 page long paper and submit it to the Assignments Dropbox by the end of W… read more
GLENN
GLENN
Master of Mathematics
359 satisfied customers
Disclaimer: Information in questions, answers, and other posts on this site ("Posts") comes from individual users, not JustAnswer; JustAnswer is not responsible for Posts. Posts are for general information, are not intended to substitute for informed professional advice (medical, legal, veterinary, financial, etc.), or to establish a professional-client relationship. The site and services are provided "as is" with no warranty or representations by JustAnswer regarding the qualifications of Experts. To see what credentials have been verified by a third-party service, please click on the "Verified" symbol in some Experts' profiles. JustAnswer is not intended or designed for EMERGENCY questions which should be directed immediately by telephone or in-person to qualified professionals.

Disclaimer: Information in questions, answers, and other posts on this site ("Posts") comes from individual users, not JustAnswer; JustAnswer is not responsible for Posts. Posts are for general information, are not intended to substitute for informed professional advice (medical, legal, veterinary, financial, etc.), or to establish a professional-client relationship. The site and services are provided "as is" with no warranty or representations by JustAnswer regarding the qualifications of Experts. To see what credentials have been verified by a third-party service, please click on the "Verified" symbol in some Experts' profiles. JustAnswer is not intended or designed for EMERGENCY questions which should be directed immediately by telephone or in-person to qualified professionals.

Show MoreShow Less

Ask Your Question

x