You are here:

C++/need c++ program to give exam

Advertisement


Question
Hi
What I want to do is create in c++ a true/false
including a percentage of each true or false
statement type of exam.
Example two questions
Answer true or false and indicate what percent from 1 100 fits your reply.
1. True, false, 40% "question" You like hot days
2 true, false, 40% "question” You never watch TV.
        So it will be 5 categories 5 question each and at the end of the test I want the average of the Percentages -100 to -0 to reflect the wrong answer and 0 to 100 to fit the right answer as the final result of the test to reflect the score "example"

Your scores are for each of the 5 categories are category 1 +20% and -40%, and the same the other categories.
Is there a program out there like that?
Are there any exams codes out there I could model off?
   Thank you for your time and response
         Tom


Answer
It seem you have to write a simple C++ program using std input and output. Here are some examples of such code: http://www.thescripts.com/forum/thread674270.html

You can use math.h for mathematical computations.

For learning C++, one good reference is Bruce Eckel's book "Thinking in C++" which has both an online and an offline version.

C++

All Answers


Answers by Expert:


Ask Experts

Volunteer


Amit Kumar

Expertise

I can answer Cplusplus language and library questions, including STL, ACE, Boost. I have a good background in Mathematics.

Experience

Programming in CPP for about 8 years. Industry experience of 4 years.

Education/Credentials
Bachelors and Masters in Computer Science from Indian Institute of Technology Delhi.

©2016 About.com. All rights reserved.