My orders
How it works
Examples
Reviews
Blog
Homework Answers
Submit
Sign in
How it works
Examples
Reviews
Homework answers
Blog
Contact us
Submit
Fill in the order form to get the price
Subject
Select Subject
Programming & Computer Science
Math
Engineering
Economics
Physics
Other
Category
C++
Software Engineering
Java | JSP | JSF
Databases | SQL | Oracle | MS Access
C
Python
Excel
C#
Visual Basic
Computer Networks
Functional Programming
Android
Assembler
UNIX/Linux Programming
ASP | ASP.NET
MatLAB
Wolfram Mathematica
MathCAD
Maple
Perl
Action Script | Flash | Flex | ColdFusion
Ruby | Ruby on Rails
Prolog
Objective-C | Swift
Algorithms
Web Development
HTML/JavaScript Web Application
NodeJS Web Application
Other
Deadline
Timezone:
Title
*
Task
*
{"ops":[{"insert":"University of Central Punjab (UCP) is arranging a competition of programming, in which IT department student can participate. In this competition student will be asked questions (True\/False) and student will be given points, in the end student whose points are higher will be winner. Student whose marks are second highest is called runner up.\u00a0\nYou are required to simulate this scenario using C++. \n\u25cf\u00a0\u00a0\u00a0\u00a0\u00a0User will enter 3 options either True (T), False (F) or space for each question. As shown below \n T\n F\n T\n \u00a0\n T\n F\n T\n T\n F\n T\n \nThe answer to question 1 is true, the answer to question 2 is False, and student did not answer question 4. The exam has 10 questions.\n\u25cf\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0Each correct answer is awarded two points, each wrong answer gets one point deducted, and no answer gets zero points. \n\u25cf\u00a0\u00a0\u00a0\u00a0\u00a0Assume there are 10 students so you have to ask 10 strings of True false as seen above. Before entering answer ask user to write his\/her serial number. So you have two array one contain roll number and one contains marks of each student. This concept is called parallel array. Note: please make sure using programming, that user should enter a unique serial#, if it selects a previously available serial#, tell \/her to enter again.\n\u25cf\u00a0\u00a0\u00a0\u00a0\u00a0Generate a random key that have correct answers in order to give students marks.\n"},{"attributes":{"bold":true},"insert":"Tasks to be done:"},{"insert":"\n"},{"attributes":{"bold":true},"insert":"Q1. \u00a0Print winner and runner up serial# along with marks"},{"insert":"\n"},{"attributes":{"bold":true},"insert":"Q2. Print all participants serial # and marks in descending order(parallel sorting)"},{"insert":"\n"},{"attributes":{"bold":true},"insert":"Q3. Print average of marks of all students"},{"insert":"\n"},{"attributes":{"bold":true},"insert":"\u00a0"},{"insert":"\n"},{"attributes":{"bold":true},"insert":"\u00a0"},{"insert":"\n"},{"attributes":{"bold":true},"insert":"Sample Output: (for 3 students)"},{"insert":"\n F\n \u00a0\n F\n T\n T\n T\n T\n T\n F\n T\n Please enter your serial Number: 123\nPlease enter questions answers:\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\n\nPlease enter your serial Number: 123\nSorry this serial number is already present! Enter again: 453\n\n T\n F\n F\n T\n T\n T\n T\n T\n F\n T\n Please enter questions answers:\n\n\nPlease enter your serial Number: 143\n F\n T\n F\n T\n F\n F\n F\n F\n F\n T\n Please enter questions answers:\u00a0\n\n\n\n F\n T\n F\n T\n T\n T\n T\n T\n F\n T\n Answers to questions are: \n\n\nWinner student is: 123 with marks 18\nRunner up is: 453 with marks 14\n\nMarks of Students are:\n123\u00a018\n453 14\n143 8\nAverage of marks is: 13.333\n"}]}
I need basic explanations
Special Requirements
Upload files (if required)
Drop files here to upload
Add files...
Account info
Already have an account?
Create an account
Name
*
E-mail
*
Password
*
The password must be at least 6 characters.
I agree with
terms & conditions
Create account & Place an order
Please fix the following input errors:
dummy