Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Program needs to be completed with python code. A file will consist of a series of questions and answers, something like this: This will ask

Program needs to be completed with python code.

A file will consist of a series of questions and answers, something like this:

This will ask for the capitals of several countries. What is the capital of France?,Paris What is the capital of Egypt?,Cairo 

The program will read the contents of the file and then quiz the user:

What is the name of the question file? capitals This will ask for the capitals of several countries. What is the capital of Japan? Tokyo Correct! What is the capital of Peru? Lima Correct! What is the capital of Assyria? I don't know that! Incorrect! The answer is Nineveh You got 2 answers correct out of 3, which is 67% 

At least 10 questions should be asked out of a question bank of at least 15. Questions should be chosen at random from the collection, without repeating.

Other program requirements:

It must obtain some data from a file

There must be appropriate call for either lists or dictionaries

There must be appropriate call for decisions and repetitions

The project must be large enough to merit decomposing into functions

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Beginning ASP.NET 2.0 And Databases

Authors: John Kauffman, Bradley Millington

1st Edition

0471781347, 978-0471781349

More Books

Students also viewed these Databases questions

Question

What does one price taking firm in a large competitive market means

Answered: 1 week ago

Question

What attracts you about this role?

Answered: 1 week ago

Question

How many states in India?

Answered: 1 week ago

Question

HOW IS MARKETING CHANGING WITH ARTIFITIAL INTELIGENCE

Answered: 1 week ago

Question

Different types of Grading?

Answered: 1 week ago

Question

Why do HCMSs exist? Do they change over time?

Answered: 1 week ago