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

Represent the following expression by means of binary tree :


a*c/d+(R-5^a*d)/2*x -(-d) 



2. Write a simple java application that will declare the class shown in the UML diagram below.

- The getAge() method should calculate and return the present age of a person. Hint:

Use dob (date of birth). The printDetails() method should display the full name of

the person together with the gender and age in separate lines.

- Create two objects from this class. Initialize the first one with the first constructor

and, the second one with the second constructor. Use the setGender() and setDob()

methods to initialize the gender and dob of the first object.

- Display all the details of the two objects.


1. Write a simple Java application that will declare the class shown in the UML diagram below.

- The method displayMessage() function should show a welcome message together

with the course name (i.e “Welcome to Java Programming”).

- Create three objects and initialize their course names to: Calculus, C Programming

and Business Ethics.

- Display a welcome message for all the three courses.


Write a program in C++ for the following equations of motion.

v = u + at

s = ut + 1/2at2

s = 1/2t (v + u)

v2 = u2 + 2as


Modify this function so that it can invert your dictionary. In particular, the function will need to turn each of the list items into separate keys in the inverted dictionary.




Run your modified invert_dict function on your dictionary. Print the original dictionary and the inverted one.




Include your Python program and the output in your Learning Journal submission.




Describe what is useful about your dictionary. Then describe whether the inverted dictionary is useful or meaningful, and why

Create a Python dictionary that returns a list of values for each key. The key can be whatever type you want.




Design the dictionary so that it could be useful for something meaningful to you. Create at least three different items in it. Invent the dictionary yourself. Do not copy the design or items from some other source.




Next consider the invert_dict function from Section 11.5 of your textbook.




# From Section 11.5 of:



# Downey, A. (2015). Think Python: How to think like a computer scientist. Needham, Massachusetts: Green Tree Press.




def invert_dict(d):



inverse = dict()



for key in d:



val = d[key]



if val not in inverse:



inverse[val] = [key]



else:



inverse[val].append(key)



return inverse

Write a loop over the strings in list test_miss and call missing_letters with each string. Print a line for each string listing the missing letters. For example, for the string "aaa", the output should be the following.



aaa is missing letters bcdefghijklmnopqrstuvwxyz



If the string has all the letters in alphabet, the output should say it uses all the letters. For example, the output for the string alphabet itself would be the following.



abcdefghijklmnopqrstuvwxyz uses all the letters



Print a line like one of the above for each of the strings in test_miss.



Submit your Python program. It should include the following.



The provided code for alphabet, test_dups, test_miss, and histogram.


Your implementation of the has_duplicates function.


A loop that outputs duplicate information for each string in test_dups.


Your implementation of the missing_letters function.


A loop that outputs missing letters for each string in test_miss.


c) An ABC university wanted to establish a network to enable communication between Admission & Enrollment sections, Finance, Administration and Examination and departments. You are hired as a Networking Expert to suggest them:




i. A suitable network which they should implement? State reason also.




Write a function called missing_letters that takes a string parameter and returns a new string with all the letters of the alphabet that are not in the argument string. The letters in the returned string should be in alphabetical order.


Your implementation should use a histogram from the histogram function. It should also use the global variable alphabet. It should use this global variable directly, not through an argument or a local copy. It should loop over the letters in alphabet to determine which are missing from the input parameter.


The function missing_letters should combine the list of missing letters into a string and return that string.






Discuss Object oriented programming in c++ with 4 points. Each point shoult not be less than 200 words.


LATEST TUTORIALS
APPROVED BY CLIENTS