Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

A candidate is going to appear in an online admission test. The marks for each test question are different ranging from 1 to 15 based

  1. A candidate is going to appear in an online admission test. The marks for each test question are different ranging from 1 to 15 based on the difficulty level of the question. The very first question has 1 mark. Each time a question with wrong answer will be followed by 1 mark question. Upon consecutive correct answers to the questions, difficulty level increases each time and so as the marks. With 2 consecutive correct answers, marks for the next question are increased by 2; With 3 consecutive correct answers, marks for the next question are increased by 3; and so on till 5 consecutive correct answers with 5 marks for the next question followed by 1 mark question with relevant difficulty level. The test finishes after attempting 100 questions or 3 consecutive wrong answers are recorded thrice. The qualifying marks are 75%. A candidate will be declared disqualified in case he/she fails to obtain at least 25% marks in his/her initial 10 questions.

Write an algorithm for the above problem and run the algorithm for five candidates to output the following.

  1. One candidate qualified with 90+% marks.
  2. One candidate qualified exactly with 75% marks.
  3. One candidate disqualified at the initial stage.
  4. One candidates disqualification at the middle of the processing.
  5. One candidates disqualification at the very final stages of the processing.

i need the algorithm for the above problem and run the algorithm

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

MongoDB Applied Design Patterns Practical Use Cases With The Leading NoSQL Database

Authors: Rick Copeland

1st Edition

1449340040, 978-1449340049

More Books

Students also viewed these Databases questions