How JustAnswer Works:

  • Ask an Expert
    Experts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional Answer
    Via email, text message, or notification as you wait on our site.
    Ask follow up questions if you need to.
  • 100% Satisfaction Guarantee
    Rate the answer you receive.

Ask Raj Your Own Question

Raj
Raj, Engineer
Category: Homework
Satisfied Customers: 1259
Experience:  4 + Experiance in IT Industry
16752232
Type Your Homework Question Here...
Raj is online now
A new question is answered every 9 seconds

You have been asked to write a program to grade several multiple-choic

Resolved Question:

You have been asked to write a program to grade several multiple-choice exams. The exam has 20 questions, each answered with a letter in the range of ‘a’ through ‘f’. The answers key is declared in the program as constant of type string. An example of answer key is “abcdefabcdefabcdefab”. Your program should work for any other answer key.

The program should first ask users for the number of students to be graded. Then it should have a while loop in the main function. For each student, the loop repeatedly asks users to enter a student ID number and a string of characters representing the answers of the student. The student ID number is XXXXX type string and should contain exactly 7 digits (each digit between ‘0’ and’9’). If a student ID number is XXXXX the program displays and error message and prompts the user to re-enter that student information. If a student gives more answers than necessary (more than 20 in our case), the program automatically truncates the extra answers. On the other hand, if a student provides less number of answers, the remaining unanswered questions are considered as being answered wrongly. If for a given answer, the user enters a letter other than ‘a’, b’, ‘c’, ‘d’, ‘e’, or ‘f’ then the question is considered as being wrongly answered.

Furthermore, in each while loop in the main routine, your program should compute a percentile score for the student by comparing the answers for that student to the answers key, and a curved grade in ‘A’ though ‘F’ based on the following:

• >=90 A
• =80 B
• = 70 C
• = 60 D
• = 50 E
• <50 F


The results of each student are displayed by the student in the format: percentile score and a curved grade in ‘A’ though ‘F’.

The program should also compute and display the following statistics for the graded answers: Average score, Maximum score, and Minimum score.
Submitted: 1 year ago.
Category: Homework
Expert:  Raj replied 1 year ago.
Hi there,

I will be helping you with the required solution.
By when do you need the solution file?

Thank you
Customer: replied 1 year ago.
ASAP hahaha :P
Expert:  Raj replied 1 year ago.
Ok will it be fine if i provide you solution in say next 6-7 hrs,?
Customer: replied 1 year ago.
Yes sounds good and you can be as basic as possible this is my first cis class. Please try to avoid advanced things I wouldn't know yet
Expert:  Raj replied 1 year ago.
No problem....
Have you been taught about arrays?
Customer: replied 1 year ago.
Yes we have
Expert:  Raj replied 1 year ago.
Ok thats cool...
I will keep it as simple as possible. And will also add comments to make it easy for you to understand the working of the code.
Check back after 6 hrs. For solution here....

Have a Good Day
Customer: replied 1 year ago.
Thank you so much that would be great :)
Expert:  Raj replied 1 year ago.
You are welcome.
Customer: replied 1 year ago.
Also I forgot to say I use visual studios 2012 so u know
Expert:  Raj replied 1 year ago.
I use Visual Studio 2010 so will it be fine with you??
Customer: replied 1 year ago.
Yea
Expert:  Raj replied 1 year ago.
Ok than....
Customer: replied 1 year ago.

visual studios 10 and 12 basically the same right as long as it works lol

Expert:  Raj replied 1 year ago.
Yes justbat the beginning it will ask to convert for which you wiol have to do yes.....
Thats all
Customer: replied 1 year ago.

okay cool! how long u think til u finish?

Expert:  Raj replied 1 year ago.
Almost done will need 1 - 2 hrs worst...
Customer: replied 1 year ago.

sounds good thank you so much!

Expert:  Raj replied 1 year ago.
You are welcome.
Expert:  Raj replied 1 year ago.
Ok Sorry for delay....

I have compressed the complete project into one file and am uploading the link to download the compressed folder.
After downloading Extract the contents at one place and Open the SLN File in the Folder to open the project in Visual Studio.

Since you will be using VS 2012 so It will ask to convert for compatibility so do the NEXT and NEXT Steps and when its compatibility converson is done than Run the Project to get the Output.

I have kept the project very basic and simple.... and have followed the complete specification provided by you.

Please download the compressed project(Student Grade.zip)<SIZE - 5.14 MB> from the link below:
http://wikisend.com/download/451700/Student Grade.zip

If you face any difficulty than feel free to ask for help.

If the solution file is satisfactory than Please don't forget to RATE the Answer.
It will hardly take few seconds to RATE my Answer

Thank You and Have a Good Day.
Customer: replied 1 year ago.

the code looks great i just have a few questions


can u help me with this


Component 1: Software System Design


 


Use the function decomposition method to describe all functions that you will implement in this project. Use arrow lines to indicate the relationship among all functions, and their calling sequence. Compare the merits of alternative designs


 


and


 


Component 3: Assurance of Software Correctness


 


Find out a set of preconditions and postconditions for each function in this project. In your implementation, use assert( ) to accomplish the goal of software correctness assurance. Summarize the result in the following table.


 

Expert:  Raj replied 1 year ago.
Are these questions with respect to this project?
Customer: replied 1 year ago.

yes

Expert:  Raj replied 1 year ago.
I never used any function because it was never mentioned to use so there will be no reply for the abobe questions for that I will have to modify the code.
Customer: replied 1 year ago.

there are functions in it tho isnt avg = total / num; a function?

Expert:  Raj replied 1 year ago.
No function are something like main() thats a function....
Customer: replied 1 year ago.

the whole thing is a int main()

Expert:  Raj replied 1 year ago.
Yes i have placed all code in main...
Didnt create any function as it was never jentioned in question to create functions...
Expert:  Raj replied 1 year ago.
So do you want me to change the code or the code I have provided you is fine with you??

If the solution file is satisfactory than Please don't forget to RATE the Answer.
It will hardly take few seconds to RATE my Answer

Thank You and Have a Good Day.
Customer: replied 1 year ago.
I think it should be fine but did u use any preconditions or post conditions ?
Expert:  Raj replied 1 year ago.
Precondition and post conditions exists for functions....

Since we have only main function so I can provide you detail for that.

MAIN FUNCTION:
PRE-CONDITION: Nothing
POST-CONDITION: A Valid Input of Student ID is Taken with Answers and Based on which We Display the Output which comprises of Score, Grade and an Overall Average value along with Maximum and Minimum Score among all students.

Thats all....

If the solution file is satisfactory than Please don't forget to RATE the Answer.
It will hardly take few seconds to RATE my Answer

Thank You and Have a Good Day.
Customer: replied 1 year ago.

lmao i sound so dumb sorry still new to c++ but thank you so much ahaha

Expert:  Raj replied 1 year ago.
Its Ok I Understand.......
Even I was not having the knowledge in the beginning when I just started programming....
You will get the idea later on.....

If the solution file is satisfactory than Please don't forget to RATE the Answer.
It will hardly take few seconds to RATE my Answer

Thank You and Have a Good Day.

Expert:  Raj replied 1 year ago.
THIS ANSWER IS LOCKED!
You can view this answer by clicking here to Register or Login and paying $3.
If you've already paid for this answer, simply Login.
Raj, Engineer
Category: Homework
Satisfied Customers: 1259
Experience: 4 + Experiance in IT Industry
Raj and 8 other Homework Specialists are ready to help you

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:

 
 
 
  • 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
< Last | Next >
  • 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!!!! Alex Los 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. GP Hesperia, CA
  • I couldn't be more satisfied! This is the site I will always come to when I need a second opinion. Justin Kernersville, 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. Esther Woodstock, 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. Robin Elkton, Maryland
  • He answered my question promptly and gave me accurate, detailed information. If all of your experts are half as good, you have a great thing going here. Diane Dallas, TX
 
 
 

Meet The Experts:

 
 
 
  • Manal Elkhoshkhany

    Tutor

    Satisfied Customers:

    4520
    More than 5000 online tutoring sessions.
< Last | Next >
  • http://ww2.justanswer.com/uploads/BU/BusinessTutor/2012-2-2_115741_Kouki2.64x64.jpg Manal Elkhoshkhany's Avatar

    Manal Elkhoshkhany

    Tutor

    Satisfied Customers:

    4520
    More than 5000 online tutoring sessions.
  • http://ww2.justanswer.com/uploads/LI/lindaus/2012-6-10_04811_IMG20120609164157.64x64.jpg Linda_us's Avatar

    Linda_us

    Finance, Accounts & Homework Tutor

    Satisfied Customers:

    3121
    Post Graduate Diploma in Management (MBA)
  • http://ww2.justanswer.com/uploads/ComputersGuru/2010-02-13_051118_Photo41.JPG LogicPro's Avatar

    LogicPro

    Engineer

    Satisfied Customers:

    3035
    Expert in Java C++ C C# VB Javascript Design SQL HTML
  • http://ww2.justanswer.com/uploads/lanis/2009-4-1_233717_phput9xef_c1pm.jpg Lani S.'s Avatar

    Lani S.

    Tutor

    Satisfied Customers:

    2457
    Registered Nurse, Internet Researcher, Private Tutor
  • http://ww2.justanswer.com/uploads/chooser77/2009-08-18_162025_Chris.jpg Chris M.'s Avatar

    Chris M.

    M.S.W. Social Work

    Satisfied Customers:

    2341
    Master's Degree, strong math and writing skills, experience in one-on-one tutoring (college English)
  • http://ww2.justanswer.com/uploads/JawaadAhmed/2009-6-27_12137_SIs_SHadi.jpg F. Naz's Avatar

    F. Naz

    Chartered Accountant

    Satisfied Customers:

    1975
    Experience with chartered accountancy
  • http://ww2.justanswer.com/uploads/JK/jkcpa/2011-1-16_182614_jkcpa.64x64.jpg Bizhelp's Avatar

    Bizhelp

    CPA

    Satisfied Customers:

    1873
    Bachelors Degree and CPA with Accounting work experience