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

Suppose that you need to store information of ’Person’ having a multivalued attribute called ’hobby’. A person’s

hobbies can be reading, writing, gardening, soccer, cricket, movies, etc. At present, the database table Person

can store only one hobby! As a database programmer, what would you do to store these multi values f hobbies?

The Person table schema:

Person(id, name, position, hobby)


Consider the following scenario and normalize the database upto 3NF - [10]

Best-East University is currently in need of a software system for course registration. The university has

more than one department and each department has many courses of a particular program such as the Bach-

elor and Masters program. A student may register (enroll) all or subset of offered courses for a trimester (e.g.

Spring, Summer, Fall). During the registration period, a student’s registration is authorized (signed) by the

batch advisor. A batch advisor is a faculty member assigned to the batch. Once the registration date is over, a

student may late register courses with a late registration fee. In the case of late registration, a student requires

the signature of both the batch advisor as well as the department chairman’s authorization.


Rearrange Numbers in String

Given a string, write a program to re-arrange all the numbers appearing in the string in decreasing order. Note: There will not be any negative numbers or numbers with decimal part.


sample inputs1:

I am 5 years and 11 months old

sample output1:

I am 11 years and 5 months old

sample inputs2:

3times4 is12

sample output2:

12times4 is3

Identify and correct the error(s) in the following (you may simply need to add code):

Assume that y and total are declared as Integers

total = 0

Do Until y = -1

Print y

y = InputBox(“Enter a value, value input”)

total = total + y

Loop



Write a function with the name get_weather_report that takes the temperature as an argument.

- If the temperature is less than 22, it should return "Cold".

- If the temperature is greater than or equal to 22 and less than 35, it should return "Warm".

- If the temperature is greater than or equal to 35, it should return "Hot".


Reverse Alternate Words in Sentence

Given a sentence, write a program to reverse the alternate words in the sentence and print it.

Reverse the first word and respective alternative words.

Input

The input will be a single line containing a sentence.

Output

The output should be a single line containing the sentence with the alternate words reversed.

Explanation

For example, if the given sentence is

Sun rises in the east and sets in the west The alternate words which need to be reversed are (Sun, in, east, sets, the), by reversing these words the output should benuS rises ni the tsae and stes in eht west


Sample Input 1

Sun rises in the east and sets in the west


Sample Output 1

nuS rises ni the tsae and stes in eht west


Sample Input 2

The car turned the corner


Sample Output 2

ehT car denrut the renroc





1. Create private int variable CustomerID to store the customer id.

2. Create private string variable CustomerName to store the customer name.

3. Create private float variable CustomerBalance to store the customer account balance.

4. Create private string variable BranchName to store the customer account holding branch name.

5. Create a public member function void read() to read the input from user such CustomerID, CustomerName, CustomerBalance and BranchName.

6. Create a public member function void display(string dbranch) which display the details of customer those are having account at the given branch(i.e.dbranch). IF there is no customer(even one customer) then print "Nil".

main method implementation:



What is wrong with his code? It is not running, please check it.

def encrypt(message,shift): 

  encrypted_message = " "

lst=[]

lst.extend(message)

for x in lst: 

if(x.isalpha()): 

if(ord(x)<= 90 and (ord(x)+shift) > 90):

 new =(ord(x)+shift)- 90

encrypted_message += chr(64+new)

elif(ord(x)<= 122 and (ord(x)+shift) > 122):  

new =(ord(x)+shift)- 122

 encrypted_message += chr(96+new)

  else: 

   encrypted_message += chr(ord(x) + shift)

  else: 

 encrypted_message+=x

print(encrypted_message)

def main(): 

message=input() 

 shift=int(input())

while(shift<0 or shift>25):

print("Invalid shift")

shift=int(input())

encrypt(message,shift)

main() 



Create a class named Shape with a function that prints "This is a shape". Create another class named Polygon inheriting the Shape class with the same function that prints "Polygon is a shape". Create two other classes named Rectangle and Triangle having the same function which prints "Rectangle is a polygon" and "Triangle is a polygon" respectively. Again, make another class named Square having the same function which prints "Square is a rectangle".

Now, try calling the function by the object of each of these classes.


Keeping track of how much medicine you need to take could be a hassle. It would be even harder to keep

track if you need to change the dosage based on what time in the day you need to take it. Some medicine

is recommended to take more in the beginning and less for every hour. Your task is to create a program

that can handle the

following type of dosage:

1. Constant dosage, where the total amount is divided by the amount of hours

Functional requirements:

Your program will ask for total amount of medicine and total amount of hours that the dosage must be

calculated for. Your calculations should only give the dosage in full integers (since we cannot split up

the medicine pills). Higher dose is given first.

Non

-functional requirements:

1. Your solution must be readable

2. Your solution must be well structured and have good abstraction

3. Your solution must match the example below exactly


LATEST TUTORIALS
APPROVED BY CLIENTS