Create a class called MainString, declare two dimensional array and get the string array input using getinput method. Perform the following operation in inner class. Tom Jerry Tina Shinu Ram Zara Tintu Riya Arjun (i) Reverse each string (ii) Display the string in each row having greatest length.
Q: What is the Big O of insert and search on a BST? ANswer is not O(1) O(N*lg N) O(N) ...
A: Answer The correct answer will be option (b) that is O(N) Explanation:- Binary search tree time comp...
Q: Change the current date format to: MON-DD-YYYY HH:MI:SS for your session ? Hint: use ALETER SESSION
A: Date is always stores in default way only but it can be converted into our required format of the da...
Q: Internet is based on an open standard called __. It is a store-and-forward packet switching techniq...
A: Below is the answer to above question. I hope this will be helpful for you.
Q: achine Problem: Create a C-program using one dimensional array that will display the output below. T...
A: In this question, we are asked to write a C program where user enter a element and position for the ...
Q: When surfing online, you get some strange data on an apparently secure website, and you realize you ...
A: The answer is given in the below step
Q: Give a specific example showing a change happening in one table when a update happens in another. Th...
A: Below i have answered:
Q: g) The smallest unit of binary data is the 1. bit. 2. byte. 3. word. h) Which of the following best ...
A: *Note: We have given guiding principle, we can only do first question according guideline. So please...
Q: ou are given two sequences, each of this X = (X[1]X[N]) and YYY One operation consists of the follow...
A:
Q: Write the shortest condition in the if-statement below that will make the unshaded values of row ten...
A: From the given figure,For row ten, the unshaded values are 3 and 13For row ten the value is valid if...
Q: Find all solutions to cach of the following linear equations: a. 3x4 (mod 5) b. 4x4 (mod 6) c. 9x 12...
A:
Q: Create an ERD with the following Entities and Attributes. Entity: USERS - Attributes: Name of User,...
A: Create an ERD with the following Entities and Attributes. Entity: USERS - Attributes: Name of User, ...
Q: Solve for the following: (Use the for..next, do..loop and while..loop for the solution) In VB.Net Pr...
A:
Q: Hi I hope you can help me. I will rate the answer. Use MYSQL do it in a .sql format. Also please pr...
A: Given :- Hi I hope you can help me. I will rate the answer. Use MYSQL do it in a .sql format. Also ...
Q: Write a php script to display 1! 2! 3! 4! 5! 6! 7! On one line There is no! At starting and ending p...
A: Algorithm: Start Iterate through the loop from x=1 to x=7 If x<7, print "$x!" Else print "$x" St...
Q: QI Choose two correct answers for the missing step of the algorithm below to find the result of solv...
A: Options were not given, hence I have provided with the possible answer. Please match the answer as t...
Q: ecution for each line using "call by need" an
A: Draw the run-time stack after the execution for each line using "call by need" and "call by name". A...
Q: TCP session sends 50 packets per second over an Ethernet Local Area Network (LAN). Each packet consi...
A: TCP session sends 50 packets per second over an Ethernet Local Area Network (LAN). Each packet consi...
Q: Write a program that asks the user to input a positive integer with at least three digits, and then ...
A: Since no programming language is mentioned, I am using c++. Algorithm: Start Read a number n Initia...
Q: Assume that list1 contains 100 items. The number of items in the following slice is list1[-4:-3] lis...
A: This question comes from Python Programming which is a paper of Computer Science. This question req...
Q: 1. Given the following Context Free Grammar, show the derivation for the following strings. -> = ;...
A: As per our guidelines, we are supposed to answer only one question. Kindly repost the remaining ques...
Q: Let L= [w€ {a,b.c)": na(w) = 1, ne{w) = 1] Which of the following NFAS accepts L? a) 93 q4 q5 96 b) ...
A: Given: L = {w belongs to{a,b,c}* : na(w)=q, nc(w)=1} number of a's in w are :1 number of c's in w ar...
Q: Please create a java program using the "queue" data structure. This program should imitate the waiti...
A: Queue.java import java.util.*; import Queuelmpl.java public class QueueExample { QueueImpl q; public...
Q: design software when you "write" a program? What makes software design different from coding
A: During Software engineering , we deal in with so many stages . So, in order to get on to a better an...
Q: draw are use cased diagram for exam preparation app
A: INTRODUCTION: A use case diagram in UML is used to show the various ways in which a user may intera...
Q: 4.a. Which piece of equipment in a dim fiber lease can limit the lessee's access to multiple channel...
A: 4.a. Which piece of equipment in a dim fiber lease can limit the lessee's access to multiple channel...
Q: Write a python script that meets the below requirements 1. Red LED (on GP13) is on by default 2. On ...
A:
Q: Modification of the Tractor project. Make a copy of your testTractor Package name it testLoader and ...
A:
Q: Write a PHP code to get the forbidden energy gap for an atom after taking the minimum band of conduc...
A: Required:- Write a PHP code to get the forbidden energy gap for an atom after taking the minimum ban...
Q: Counting Operations to Produce Polynomials In the following section, I will present you with multipl...
A: In the following section, I will present you with multiple different bodies of code, and it is your ...
Q: Detail the components of the spheres of security paradigm. The document must have a sufficient quant...
A: Introduction: Information security is primarily concerned with preventing unauthorized access to dat...
Q: Complete this sentence: Spanning tree protocol… a. … reduces a partial mesh switched network in a l...
A: Spanning tree protocol : Spanning tree protocol is a protocol defined in computer networks for the ...
Q: 4. input: example: 12345678..n output: even: 24681012.n odd: 1357911.n 5. input: example: western mi...
A: public class Program{ public static void Main() { int number, i, k, count = 1; ...
Q: Create a link element that loads the myprint.css style sheet file but only for printed output.
A: Create a link element that loads the myprint.css style sheet file but only for printed output.
Q: What are the benefits of saving your browser history, and how long can you retain it?
A: Introduction: Web browsing history is a catalog of web pages visited by a user, including metadata s...
Q: Small monster scientists do a great deal of work to analyze small monster migratory and feeding patt...
A: # function to draw the 10X8 griddef drawGrid(horiz_mult, vert_mult, constant):# importing the turtle...
Q: Statement is true/false with explanation. 1. When we send any signal over wireless channel for long ...
A: According to the information given:- We have to identify the mentioned statement are true or false.
Q: Describe in fully the advantages of distributed systems.
A: Introduction: A distributed system is a computing environment in which various components are spread...
Q: Identify a previous technology which has impacts in subsequent technologies and inventions. describe...
A: Technology has improved over the last one hundred years starting from the invention radio in 1849. I...
Q: Please program in C++
A: Note: As per our guidelines we are supposed to answer only one question. Kindly repost other questio...
Q: Using C#, create an application that will ask the user to enter password set in the program for only...
A: Password print('Enter username and password to continue with exam')count=0while count < 3: us...
Q: What is the most efficient approach to start a programme in full-screen mode?
A: Introduction: The simplest way to go full screen in an application or game is to use the Alt + Enter...
Q: I need to write a Java program to the apply periodic payments and interest on a loan in dollars and ...
A: The answer is given below:-
Q: (а) List FOUR (4) phases of SDLC. The final implementation activity is to change from the old system...
A: a) Four Phases of SDLC model are Development - In this, first we gather the information and start ...
Q: http status code when request is succesfull
A: HTTP response code is a three digit status code which is used for the communication between the Serv...
Q: create a complete program that will accepts string of characters or sentence and print each word in ...
A: Since no programming language is mentioned, I am using python. Algorithm: Start Read a string Split...
Q: Imagine you’re planning to estimate the price of the average book at your college bookstore. The boo...
A: Solution is given below:-
Q: What is the effect of ROLLBACK if you give it immediately after a COMMIT?
A: Effect of ROLLBACK after COMMIT
Q: Bell State University Scenario Draw a detailed ERD with primary keys, foreign keys, and all provide...
A: An entity relationship model describes the structure of a database with the help of a diagram which ...
Q: Write a python code to build regression models using the following learning algorithm
A: import matplotlib matplotlib.use('GTKAgg') import matplotlib.pyplot as plt import numpy as np f...
Q: Name 3 different types of DNS records and describe their purpose
A: Solution 1)CNAME "CNAME" dns record type records and make it possible for 1 domain name to point at ...
Step by step
Solved in 2 steps with 1 images
- 5. Write a Python function that inputs an array of integers and returns the maximum value in this array. Do not use the max method on array class. 6. Write a Python program that inputs a sentence string by the user and counts the number of words in the sentenceJAVAWrite a program that searches person's name and display all matched name. For example, if a user inputs the letter "Davis", the program searches all name which includes "Davis" in an array. Then, display all matched names on the screen. You must declare a single dimensional array which has all people’s name. Use methods of string classComplete the following program ArrayMax.java. The function max() should return a new array containing the max value of each corresponding value in two arrays. Below is the code, with the section that needs to be completed. The output should look exactly like what is given below, also
- 2. Rotate Left k cells Use Python Consider an array named source. Write a method/function named rotateLeft( source, k) that rotates all the elements of the source array to the left by 'k' positions. You must execute the method by passing an array and number of cells to be shifted. After calling the method, print the array to show whether the elements have been shifted properly. Example: source=[10,20,30,40,50,60] rotateLeft(source,3) After calling rotateLeft(source,3), printing the array should give the output as: [ 40, 50, 60, 10, 20, 30]an int variable k, an int array currentMembers that has been declared and initialized, an int variable nMembers that contains the number of elements in the array, an int variable memberID that has been initialized, and a bool variable isAMember, Write code that assigns true to isAMember if the value of memberID can be found in currentMembers, and that assigns false to isAMemberotherwise. Use only k, currentMembers, nMembers, and isAMember.Note: Please use WHILE LOOP and print all the contents of the array. Use java language. Days of the Week. Create an array of Strings which are initialized to the 7 daysof the week. Use while-loop and print all the contents of the array.
- initialise a variable named Min and set its value equal to first item of array. start a for loop to iterate through every element of marks array. check if item<Min. if 4 is true: set Min = item, else continue after the loop will finish, Min variable will have lowest marks For total marks for all the students. initialise a variable named Sum and set its value equal to zero. start a for loop to iterate through every element of marks array. for every iteration, do sum = sum+item after the loop will finish, sum variable will have total marks of all students The overall average. initialise a variable named Sum and set its value equal to zero. initialise another variable count =0. start a for loop to iterate through every element of marks array. for every iteration, do sum = sum+item, and increase count by 1. after the loop will finish, sum variable will have total marks of all students and count will have total count of marks. 5. to calculate average, do average = sum/count.Write the followingmethod that tests whether a two-dimensional array has four consecutive numbersof the same value, either horizontally, vertically, or diagonally:public static boolean isConsecutiveFour(int[ ][ ] values) Write a test program that prompts the user to enter the number of rows andcolumnsof a two-dimensional array then the values in the array, and displays trueif the array contains four consecutive numbers with the same value. Otherwise,the program displays false. Here are some examples of the true cases:Write the pseudocode that will populate an array of type string with data.The array is called dogBreeds and the following values must be loaded: Labrador, Poodle, Terrier, Spanniel, Doberman
- Part-A: Consider first ten letters of your name and for each letter encode with an integer number. For example: If “Ahmed Naser” are the first ten letters from your name, then the array of integers will be {0, 7, 12, 4, 3,13,0,18,4,17}. 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 a b c d e f g h i j k l m n o p q r s t u v w x y z Using the created array, demonstrate below sorting algorithms. It is very important that in each demonstration includes all intermediate arrays in obtaining the final sorted output. Bubble Sort Selection Sort Insertion Sort Shell Sort Merge Sort Quick SortA left rotation operation on an array of size shifts each of the array's elements unit to the left. Given an integer, , rotate the array that many steps left and return the result. Example After rotations, . Function Description Complete the rotateLeft function in the editor below. rotateLeft has the following parameters: int d: the amount to rotate by int arr[n]: the array to rotate Returns int[n]: the rotated array Input Format The first line contains two space-separated integers that denote , the number of integers, and , the number of left rotations to perform.The second line contains space-separated integers that describe . Constraints Sample Input 5 4 1 2 3 4 5 Sample Output 5 1 2 3 4 Explanation To perform left rotations, the array undergoes the following sequence of changes:Problem2: 2D Arrays Define a 2D array using Java code that takes from a teacher the total number of rows and the total number of columns. Then let the teacher fill the array by students IDs and courses marks for each student. And print the following: 1- Print the array. 2- Print the marks that are less than 50 (mark < 50)