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

Write a menu driven program with the following requirements:

a) It deals with a point1 which has the following attributes; the x-coordinate

and the y-coordinate, the point2 which has the following attributes; the

x-coordinate and the y-coordinate-name, the point3 which has the

following attributes; the x-coordinate-name and the y-coordinate-name.

b) The menu communicates with the following functions:

i. The function that accepts as many point1s as possible and store them

in an array. N.B. Make your array global so that it is accessible globally in

your program.

ii. Overload the function on i. above so that it caters for point2s and

point3s as well.

iii. The function that allows the swapping of details of any 2 point2s in the

array. The positions of the 2 point2s must be known.

iv. The function that searches for a certain point3 in the array. Incorporate

this appropriately in the menu.

v. The function that extends the name of the point2 at any position given.




Create a program that asks the user a series of questions that begin, “Is your number bigger than…” in order to deduce what integer between 1 and 100 they are thinking of. The user should only be able to answer ‘y’ or ‘n’ to each question. (Hint: each time round the loop, you should be seeking to halve the range in which number could lie, so store an upper bound and a lower bound, and change one or the other according to the user’s answers).


 Write a program that uses a do-while loop to add integers by the user. In the loop condition, use a variable of type char, in which you can store the user’s answer to the question, “Do you want to enter another number?” when the loop is terminated, the program should output the total of all the inputs. To extend the program, add a nested while loop to ensure the user answers the “…another?” question sensible (with a ‘y’ or ‘n’).


Taru exam is on the head. So she started learning physics. There she learned about Pascal's law. Now she wanted to try an experiment to get a better understanding of the same.

For, the experiment Taru has N buckets (numbered from 1,2,3...N) which all are initially empty.

She has M number of queries. Each query represents an integer that is of 4 types.

  • Query 1: Fill all the buckets with water.
  • Query 2: Empty all even valued buckets (2, 4, 6 ... N).
  • Query 3: Empty all odd number buckets (1, 3, 5, ... N).
  • Query 4: Empty all the buckets. (1,2,3...N).

Write an expression involving a logical operator that is true if limit is 55 and speed is greater than 55


Assign and print the roll number, phone number and address of two students having names "Sam" and "John" respectively by creating two objects of the class 'Student'.


situation: computer science laboratory. On an average day, about 10 students are working in the lab at any given hour.

shared a printer.

The time taken for printing tasks varies from one another depending on the pages volumes printed by students. Students can send printing instructions from any terminals attached to the same network of the printer. Hence, many students can do so at once. Below is the six printing job

Task ID T1 T2 T3 T4 T5 T6

Table 1

Execution Time 3 unit time 5 unit time 2 unit time 4 unit time 6 unit time 1 unit time

Arrival Time to t1 t3 t6 t10 t14

Explain how can the printer handle the many instructions. Show your solution in terms of flowchart and full program. Make sure your program uses dynamic queue as the data structure and simulates the whole executions till completion. Your program should print the time when the print job from each student started and their waiting time. It also needs to calculate the time needed to complete all printing jobs and the average waiting time.


First read in an input value for variable numVals. The. Read numVals integer from input and output each integer on a newline after the string “position-“

Ex input 2, 80, 45,

output position-80

position-45

#include <iostream>

musing namespace std;


int main() {

Int numVals;

for(int i=0;I<numVals;I++)


3 samallest element in a array without using sort function and array size and element also ask by user

-         Design a C++ program with a ListArray class of unordered lists with integer items.                              main() function should declare an object of this class. It should print the content of the list after execution of each list operation.

-         Make necessary changes in your program to keep lists sorted in ascending order and then in descending order. Make sure that your search function effectively uses the fact that a list is sorted now.

-         Design three additional methods:

1.      itemsSum() that returns the sum of list items.

2.      invert_move() that inverts the sequence of list items in the same list by changing items memory locations.

3.      invert_move() that inverts the sequence of list items in the same list without changing items memory locations.

-         Present report with results of your experiments: The program code, outputs, some comments on additional functions 2 and 3.


LATEST TUTORIALS
APPROVED BY CLIENTS