Question
Project 3 / Driver License Written Exam You have been hired by at the MD DMV as an intern in the division responsible for the
Project 3 / Driver License Written Exam
You have been hired by at the MD DMV as an intern in the division responsible for the Driver License. You are tasked to recreate several applications to provide and process the Driver License Written Exam. You will need to complete two C++ programs for this project.
First program will allow a DMV officer to create or add exam questions with answers to an exam (data) file.
Second program will allow citizens to take an exam utilizing questions from the data file (from the first program.) Citizens would be able to obtain exam results including the status of either Passed or Failed immediately.
Processing Requirements
Repetition control structure must be used in both programs so that more than one question can be processed.
MUST BE IN C++
First program
If the data file entered by the User exists, new questions should be appended. DO NOT wipe out existing questions in the file. ONLY True/False questions should be entered and need to contain less than 70 characters (including space) in a question. Correct answer (Y or N) should be provided and saved as well.
Second program
If the data file entered by the User DOES NOT exist or the file does not contain at least 10 questions, DO NOT continue the program but display appropriate error message. If the citizen is younger than 16 years old, DO NOT allow the citizen to take an exam. Use just the birth year to determine age. Do not accept answers other than Y, y, N, n from the exam taker. Answering 70% or more questions correctly passes the exam.
Project Specifications
As a student, work on each program independently by creating separate folders (one for each program) in VS.
Input for this project:
First program
Data file name
Exam questions and answers
Second program
Data file name
A citizens full name
A citizens birthdate
Answers to exam questions
Output from this project:
A data file containing exam questions and answers from first program
Test Report from second program containing:
Exam Report Title
Exam takers full name
Exam takers birthdate
Total number of questions given
Total correct responses
Total incorrect responses
Pass or Fail status
Concepts Utilized in Project
Previously covered course topics
Repetition control structures
do while statement
while statement
for statement
Input validation
Sequential data file
Save data to data file
Read data from data file
Check file status
HERE ARE SAMPLES OF THE OUTPUT
PLEASE, THE CODE NEEDS TO COME OUT LOOKING LIKE THIS.
THANK YOU
Exam Question Creation Enter the name of the file to be used: question.txt Enter a Yes/No question (in one line, no more than 70 characters): Are there rules on 'turn on red light'? Enter answer (Y or N)Y Do yuo have more question to enter (Y or N):y Enter a Yes/No question (in one line, no more than 70 characters): Do you need a license to drive? Enter answer (Y or N): Y Do yuo have more question to enter (Y or N):n 2 questions are added this run. Thank you for using my program! PROGRAMMER: Tina Lee CMSC140 Common Project 2 Due Date: 9/24/2018 Program ended with exit code: | Exam Question Creation Enter the name of the file to be used: question.txt Enter a Yes/No question (in one line, no more than 70 characters): Are there rules on 'turn on red light'? Enter answer (Y or N)Y Do yuo have more question to enter (Y or N):y Enter a Yes/No question (in one line, no more than 70 characters): Do you need a license to drive? Enter answer (Y or N): Y Do yuo have more question to enter (Y or N):n 2 questions are added this run. Thank you for using my program! PROGRAMMER: Tina Lee CMSC140 Common Project 2 Due Date: 9/24/2018 Program ended with exit code: |
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started