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

Use the following driver program to test your classes InsurancePolicy and CarInsurance:
#include <iostream> #include <fstream> #include "Insurance.h" #include "CarInsurance.h" using namespace std;
int main() {InsurancePolicy myPolicy(123456, "Peter Molema", 3450.67);
CarInsurance yourPolicy(456891, "Wilson Ntemba", 5550.67,
15000.00);
cout.setf(ios::fixed);
cout.setf(ios::showpoint);
cout.precision(2);
myPolicy.showPolicy(cout);
cout << endl;
yourPolicy.showPolicy(cout);
cout << endl << "AFTER UPDATES:" << endl;
myPolicy.setPolicy(123456, "Peter Molema", 5450.67);
yourPolicy.setPolicy(456891, "Wilson Ntemba", 6650.67,
25000.00);
myPolicy.showPolicy(cout);
cout << endl;
yourPolicy.showPolicy(cout);
cout << endl;
return 0;
}

2. Write a C++ program to show the sorting methods based on user input with the explanation. You can choose any TWO (2) of the sorting methods as below.


- Selection

- Insertion

- Merge

- Bubble

- Quick


  1. Write a C++ program to show the implementation of the Binary Search Tree using a linked list. The program must include all the operations in Binary Search Tree with explanation including:
  • creating BST
  • inserting an item into BST
  • display item in BST
(a) Write a function called count to determine the number of times a specific value
occurs in a vector of integers. The function should receive two parameters: the
vector to be searched (v) and the value to search for (val). count should return
the number of times val occurs in vector v.
Test your function count in a program by declaring a vector and initializing it, and
then call function count to determine how many times a specific value occurs in
the vector.
(b) Write a template version of the function count to determine the number of times
a specific value occurs in a vector of any base type and test it by declaring two
or more vectors with different base types and determining how many times a
specific value occurs in these two vectors.

Write a C++ program to declare an integer array of 50 elements. Fill this array using random function with values in range -25 to +75. Now, print address(s) of only those indexes which are having a value which is a prime No.


 


We need to create a billing software for a shop The program will be given below inputs
List of items available in the shop, its price and tax percentage
’ Details about the purchase made like the item purchased and the quantity of items will be provided.
Details about the cash available in the shop like number of notes/coins available in each denomination
Description
You are working on an app for a company like Uber. You will be provided with the number of laps that the user has
taken and travel details (distance, speed and direction) of the laps. Write a program that calculates the total duration of
the trip and also the direction in which the customer has travelled.
Input:
First line of the input will be the number of laps.
The rest of the lines in the input will contain entry in the format of "Distance Speed Direction" for each lap.
Output:
T. First line of the output should show the total duration of the trip in minutes (T).
2. Second line of the output should show the direction from the starting point (D).
You are working in a company like Uber you will be provided with number of laps the users has taken and travel details(distance, speed and direction) of laps write a program calculates the total duration of trip and also the direction in which customer has travelled

Create a class complex which store real and imaginary part of a complex number. input

 5 complex number & display it.


Write a program for a real estate company. The Program should be able to accept the full name of tenants, the total rent (advance) paid, also calculate 10% of the total rent advance paid. Finally, the program should return or display the full name and the 10% charge on the rent advance
LATEST TUTORIALS
APPROVED BY CLIENTS