A teacher would like his students to play a small game. The rules of the game require that the students be divided into 4 groups (Red, Green, Blue and Purple) based on the following information for each student: 1. The roll number of the student - not more than 3 digits long and ranging between 1 and 400 2. The score of the student the last time he played this game (scores will be between 0 and 100) Your task is to write a program that automatically decides the new group of the student when the above information is entered. Your program must take into consideration the following rules for group assignment:

Question
Give solution in C++ Language with secreenshoot of each step.
Expand
A teacher would like his students to play a small game. The rules
of the game require that the students be divided into 4 groups
(Red, Green, Blue and Purple) based on the following information
for each student:
1. The roll number of the student - not more than 3 digits long
and ranging between 1 and 400
2. The score of the student the last time he played this game
(scores will be between 0 and 100)
Your task is to write a program that automatically decides the new
group of the student when the above information is entered. Your
program must take into consideration the following rules for group
assignment:
Expand
Transcribed Image Text

A teacher would like his students to play a small game. The rules of the game require that the students be divided into 4 groups (Red, Green, Blue and Purple) based on the following information for each student: 1. The roll number of the student - not more than 3 digits long and ranging between 1 and 400 2. The score of the student the last time he played this game (scores will be between 0 and 100) Your task is to write a program that automatically decides the new group of the student when the above information is entered. Your program must take into consideration the following rules for group assignment:

Expert Answer

Want to see the step-by-step answer?

Check out a sample Q&A here.

Want to see this answer and more?

Experts are waiting 24/7 to provide step-by-step solutions in as fast as 30 minutes!*

*Response times may vary by subject and question complexity. Median response time is 34 minutes for paid subscribers and may be longer for promotional offers.
Tagged in
Engineering
Computer Engineering

Programing

Related Computer Engineering Q&A

Find answers to questions asked by students like you.

Q: Drewa flowchart for a program for Huntersville College. The current tuition is $20,000 per year, and...

A: Actually, program is a executable software that runs on a computer.

Q: True or False: 1) A BST can have a runtime of O(n). 2) O(9n + 6) = O(n)

A: Hey, since there are multiple questions posted, we will answer first question. If you want any speci...

Q: I need the answer but without the explanation is OK for me.

A: Here, The name of the first spreadsheet is EQUIPMENT. It has four columns heading as Number, Descrip...

Q: *6.7 (Financial application: compute the future investment value) Write a function that computes fut...

A: //SOURCE CODE IN JAVA import java.util.*; import java.util.Scanner; class FutureInvestmentValue { pu...

Q: Given a non-dummy headed circular list, write down a method for inserting an elementinto the list.

A: In a circular linked list, the last node contains a pointer which points to the first node of the li...

Q: Suppose that you are given a relation R = (A,B,C,D,E) with the following functional dependencies: {...

A: Here, from the given functional dependency we have, {BC}+ = ADEBC {D}+ = BD   Hence here {BC} is the...

Q: Insert the following customer into the CUST_MYSQL table, allowing the AUTO_INCREMENT attribute set u...

A: insert into CUSTOMER(CUST_LNAME, CUST_FNAME, CUST_BALANCE)values('Powers', 'Ruth', 500);

Q: Translate following program into compiled MIPS code. Assume that g, c, i are in $s0, $s1, $s2 regist...

A: MIPS(Microprocessor without Interlocked Pipeline Stages) assembly language of the MIPS processor.   ...

Q: 2. JAVA Programming  Arrays a1, a2… are populated as shown; display a[i] for each calls to arr; if a...

A: Declare and initialize the five arrays given in the question, as static.   Inside the arr() method w...

Q: Huffman Code[Problem Description]For an English article, the frequency of occurrence of 26 lowercase...

A: NOTE: SINCE THE LANGUAGE FOR PROGRAMMING HAS NOT BEEN MENTIONED, I AM USING JAVA FOR THIS QUESTION. ...

Q: Define referential integrity constraints. I need the answer in short sentences thanks

A: Introduction of Integrity Constraints: Integrity means in Database to maintain the consistency and a...

Q: What are the 12 questions when Developing a Well-Governed and Secure Big Data Environment?

A: Here are the 12 questions : Have you evaluated your own traditional data security approach? How ...

Q: Write a python program to read and count the number of arguments entered by the user when running th...

A: Command Line Arguments are the arguments passed by user while executing the program   argv is the li...

Q: What is the output of the following code? 1: interface Nocturnal {2: default boolean isBlind() { ret...

A: interface Nocturnal {                       //creates an interface    default boolean isBlind() {   ...

Q: Hash Search[Problem Description]Design a hash table which the phone number is the key word and can b...

A: The program is written in c

Q: Question 4: a) Which form of biometric technology do you prefer for identification purposes: fingerp...

A: Commonly used biometric technology Fingerprint biometrics is based on the recognition of specific p...

Q: you have a memory of 128 gbs, which is divided into 16 blocks. Give the complete addresses of the fo...

A: Block size = 128 Gbs Block = 16 blocks Solution: we have size of main memory = 128 gb               ...

Q: Introduce about Network security, Network attacks and their impacts on the society. please explain p...

A: Actually, network is a all devices communicate with other.

Q: 9..use the following data to shown minimum and maximum and average of parts unit price

A: Parts table: Creating parts table: create table parts (PartNo varchar(5)  primary key,Description va...

Q: Assume that the 4-digit numbers that are equal to the square of the sum of the numbers divided into ...

A: #note: if you need in any other language than please post question again mentioning the programming ...

Q: The minimum number of record movements required to merge five files A (with 10 records), B (with 20 ...

A: File with records     A = 10,  B = 20, C = 15, D = 5, E = 25 Arrange them in ascending order    D = ...

Q: If I have a textfile with three lines and i would change in the first two but the third line I want ...

A: Objective: According to the given question, the program needs to be rectified so that the desired ou...

Q: Consider a magnetic disk with 1000 cylinders rotating at a speed of 7200 revolutions per minute. The...

A: Given:- Total number of cylinders =1000 Number of Revolutions per minute = 7200 Sector size =1024 By...

Q: Your client owns a bookstore, and they need to process an input file containing the titles of all th...

A: The c++ program is written where it takes the input file and necessary commands are provided in the ...

Q: Stack is a linear data structure which follows a dynamical order in preforming operations, LIFO. In ...

A: Actually, stack has a performing operations  LIFO FIFO

Q: write a c code to print the following . While travelling in a train, you observe some college studen...

A: Code: #include <stdio.h>   int main() {     int n;     float m;     printf("enter the no of st...

Q: Question 2.2 Write a function createPassword()with no return value to randomly select 8 capital lett...

A: NOTE: - Since the programming language is mentioned, the below problem is implemented in C language....

Q: Java  What is the catch phrase?  What is a finally clause?   How do both catch and finally work in a...

A: Whether a new exception is thrown into a capture block or ultimately a block that will spread out of...

Q: Implement this program to understand use of Arrays in real world examples. A small airline has just...

A: Note: Below is the required program in java language. Program Explanation: Two functions are include...

Q: Please solve very soon completely

A: File1:index.html <!DOCTYPE html> <html>   <body>   <h2>Calculate Salary Form...

Q: TOPIC: SORT[Problem Description]Realize direct insertion sort, half insertion sort, bubble sort, qui...

A: Based on Number of Swaps or Inversion This is the number of times the algorithm swaps elements to so...

Q: Could you help me find a complete trace of this function?

A: Introduction: The Python program is an example of a recursive function and here the function calls a...

Q: Machine cycle defines a loop process with four major components. Explain why machine cycle is import...

A: Actually, Machine cycle defines a loop process with four major components Fetch -  Decode -  Execut...

Q: b) Sequential and direct access are two methods to locate data in memory. Discuss why major devices ...

A:   Sequential and direct access are two methods to locate data in memory. Discuss why major devices n...

Q: Draw the Crow’s Foot solution of the business rules given below: A driver may receive many (driving...

A: Explanation: The given crow foot diagram represents a many to many relationship (m:m) between DRIVE...

Q: 1- It is the Protocol Data Unit (PDU) of layer 3. Select one: a. data b. frame c. packet d. se...

A: 1- It is the Protocol Data Unit (PDU) of layer 3.   Select one:   a. data   b. frame   c. packet   d...

Q: list 10 equipments used in establishing networking with their prices.

A: 10 types of equipment used in establishing networking: 1) Cables 2) Connectors 3) Router 4) A wirele...

Q: A small size project of 100 KLOC is to be developed. Software development team needs to have good ex...

A: In programming advancement, effort assessment is the way towards anticipating the most reasonable me...

Q: Thanks

A: Below is the required C++ program: - Approach: - Import the header file and use the namespace. Defi...

Q: What is the output of the following code?import rope.*;import static rope.Rope.*;public class RopeSw...

A: Solution: Create two different classes named “RopeSwing.java”, and “Rope.java”. In the below program...

Q: The monthly payment for a given loan pays the principal and the interest. The monthly interest is co...

A: To find: To write a bash script for a loan using the given values of interest rate, monthly payment,...

Q: Suppose you are given the following business rules to form the basis for a database design. The data...

A: a)Given the table structure illustrated in Table I, draw its dependency diagram. Label all transitiv...