Questions: 5 831

Answers by our Experts: 5 728

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

Given three sides of a triangle (a,b,c) as input. write a program to determine whether the triangle is Equilateral , Isosceles or Scalene?

INPUT:

The first line of input will contain an integer A

The second line of input will contain an integer B

The third line of input will contain an integer C

Output

If the given sides A,B & C are equal,print Equilateral

If the given sides any of two sides are equal, print Isosceles

If the given sides A,B,C are not equal to each other, print Scalene

Sample Input 1

4

4

4

Sample Output 1

Equilateral


Sample Input 2

3

2

3

Sample Output 2

Isosceles


Odd even prime multiples

1. Create a database console application to perform the following applications:



a) Define a dictionary to store details for library books consisting of book id, title, author name, year of publication and publisher.



b) Show how the information can be stored in a SQLite or MySQL database named books, retrieved by book id or author name, update using any book id or title and deleted using book id or title.



c) Handle all exceptions and validate data entry.




2. Redo question 1. above converting the application into a user-friendly GUI application using a python GUI library such as Tkinter and develop all operations stated above while connecting to the same database named books.

Demonstrate use OOP principles, data structures and file handling operations to carry out the following tasks.



a) Define a class named PERSON, with child classes named DAUGHTER and SON who also have derived classes named GRANDSON and GRANDDAUGHTER respectively. All children classes have derived genetic features and skills from PERSON.



Create 5 methods for getting and setting genetic features, setting and getting skills and demonstrate the concept of polymorphism.




b) Modify the answer in a) and show how the PERSON features are captured in a file called person.txt. Also create another method to read from the file person.csv and store the data in a list called persondata.



Clearly show how exceptions are handled in year program.

String processing


Full Question in the image


You are given a dictionary that maps all lowercase English alphabets from

'a' to 'z' to either lor -1.


For a string of length k, you perform the below operation:

•      Find the maximum character from index Ito k, and find the dictionary mapping of the respective maximum character.

•      If dictionary mapping is 1, increment all characters from Ito k.

•      'a' becomes 'b', 'b' becomes 'c', .      'z' becomes 'a'.



Task

Determine the count of each lowercase English alphabet after N operations.


Please read Full Instructions and Note Please Use Those Images as reference... Please help


https://drive.google.com/file/d/1QVE-utPuKxxxah3P5T5geL93MX1G5vy_/view?usp=sharing

https://drive.google.com/file/d/1b3RT2IBIBMG2Ojob6uGqoDglXHg-Z928/view?usp=sharing

GIVEN a M x N matrix, write a program to print the matrix after ordering all the elements of the matrix in increasing order




Input



the first line of input will contain two space-separated integers, denoting the M and N.



The next M following lines will contain N space-separated integers, denoting the elements of each list




Output



The output should be M lines containing the ordered matrix.



Note: There is a space at the end of each line



Sample input1



3 3



1 20 3



30 10 2



5 10 15



Sample output



1 2 3



5 10 11



15 20 30




Temperature conversion in


Program

Using the random module, create a program that simulates rolling a pair of dice every time the user types “roll”. This can be done by generating numbers from 1-6 and displaying them on the screen. Keep allowing the user to type “roll” until the sum of the pair of dice rolled is 7. Once that happens, terminate the program.


Write a program which creates a class named babyRecord with four methods.

a) One method will be used to write details of a child including date of birth, name, parent names and hospital name into a file called baby_data.txt.

b) The second method will be used to read from the file baby_data.txt and store the data in a dictionary called records.

c) The third method will be used to search for a baby using baby name or parent names information in the file called baby_data.txt.

d) The last method will be used to delete records in the dictionary and file respectively.

e) Clearly show how exceptions are handled in your program in each method.


Demonstrate use of Object Oriented Programming (OOP) principles, data structures and file handling operations to carry out the following tasks:

a) Define a class named Person, with child classes named Daughter and Son who also have have derived classes named GrandSon and GrandDaughter respectively. All child classes have derived genetic features and skills from Person. Create 5 methods for getting and setting genetic features, setting and getting skills and demonstrate the concept of polymorphism.

b) Modify the answer in a) and show how the person features are captured in a file called person.txt. Also create another method to read from the file person.csv and store the data in a list called persondata. Clearly show how exceptions are handled in your program


LATEST TUTORIALS
APPROVED BY CLIENTS