Programming

Programming Questions? Ask a Programmer for Answers ASAP

Ask a Computer Expert,
Get an Answer ASAP!

Programming
This answer was rated:

The local Driver’s License Office has asked you to write a

program that grades the written...
The local Driver’s License Office has asked you to write a program that grades the written portion of the driver’s license exam. The exam has 20 multiple choice questions.
Here are the correct answers:
(A,C,A,A,D,B,C,A,C,B,A,D,C,A,D,C,B,B,D,A)
Your program should store these correct answers in a list.The program should read the students answers for each of the 20 questions from a text file and store them in another list. After students answers have been read from the file, the program should display a message indicating whether student passed or failed. Must answer atleast 15 to pass. It should then display total number of correct answered questions, total number incorrect answered questions, and a list showing the question numbers of the incorrectly answered questions.
requirements:
use python code
use of functions and value returning functions- use 3
read file contents into list using a loop
Show More
Show Less
Ask Your Own Programming Question
Answered in 2 minutes by:
4/2/2017
LogicPro
LogicPro, Computer Software Engineer
Category: Programming
Satisfied Customers: 13,275
Experience: Expert in C, C++, Java, DOT NET, Python, HTML, Javascript, Design.
Verified

Hi,

Welcome

Hope you are doing well.

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

What is the deadline?

Ask Your Own Programming Question
Customer reply replied 8 months ago
Tonight 8pmWhat files are you needing? The .txt correct answer list and the student answer list?

yes please

Zip all files; upload the zipped file to http://wikisend.com and provide file id here

Ask Your Own Programming Question
Customer reply replied 8 months ago
I'm trying to upload and getting this messageThis site can’t be reachedwikisend.com%20and’s server DNS address could not be found.
DNS_PROBE_FINISHED_NXDOMAIN

click on this link

wikisend.com

Ask Your Own Programming Question
Customer reply replied 8 months ago
ok. done.http://wikisend.com/download/814108/files.zip

Which version of python you are using? Like 2.7 or 3.2

Ask Your Own Programming Question
Customer reply replied 8 months ago
Python 3.3.0

okay, got everything. Looking at the efforts, I am sending offer. let me know once you accept it and I'll provide it in few hours

LogicPro
LogicPro, Computer Software Engineer
Category: Programming
Satisfied Customers: 13,275
Experience: Expert in C, C++, Java, DOT NET, Python, HTML, Javascript, Design.
Verified
LogicPro and 87 other Programming Specialists are ready to help you
Ask your own question now

Thanks

Check back in 2-3 hours

Ask Your Own Programming Question
Customer reply replied 8 months ago
Hello! Sorry, but I'm new to this. When I look at "my questions" it says my question has been "Completed". Is there somewhere else that I need to go to retrieve my answer?

I am almost done.

I will provide you answer here in about 30 minutes, please wait.

Ask Your Own Programming Question

Download answer from here: http://wikisend.com/download/361082/

Just posted the answer Link

Let me know once you got it

Please consider adding bonus

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 Programming Question
Customer reply replied 8 months ago
I'm sorry but I cant use this. This is way too technical. This is a basic python class and we haven't learned "try", "except" "ioerror".... We have only learned to start out by first defining main and ending with calling the main function. Below is one of the last assignments- I'm showing you this so you can see how basic this class is.# Define the main function
def main():# Open the random_numbers.txt file
ran_numbers = open('random_numbers.txt', 'r')# Accumulators
number = 0
total = 0# Display the list of numbers
print("List of numbers:")
for line in ran_numbers.readlines():
print(line)
total = total+int(line)
number +=1# Print the sum
print("The Sum of the numbers is: "+str(total))# Print how many numbers were read
print("The total amount of numbers that were read is: "+str(number))# Close the file
ran_numbers.close()# Call the main function
main()

ok, please wait

Ask Your Own Programming Question
Customer reply replied 8 months ago
I'm getting ready to head back to school so I have a 3 hour ride home. I may not be able to respond until i get there.

Download: http://wikisend.com/download/426438/

Unzip to get python file with txt file.

Ask Your Own Programming Question
Customer reply replied 8 months ago
i dont see where you used the two original .txt files that i sent (both these files have to be included and used when i turn the completed assignment in).

It is only using one txt file which has user answers. In the requirements it says to read only user answers from file and store correct answers in list.

Do you want me to read correct answers also from file?

Ask Your Own Programming Question

I modified it.

http://wikisend.com/download/803364/

It is reading both students answers and correct answers from file.

Ask Your Own Programming Question
Customer reply replied 8 months ago
Can you write it using what I have included below?
ie:correct_answer_list
student_answer_list
correct_count
incorrect_countthe way you have it written CorrectAnswers, UserAnswers, IncorrectAnswers, countCorrectAnswers,20-countCorrectAnswers makes no sense to me.# Define main
def main():
correct_answer_list = ['A','C','A','A','D','B','C','A','C','B','A','D','C','A','D','C','B','B','D','A']student_answer_list = ['B','A','C','D','B','C','A','B','B','D','A','C','B','A','A','D','C','B','A','C']correct_count = 0incorrect_count = 0total_questions = 20incorrect_answer_list = []infile = open ('student_answer.txt', 'r')student_answer = infile.readlines()infile.close()
Customer reply replied 8 months ago
im leaving now so i wont be online for the next few hours

I did it as per the requirements because requirements says to use functions "use of functions and value returning functions- use 3"

Ask Your Own Programming Question
Customer reply replied 8 months ago
That's fine. Please just change it to reflect this wording. i.e. student_answers, incorrect_count, etc.

ok, please wait

Ask Your Own Programming Question
Ask Your Own Programming Question
Ask LogicPro Your Own Question
LogicPro
LogicPro
LogicPro, Computer Software Engineer
Category: Programming
Satisfied Customers: 13,275
13,275 Satisfied Customers
Experience: Expert in C, C++, Java, DOT NET, Python, HTML, Javascript, Design.

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:

My Expert answered my question promptly and he resolved the issue totally. This is a great service. I am so glad I found it I will definitely use the service again if needed.

One Happy CustomerNew York

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

< Previous | Next >

Meet the Experts:

ATLPROG

ATLPROG

Computer Software Engineer

7,677 satisfied customers

MS in IT.Several years of programming experience in Java C++ C C# Python VB Javascript HTML

LogicPro

LogicPro

Computer Software Engineer

13,275 satisfied customers

Expert in C, C++, Java, DOT NET, Python, HTML, Javascript, Design.

unvadim

unvadim

Computer Software Engineer

1,168 satisfied customers

Good knowledge of OOP principles. 3+ years of programming experience with Java and C++. Sun Certified Java Programmer 5.0.

lifesaver

lifesaver

Computer Software Engineer

950 satisfied customers

Several years of intensive programming and application development experience in various platforms.

ehabtutor

ehabtutor

Computer Software Engineer

936 satisfied customers

Bachelor of computer science, 5+ years experience in software development, software company owner

TheDoctor

TheDoctor

Software Engineer

893 satisfied customers

M.S. in Internet Information Systems

The-PC-Guy

The-PC-Guy

Software Engineer

797 satisfied customers

Extensive Knowledge in PHP, MYSQL, CSS & Javascript

< Previous | Next >

Related Programming Questions
This question is from a Mac user. We have office 2010. I
This question is from a Mac user. We have office 2010. I sent a folder containing 8 files to my husband. He opened it from the email and worked on each file, making changes. But when he closed the fol… read more
jeffreybongers
jeffreybongers
ICT Support 1/2/3/ Line
Information Technology
167 satisfied customers
I am not having trouble with my computer. I need help
I am not having trouble with my computer. I need help figuring out how to use a database in excell to create mailing labels. Can you help me … read more
Jason Jones
Jason Jones
AAS Information Technology
6,318 satisfied customers
I have recently installed Windows 10 on my Toshiba Satellite
I have recently installed Windows 10 on my Toshiba Satellite S855-S5369. Today I tried to use Excel and found three versions of the same spreadsheet, only one of which was correct. I deleted the two t… read more
PC_Wizzard
PC_Wizzard
IT Technician
33 satisfied customers
I am trying to find a way to put in a birthdate and then
I am trying to find a way to put in a birthdate and then calculate when the child will turn 18 … read more
Kris R
Kris R
IT Manager
Computing
2,409 satisfied customers
Do you know PowerPivot for Excel? Office 2013 for now, I
Office 2013 for now, I have a 2016 license as well … read more
Kris R
Kris R
IT Manager
Computing
2,409 satisfied customers
Changed formatting resets every time excel is opened. Excel
changed formatting resets every time excel is opened … read more
R LAFAYETTE
R LAFAYETTE
Intel Technology Provider 2017 GOLD
29 satisfied customers
I have a table that has several columns consisting of hours
I have a table that has several columns consisting of hours allotted/hrs used/additional hrs added if needed. I'm trying to understand how to calculate the % complete. I thought that as you add more h… read more
AnswersByEric
AnswersByEric
Software Developer
Associate Degree
35 satisfied customers
How can I edit my bank statements? Excel, well I just want
How can I edit my bank statements? JA: What programs and versions are you using? Customer: Excel JA: What is your ideal outcome? How can we solve this for you? Customer: well I just want to how do I g… read more
Satchi
Satchi
Bachelor\u0027s Degree
2,102 satisfied customers
I have an excel document. I saved it as a new document and
I have an excel document. I saved it as a new document and emailed it. The receiver cannot add information, rows, etc. … read more
Jason Jones
Jason Jones
AAS Information Technology
6,318 satisfied customers
When accessing Excel, I receive the following message:
When accessing Excel, I receive the following message: "Microsoft Office cannot verify the license for this product." I cannot get past this message. What do I need to do. … read more
Bryan
Bryan
IT Consultant
8,747 satisfied customers
It's an excel question. Microsoft Excel Office 2016, I am
I am having trouble creating a formula and I am unsure how to go about it. The formula help within Excel is not understanding my question. … read more
Richard
Richard
IT Manager
IT Manager, Consultant
3,242 satisfied customers
Excel is not responding and will not open, Office 365 2016,
Excel is not responding and will not open JA: What programs and versions are you using? Customer: Office 365 2016 JA: What is your ideal outcome? How can we solve this for you? Customer: how can I get… read more
Cody
Cody
Computer Science
1,532 satisfied customers
Java blocks me from getting online to my office computer,
Java blocks me from getting online to my office computer … read more
jeffreybongers
jeffreybongers
ICT Support 1/2/3/ Line
Information Technology
167 satisfied customers
Question for LogicPro Sheriff Office Booking System
Question for LogicProSheriff Office Booking SystemOverview: This system is a desktop JavaFX GUI application to support the sheriff's deputies in their duties to maintain accurate information of inmate… read more
LogicPro
LogicPro
Computer Software Engineer
13,275 satisfied customers
The local Driver's License Office has asked you to write a
The local Driver's License Office has asked you to write a program that grades the written portion of the driver's license exam. The exam has 20 multiple choice questions. Here are the correct answers… read more
LogicPro
LogicPro
Computer Software Engineer
13,275 satisfied customers
It is an Excel question.. 2010, Microsoft Office, I am
I am looking for assistance in figuring out a formula for a report… read more
Richard
Richard
IT Manager
IT Manager, Consultant
3,242 satisfied customers
We recently fired our office person handling critical files.
We recently fired our office person handling critical files. On his list is info for Wordpress. However, the info is not valid for log in. Can you help me determine if we still have an active account … read more
Peter GJ
Peter GJ
Senior IT Governance Project Manager
Bachelor Science and Education
17 satisfied customers
Problem sending the command to the program" Microsoft office
I receive excel files by e-mail: the program suddenly will not open the files from the e-mail. It will open files that I have saved and opened previously … read more
Viet - Computer Tech
Viet - Computer Tech
Computer Technican
Bachelor\u0027s Degree
952 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