Questions: 11 448

Answers by our Experts: 10 707

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

You work in a printing office that the machine there can print documents in different colors. It gets an integer number between 1 to 7 and prints the documents in rainbow colors, as shown in the following table:

Number Matched Color

1 ------- red

2 ------- orange

3 ------- yellow

4 ------- green

5 ------- blue

6 ------- indigo

7 ------- violet

Design an algorithm and write a C++ program to do the following:

  • Prompt user to enter a number between 1 and 7
  • Use selection structure such as if-else or switch to find the color based on the previous table
  • Output the color related to input number. See the sample output.
  • Save the output in a file named “color.txt”.

A program to declare a class student whose data members are student name,marks of 3 subject,total and average and two static data members pass and fail and members functions are-



1 get()to get student name and marks of three subject



2 calc() to Calculate total and avg and also calculate how many student are pass and fail (avg>=40,pass otherwise fail)



3 disp()to display all data members except pass and fail



4 result ()to display total no.of pass and fail student it is a static function



In main(),get details 5 students




program to convert 6 digits numbers into words


Create a program that reads trom the console two integer numbers (int) and prints now many numbers between them exists, such that remainder of their division by 5 is O. E

A company hire network administrators in the following cases:


• If the candidate is Cisco certified.

• If the candidate’s highest degree is networks, age is below 30.

• If the candidate has 3 years of experience



In all other cases the candidate is not hired. If the cisco certificate status, highest degree and experience are the inputs, write a program to determine whether the candidate will get hired or not.


Assume that you have to implement a software system for the Library of your university. As a developer,

you have been assigned the module of hiring and storing the unique ids of the employees shown in the

hierarchy below. Using the Tree data structure, provide a program that

 Hires and stores all the employees

 Display the structure in a in order manner

 Fires the employee having id 117


Provide a program that takes the digits of your roll number from the user, modify each digit by adding 4 in it

then sort the modified digits using Selection sort.


Provide a program showing the implementation of Hashtable. The size of the hashtable should be 10.

Add the following numbers

11, 62, 46, 38, 29 66

Search and delete 11

Remove the collision


You have to design and implement a game in which the avatar has to find the hidden treasure in circus. The

only way to guide the avatar and to find the treasure is to find the shortest path that leads to the hidden

treasure. You, being a developer are bound to use the Queue data structure. Among, depth first search and

breath first search, determine the most suitable algorithm and provide a complete code. Decide the suitable

name of the avatar and the game since you are the designer. Data should be taken from the user. Make

relevant assumptions if required.


You will create a program that displays amount of a cable bill. The Amount is based on the type of customer, as shown in the figure. For a residential customer, the user will need to enter the number of premium channels only. For a business customer, the user will need to enter the number of connections and the number of premium channels. Also enter appropraite comments and any additional instructions in your c++ program. Test the program appropriately before submission. 


For resedential customers:

Processing fee: $4.50

Basic service fee: $30

Premium channels: $5 per channel


For business customers:

Processing fee: $16.50

Basic service fee: $80 for the first 5 connections, $4 for each additional connection

Premium channels: $50 per channel for any number of connections




LATEST TUTORIALS
APPROVED BY CLIENTS