Answered step by step
Verified Expert Solution
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
- 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.
- One candidate qualified with 90+% marks.
- One candidate qualified exactly with 75% marks.
- One candidate disqualified at the initial stage.
- One candidates disqualification at the middle of the processing.
- 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
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