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

A housing society is represented by a 3D plane. We have a class house which

stores the location of a house of three persons using x, y and z coordinates of

plane. Another class market which stores the location of a main market. Each class

should initialize the data members using parameterized constructor. Keep the data

members of all the classes private. Also display the location of houses and market.

Calculate the distance of houses of all the persons from the market and display

which person’s house is far away from the market. Also display which person has

nearest distance from the market.

The class manager has the access to both class house and market so it swaps the

location of the market with the house of a person that has the largest distance

with the market. in C++


The Ghana Navy has been paying its newly employed staff on ‘table-top’, a practice that has attracted much criticism from the military command. On a trial basis they have engaged your services to design a payment system with the following functionalities.

Draw a flowchart that uses while loops to perform the following steps:

a. Prompt the user to input two integers: firstNum and secondNum. (firstNum must be less than secondNum.)

b. Output all the odd numbers between firstNum and secondNum inclusive.

c. Output the sum of all the even numbers between firstNum and secondNum inclusive.

d. Output all the numbers and their squares between 1 and 10.

e. Output the sum of the squares of all the odd numbers between firstNum and secondNum inclusive.



Write a pseudocode that calculates and prints the bill for a cellular telephone company. The company offers two types of service: regular and premium. Rates vary based on the type of service and are computed as follows:



Regular service: $10.00 plus first 50 minutes are free. Charges for over 50 minutes are $0.20 per minute.

Premium service: $25.00 plus:

a. For calls made from 6:00 a.m. to 6:00 p.m., the first 75 minutes are free; charges for over 75 minutes are $0.10 per minute.

b. For calls made from 6:00 p.m. to 6:00 a.m., the first 100 minutes are free; charges for over 100 minutes are $0.05 per minute.
Write a program to create a class for counting the number of objects created
and destroyed within various block using static data member, constructor
and destructors.
Write a program using copy constructor to copy data of an object to another
object.
Write a Java program to display the three highest monthly speeding fines recorded for four
different cities. The following rows and columns represent the monthly speeding fines of each
city.
JAN FEB MAR
JHB 128km 135km 139km
DBN 155km 129km 175km
CTN 129km 130km 185km
PE 195km 155km 221km
Using a Two Dimensional array, produce the speeding fines report including the speeding fines
statistics. The speeding fines statistics must display the highest and lowest speeding fines in the
two dimensional array.
#include <string>
using namespace std;
struct book
{
string title;
string author;
unsigned int year;
};
int main()
{
book bookrec;
cout << “Enter Book Title:”; getline(cin,bookrec.title);
cout << “Enter Book Author:”; getline(cin,bookrec.author);
cout << “Enter Publication Year:”; cin >> bookrec.year;
cout << “The following information has been received…\n”);
cout << “Book Title:” << bookrec.title;
cout << “Book Author:” << bookrec.author;
cout << “Year Published:” << bookrec.year << “\n”;
system(“pause”);
return 0;
}


Modify Program Sample-1 by applying a structure array in the program. The program should accept 5 records of books and displays them on the screen.
The program should also include two functions: (1) a function for entering book information; and (2) a function for displaying the records.
Write a Java program to display three monthly sales of different vehicle types. The rows and
columns represent the monthly sales of each vehicle type.
JAN FEB MAR
SUV 25 15 35
COUPE 25 55 35
SEDAN 11 20 45
VAN 17 27 25
Using a Two-Dimensional array, produce the vehicle type sales report and the total sales made for
each vehicle type. If the total sales made per month are greater than or equal to 100, gold status
is awarded. If the monthly sales are less than 100, silver status is awarded.
for i in displayList:
    print(i[0])
    #loop through displayList
    for i in range(0,len(displayList)):
        #Test if the fist item in the current sub-list contains the text "Price Level
        #Tip: Remeber that each sub-list is a (displayList). So you have
        #       to access its items via displayList followed by TWO indexes.
        ......
            #Extract the second item from the currnet sub-list into variable called priceLevel
        priceLevel = ...
        #Test if priceLevel is between previousPrice and currentPrice OR
        #        priceLevel == previousPrice OR
        #        priceLevel == currentPrice
        if....

        :
            #Sound the alarm. Pass in the frequency and duration.
            if self.__currentPrice > self.__previousPrice:
                frequency = 800
                duration = 700
            else:
                frequency = 400
                duration = 700
            winsound.Beep(frequency, duration)

            #Print the text 'Alarm' with a green background color, so that the user
            #can go back and check when the alarm was sounded.
            ...





LATEST TUTORIALS
APPROVED BY CLIENTS