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

An estate agency sells and rents out properties. Each property listed at the company has a property code and is assigned to an estate agent. The property code consists of 10 digits e.g. 1312122019. The first digit indicates whether the property is for sale (1) or available for renting (2). The second digit indicates whether it is a business property (> 2) or a residential property (<= 2). Properties that are for sale has a selling price while properties to be rented out has a rent amount (per month) and a value that indicates the duration of the contract


 



Write a program that reads words and arranges them in a paragraph so that all other than the last one are exactly forty characters long. Add spaces between words to make the last word extend to the margin. Distribute the spaces evenly. Use a helper function for that purpose. A typical example would be

  Four score and seven years ago our

  fathers brought forth on this continent

  a new nation, conceived in liberty, and

  dedicated to the proposition that all

  men are created equal.


Use the C++ precedence rules to remove any unnecessary parenthesis from the following expressions :

A. ((a* b)) + (c * d))


B.   ((a* b) / (c * d))


C.   ((a + b) + ((c / (d + e)) * f))


D.  (((a + b) / (c + d))* (e + f))


E.   ((-a + b) <= (c * d)) && ((a + b) >= (c - d))


Given list of students’ records. Write a program with signature as below: Method Name: getStudentsWithMarksMoreThan() Input: marks – Integer Output: List of Students having marks more than input Also add Unit Test case – both positive and negative. You can do in choice of your language (Any high level language like – Java, Python, PHP, C#, JavaScript) For example JSON given below of 3 students for your reference.



QUESTION ONE (20 MARKS)

1.1 Consider the state space graph shown below. P is the start state and V is the goal state. The costs for each edge are shown on the graph. Each edge can be traversed in both directions.

1.1.1 Use Breadth-First Search to generate the shortest path from P to V. (10)

1.1.2 Apply the Depth First Search method to find a path from P to V. (10)



Translate the following sentences into a Prolog program (10)

Everyone who teaches programming module is smart.

Craig teaches the programming module.

Craig’s brother teaches the mathematics module.

The programing module is interesting.

Craig’s sister teaches all modules.


Question :Create a 'STRING' class which overloads ‘= = ' operator to compare two STRING objects


Create a class vector with array a[n] and calculate v2=v1*5 and v3=4*v1. Use friend function in overloading operators.


Design a class template with overloaded operator / to perform a = b / c.


You have been tasked to design a COVID-19 screening application for your campus. The guards at each gate will screen the students and enter their details on the application.It should include the following functions:

1. A screening survey which will allow guards to record the students’ screening data.

2. Searching for a student’s details and status.

Technical Requirements:

1. The application should make use of Parallel arrays that will hold the details of the student as it is entered along with their status (admitted/not admitted). No more than 300 students will be allowed on a campus at any given day and time.

2. No student should be allowed access to the campus after 12h00 in the afternoons.

3.Each main task that the application should perform should be contained in a module and should be called from the mainline logic.

  1.1 Write the pseudocode that will accurately represent the application you are designing.


LATEST TUTORIALS
APPROVED BY CLIENTS