suppose you want to make a connection between the client and server using connection oriented approach. So for it which protocol will be referred and why .elaborate the steps (level-5)
Decidable Languages
Consider L4 = {<G> | G is a graph containing a route that visits each vertex exactly once}. L4 is not known to be in P.
(Show a high-level description of a TM that decides L4 in nondeterministic polynomial time and time complexity analysis of the TM).
What is computer networks
Let’s print a vertical bar graph based on the values stored in the array. Create an integer array of size 5. Fill it with random integers between 1 and 15. If the first element of the array is 5, you should print 5 “*” vertically. If the second element has 3 elements, then you should print 3 “*”vertically. A sample vertical bar graph is shown below:
*
* *
* * *
* * * *
* * * * *
3 1 4 2 5
Assuming that a text file named FIRST.TXT contains some text written into it, write a function named vowelwords(), that reads the file FIRST.TXT and creates a new file named SECOND.TXT, to contain only those words from the file FIRST.TXT which start with a lowercase vowel (i.e., with 'a', 'e', 'i', 'o', 'u').
For example, if the file FIRST.TXT contains Carry umbrella and overcoat when it rains Then the file SECOND.TXT shall contain umbrella and overcoat it
Consider L4 = {<G> | G is a graph containing a route that visits each vertex exactly once}. L4 is not known to be in P.
Show a high-level description of a TM that decides L4 in nondeterministic polynomial time. Show your time complexity analysis of the TM.
Declare a dynamic array and write Resize functions which resizes array in such a way that it retains old data and discards overflow data if new size is smaller.
Start with the publication, book and tape classes. Add base class sales that holds an array of three floats so that it can record the dollar sales of a particular publication for the last three months. Include a getdata() function to get three sale amount from the user and a putdata() function to display the sales figure. Alter the book and tape classes, so they are derived from both publication and sales. An object of book or tape should should input and output ans sales data along with other data. Write a main function to create a book and tape object and exercise their input/output capabilities.
Write a class LocalPhone that contains an attribute phone to store a local telephone
number. The class contains member functions to input and display phone number. Write a child class NatPhone for national phone numbers that inherits LocPhone class. It additionally contains an attribute to store city code. It also contains member functions to input and show the city code. Write another class IntPhone for international phone numbers that inherit NatPhone class. It additionally contains an attribute to store country code. It also contains member functions to input and show the country code. Test these classes from main() by creating objects of derived classes and testing functions in a way that clear concept of multi-level Inheritance.
Write a program having a base class Student with data member rollno and member
functions getnum() to input rollno and putnum() to display rollno. A class Test is derived from class Student with data member marks and member functions getmarks() to input marks and putmarks() to display marks. Class Sports is also derived from class Student with data member score and member functions getscore to input score and putscore() to display score. The class Result is inherited from two base classes, class Test and class Sports with data member total and a member function display() to display rollno, marks, score and the total(marks + score).