Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

Construct a C++ program having base class Student consisting protected member’s student name, student reg, student branch and employee rno. Define a member function input() having void return type for initializing the above said data members. Use this class to create new class Result having data member subject name ,subject marks, total marks and grade that calculate the grade for each course by using marks range given below and print the grade of each course by defining member function output() with void return type. Total marks Grade Calcultion 95-100 ‘O’ 90-94 ‘A+’ 85-89 ‘A’ 80-84 ‘B+’ 70-79 ‘B’ 60-69 ‘C’ 40-59 ‘D’ <40 ‘E'


Slowly But Surely

by CodeChum Admin

In life, good things take time.


Let's make a simple program that mirrors this beautiful idea where we ask the user for two integer inputs. The first one would represent the starting number and the second one would represent the next n integers after it.


For example, if the first number inputted is 2 and the second number inputted is 3, then the output would be 3, 4, 5 because these are the next 3 integers after 2.


Instructions:

  1. In the code editor, you are provided with a main() function that asks the user for two integers and calls the slowDisplay() function.
  2. This slowDisplay() function is a recursive function which should perform the functionality explained in the problem description above.
  3. This function is only partially implemented as it lacks a base case. Your task is to add the base case needed by this recursive function.


Input


1. Starting integer

2. Number of integers

Output


Enter·starting·integer:·2
Enter·how·many·next·integers:·3
3·4·5





This program will involve the creation Red-Black Tree Class.

Recall a Red-Black Tree is a special form of a binary Tree.

Refer to Red–black tree - Wikipedia.

The Red-Black Tree will be used to encode the number of word occurrences within a document.

You may select any text document you like to test your code.

You must implement the following class methods;

1. A method that will allow user input of the text file to load 

2. A method to read the text file and decompose the file into a list of words

3. A method to add a word to the tree.

4. A method to locate a word within the tree and extract the number of occurrences.

5. A method to allow the user to find a word in the tree

6. A method to gather stats on the tree...word with maximum number of occurrences, minimum occurrences, average number of occurrences, total number of words, tree depth and any other statistics you can think of.

7. A method to remove a word from the tree.

8. A method to save the tree to a file for recall/reuse in JSON format.



When should you use a structure?Why?

How many 5MB mp3 files can be stored on a 1GB flash drive?



A . An airline intends to extend its air fleet by purchasing three types of aircrafts, denoted by I, II and III respectively. The available budget is 5000 units. The three types have the following features: 

l .costs 100 units, has a range of 6.000 km and the collision avoidance system range is 30 km; 

II. costs 60 units, has a range of 4.200 km and the collision avoidance system range is 48 km;

III. costs 50 units, has a range of 2.800 km and the collision avoidance system range is 32 km; 

Compute how many aircrafts from each type should be purchased such that 

-the budget is not exceeded 

-the mean flight range is maximized the mean of 

-the collision avoidance system range is at least 40 km.


A. N queens-problem 

Q. Design a genotype-phenotype representation along with an appropriate way to define the neighborhood of a given configuration to solve the N queens problem by the hill climbing algorithm. 

A . An airline intends to extend its air fleet by purchasing three types of aircrafts, denoted by I, II and III respectively. The available budget is 5000 units. The three types have the following features: 

l .costs 100 units, has a range of 6.000 km and the collision avoidance system range is 30 km; 

II. costs 60 units, has a range of 4.200 km and the collision avoidance system range is 48 km;

III. costs 50 units, has a range of 2.800 km and the collision avoidance system range is 32 km; 

Compute how many aircrafts from each type should be purchased such that 

-the budget is not exceeded 

-the mean flight range is maximized the mean of 

-the collision avoidance system range is at least 40 km.


Q. Solve A using the backtracking algorithm.

A . An airline intends to extend its air fleet by purchasing three types of aircrafts, denoted by I, II and III respectively. The available budget is 5000 units. The three types have the following features: 

l .costs 100 units, has a range of 6.000 km and the collision avoidance system range is 30 km; 

II. costs 60 units, has a range of 4.200 km and the collision avoidance system range is 48 km;

III. costs 50 units, has a range of 2.800 km and the collision avoidance system range is 32 km; 

Compute how many aircrafts from each type should be purchased such that 

-the budget is not exceeded 

-the mean flight range is maximized the mean of 

-the collision avoidance system range is at least 40 km. 

Q- Use an EA to solve A.



As a new engineer for a traffic congestion mitigation company, you have been tasked with developing a


Java Swing GUI that displays time, traffic signals and other information for traffic analysts. The final GUI


design is up to you but should include viewing ports/panels to display the following components of the


simulation:


1. Current time stamps in 1 second intervals


2. Real-time Traffic light display for three major intersections


3. X, Y positions and speed of up to 3 cars as they traverse each of the 3 intersections


Some of the details of the simulation are up to you but the following guidelines will set the guardrails:


1. The components listed above should run in separate threads.


2. Loop through the simulation with button(s) providing the ability to start, pause, stop and


continue the simulation

Enunciation: Read a number X from the keyboard. Create a stored procedure that displays the sum of even numbers that are less than or equal to X.

Example: 

  • INPUT: 10
  • OUTPUT: 2+4+6+8+10 = 30
LATEST TUTORIALS
APPROVED BY CLIENTS