Programming

Programming questions? Ask a programmer for answers ASAP

Ask a Computer Expert,
Get an Answer ASAP!

This answer was rated:

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

The local Driver’s License Office...
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,458
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 1 year 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 1 year 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 1 year 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 1 year 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,458
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 1 year 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 1 year 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 1 year 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 1 year 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 1 year 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 1 year 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 1 year 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
Was this answer helpful?
Ask LogicPro Your Own Question
LogicPro
LogicPro
LogicPro, Computer Software Engineer
Category: Programming
Satisfied Customers: 13,458
13,458 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,458 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

800 satisfied customers

Extensive Knowledge in PHP, MYSQL, CSS & Javascript

< Previous | Next >

Related Programming Questions
I am having a really hard time with this exercise. I cant
I am having a really hard time with this exercise. I can't seem to put this program in my head. Here is the exercise below: Write an inheritance hierachy for the following classes; Quadrilateral, Trap… read more
Rafael Martins
Rafael Martins
System Developer
446 satisfied customers
Outlook did not accept text-transform capitalize; in the
Outlook did not accept 'text-transform:capitalize;' in the CSS… read more
abhi_iitian
abhi_iitian
Bachelor's Degree
1,543 satisfied customers
Your pay calculation pseudo code must be changed to accept
Your pay calculation pseudo code must be changed to accept input from a file. You need to read each record from the file, calculate the correct pay and stop as soon as the end of file has been reached… read more
Raj
Raj
SAP ABAP Consultant
Master\u0027s Degree
27 satisfied customers
Does this forum charge. It's excel formulas. Office 365. I
I run a report on projects once a week and in the report are dates in six columns. I need to write a formula that looks up a project I'd on the latest report look for it on the previous weeks report then look at the first if six cells to see if the dates have changed. If do I need to apply conditional formatting to highlight the change… read more
The-PC-Guy
The-PC-Guy
Software Engineer
Bachelor's Degree
800 satisfied customers
I need some help with PowerPoint in Office 10. I don't know
I don't know -I have Office 365. I need help formatting something … read more
Jeevan DSouza
Jeevan DSouza
Professor
PhD
3 satisfied customers
My office excel program does not work correctly. When I sum
my office excel program does not work correctly. When I sum a column then … read more
Pete
Pete
Engineer
Bachelor\u0027s Degree
1,130 satisfied customers
I can't open an excel spreadsheet in Microsaoft Office
I can't open an excel spreadsheet in Microsaoft Office Professional 2007 that I was working on this afternoon. … read more
Viet -MS Office Tech
Viet -MS Office Tech
Computer Technican
Bachelor\u0027s Degree
964 satisfied customers
I just downloaded Office 365 Home on the PC. But, when I
I just downloaded Office 365 Home on the PC. But, when I open my Excel and Word files they still read that the program is expired. … read more
Cody
Cody
Computer Science
2,296 satisfied customers
I have office 2013 excel, word, and outlook on my computer.
I have office 2013 excel, word, and outlook on my computer. Something happened on my desktop and 2013 word's shortcut and program disappeared. I haven't found a way to bring the program and shortcut b… read more
Kamil Anwar
Kamil Anwar
IT Consultant / Systems Engineer
Bachelor\u0027s Degree
459 satisfied customers
I downloaded Microsoft office 2016 that I purchased on this
hello I downloaded Microsoft office 2016 that I purchased on this computer and the publisher wont work … read more
Kamil Anwar
Kamil Anwar
IT Consultant / Systems Engineer
Bachelor\u0027s Degree
459 satisfied customers
I created a spread sheet using open office and saved to my
I created a spread sheet using open office and saved to my desk top. When I double click to open it Excel opens and wants me to buy that program. How do I prevent this from happening ?? … read more
Kamil Anwar
Kamil Anwar
IT Consultant / Systems Engineer
Bachelor\u0027s Degree
459 satisfied customers
Help to reprogram Lotus Symphony office. Us. Help reinstall
help to reprogram Lotus Symphony office JA: Is there a specific language you're coding in? Customer: us JA: What's your objective? How can we solve this for you? Customer: help reinstall lotus symphon… read more
D.Sandlin
D.Sandlin
Support Technician
6,708 satisfied customers
My Microsoft Word and Excel app now require Office 365. They
My Microsoft Word and Excel app now require Office 365. They didn't when I installed the apps. I have them linked to Dropbox files. ???? … read more
Jinsmn
Jinsmn
Systems Administrator
Diplom
1,260 satisfied customers
Using classes, design and online address book to keep track
Using classes, design and online address book to keep track of the names, addresses, phone numbers, and birthdays of family members, close friends, and certain business associates. The book will be ab… read more
lifesaver
lifesaver
Computer Software Engineer
Bachelor's Degree
950 satisfied customers
I have a problem in saving a file from MS Project to a pdf
I have a problem in saving a file from MS Project to a pdf file in Adobe. When I preview the file while in MS Project I set the page size and get everything to look the way I want it on my screen. I o… read more
WesPCDr
WesPCDr
Master\u0027s Degree
170 satisfied customers
How does one convert a PDF file from English to Spanish w/o
How does one convert a PDF file from English to Spanish w/o buying a program/software? I have consulted with the manufacturer and this model does not have Spanish manual available. This is the documen… read more
neelimark
neelimark
Embedded Software Engineer
Bachelor\u0027s Degree
458 satisfied customers
Using VB.NET write a program that can calculate the grade of
Using VB.NET write a program that can calculate the grade of a student based on his or her marks in five subjects as input according to the following rules: • Grade A: For average between 100 and 80 (… read more
NeOh
NeOh
Software Engineer
Bachelor's Degree
682 satisfied customers
I am receiving thousands of emails from WordPress users. How
Hi Pearl - I am receiving thousands of emails from WordPress users. How do I stop them? … read more
Jason Jones
Jason Jones
AAS Information Technology
6,322 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