Manager 40000 Use Switch-Case to print Designation in the output and to find the value of DA for a particular employee. O/P Expected: 1. Assuming that your class name is Project1, and you execute your code as java Project1 1003, it should display the following output : Emp No. Emp Name Department Designation Salary 1003 Rahul Acct Clerk 29000 2. java Project1 123
Q: Give a brief description of ReadChar.
A: Introduction : The Reader Class's read (char []) function in Java reads the provided characters into...
Q: Guess a letter: w wallaby You win! # The program selects the word platypus Guess a letter: b _______...
A: The given python code is examined and the respective needed changes are done on the given code and t...
Q: 1. St. Stephen's High School 2. The best "things" in life are free! 3. The best things in life are \...
A: The program illustrates a printing statement but with quotations and backslashes to be included with...
Q: P and Q are two processes that share a set of variables that is common. The variable includes: seq, ...
A: Here either of the process can execute first. Also a process can be preempted by another process. T...
Q: What is an abstract class?
A: According to the information given:- We have to define an abstract class
Q: did the isp's that refuse to accept email from blacklisted isps do anything wrong?
A: ISP is an abbreviation for Internet Service Provider. ISP deals with sending and receiving emails by...
Q: stack of integer elements is implemented as an array. The index of the top element is kept in positi...
A: Question A stack of integer elements is implemented as an array. The index of the topelement is k...
Q: Which of the following functions are NOT required in an ERC20-compliant token? Transfer Name Approv...
A: Answer:-Option (2) is correct.
Q: Where are the microcontrollers present?( Broad answer).
A: Microcontrollers are used in automatically controlled products and devices, such as automobile engin...
Q: Discuss the future of research in data science and R
A: Future of research in Data science Data science consists of different operations of data which is ...
Q: Couvert the follocwing arithmetic expressions notation to reverse poLish înfix notation. A BCD E+ B....
A: Reverse Polish notation (RPN) is just an expression representation approach wherein the operation sy...
Q: Is there a certain amount of memory reserved for each declaration statement?
A: Introduction: A data type is used in a declaration statement to reserve memory. The syntax of a decl...
Q: What is the length of the array: int[] intArray = { 1, 2, 3, 5, 6, 7 }; Select one: O a. None of the...
A: length of the array is b. 6
Q: e PROTO directive to name it.
A: given - MyProc is a procedure in an external link library. You can use the PROTO directive to name ...
Q: Choose the correct alternatives from the followings:
A: Answer
Q: pick any 10 unsorted random numbers from the range 50-100.Apply min heapify to build heap tree struc...
A: Explanation: Include the necessary header files. Create three functions, one for creating heap, ano...
Q: Write a multithreaded program that calculates various statistical values for a list of numbers. This...
A: The answer is given below:-
Q: A(n) ________________array is a kind of array that utilises two indices
A: Answer: An ................. array is a kind of array that utilises two indices.
Q: Question 7: Consider the statement form (P ! Q) ! R Now, find a restricted statement form logically ...
A: In Boolean commonplace sense, a method is in conjunctive regular form (CNF) ordinary shape if it's f...
Q: Item 14: An IPV4 address is often written in decimal. Each octet cal O and 255. What is incorrect ab...
A: Find the answer below of above query. I hope this will meet your requirements.
Q: ppose that Router A and Router B are connected via a 0.05 Mbps link (note, 1 Mbps = 106 bps) and th...
A:
Q: What distinguishes multicore architecture from other architectures?
A: Intro What distinguishes multicore architecture from other architectures?
Q: If you wanted to know the position of the letter v (i.e. return 2) in the String str containing the ...
A: A String is a pre defined class in Java which has various methods in it to perform the operations on...
Q: Given an array of shape (4, 1, 3, 2) ,which of the following array-shapes are broadcast-compatible?
A: The term "broadcasting" refers to how Numpy handles arrays of differing dimensions during arithmetic...
Q: t question Time to preview question: 00:09:39 B, BR, and J are inherent within the MIPS instruction ...
A: Lets see the solution.
Q: What will be the impact of the internet of things (IoT) on our everyday lives? Justify your position...
A: According to the information given:- We have to define the internet of things on our everyday lives ...
Q: P and Q are two processes that share a set of variables that is common. The variable includes: seq, ...
A: The answer is given below:-
Q: (SDLC)?
A: Introduction: SDLC is an abbreviation for Software Development Life Cycle. In the software business...
Q: Question:: Regardless of how user level threads are implemented, if a programme has two or more user...
A: Ans Before giving ans First of all we need to consider about below points. What exactly is a thread...
Q: multitasking .a all of these .b running several programs .c simultaneously
A: given - feature of windows include
Q: Disks and all processes share a common memory through a bus, which makes it easier for all of them t...
A: All the processes on a computer share a single memory, called the memory bus. This means that when a...
Q: Rearrange the following lines of code to produce a non-recursive version of this method. Not all lin...
A: The given problem is related to Java where the given recursive function is to be converted to a non-...
Q: 1- write the removeLast function which removes the last digit from a given number, if the number In...
A: PROGRAM EXPLANATION(C++): Include the header file. Define the remove last function, this function w...
Q: Convert your last 5 digits of (1919300) number and hexadecimal number.
A: Given, Number = 1919300. Last 5 digits of 1919300 = 19300. Hexadecimal number of 19300 =?
Q: Name at least 3 reasons why constraints should always be enforced by the DBMS instead of the applica...
A: Introduction: Constraints: These are the rules/restrictions that are used in DBMS to ensure that t...
Q: 2. Write HTML code to create a WebPages that contains an Image at its center. 3. Create a web page ...
A: Note: The image and hyperlinks used for the answer are arbitrary just to illustrate the output. Kind...
Q: An.dll file called kernel32.dll is what kind of file?
A: Introduction: An.dll file called kernel32.dll is what kind of file
Q: Write a JAVA PROGRAM to create a user defined exception class. In this, a constructor of InvalidGrad...
A: Find the required code in Java given as below and output:
Q: Data can be accessed from a remote node in a shared-nothing system by calling a remote procedure, or...
A: ANSWER : As is the case with the related direct memory access (DMA), one can use remote direct memor...
Q: uestion 2: Consider the following premises: 1. A - (B - A) is a Theorem of Propositional Calculus/Lo...
A: The purpose of propositional logic: TRUTH values (0 and 1) indicate that a thesis can take one of tw...
Q: Translate the following ER diagram into the appropriate relational schema(s)
A: ER diagram stands for Entity relationship diagram and every ER diagram contains three components, th...
Q: Write the updating rule at iteration k+1 for momentum gradient descent learning with a momentum valu...
A: Write the updating rule . Explain how this method improves convergence properties of gradient descen...
Q: Show that AES decryption is the inverse of AES encryption.
A: Introduction: The Advanced Encryption Standard (AES) is a symmetric block cipher that the United Sta...
Q: This question concerns the DES IP box. Please enter all answers as strings of 0's and 1's. Consider ...
A: The DES after initial permutation will be (calculated by positioning of bits) is 1000000000001000000...
Q: When did the first flash drive appear?
A: Introduction: Flash Drive: An external hard drive, often known as a flash drive, is a portable dev...
Q: write a c++ program that output the letter "Z" 360 degrees clockwise
A: Step 1 Java Code Java Code to print Z and rotate it by 360 degree clockwise. import java.util.Scanne...
Q: A processor's primary structural components should be mentioned and briefly characterised.
A: Introduction: A processor, often known as a processing unit, is a digital circuit that conducts oper...
Q: Write to and read from the memory device. Write 10 bytes of the information to the memory starting a...
A: a. #include<stdio.h> (A):- int main(void) { int *a=(int*) 0x00012300; int b,c; b=20; *a=b;// s...
Q: In euclidean metric distance in measured in the numbers of edges so r
A: The Squared error unit: The computed value from each cell toward the adjacent source is stored in th...
Q: Explain how you would choose which of TPCC, TPC-H, or TPC-R best fits the application.
A: Performance Council for Transaction Processing: Using the Transaction Processing Performance Council...
Step by step
Solved in 2 steps with 1 images
- Java - Functions with 1D Arrays Create a program that asks the user for the size of an integer array and the elements of the array. Then, create a function called maxArray() with the following details: Parameters: An integer array The size of the integer array Return type - int Return value - the maximum value of the integer array Call the function you created in the main and pass the integer array and its size to it. Make sure to store the return value in a variable so you could print it afterwards. Input 1. First line contains the size of the array 2. Succeeding lines are the elements of an array 3. First line contains the size of the array 4. Succeeding lines are the elements of an array 5. First line contains the size of the array 6. Succeeding lines are the elements of an array 7. First line contains the size of the array 8. Succeeding lines are the elements of an array Output Enter size of array: 5 Enter element 1: 1 Enter element 2: 2 Enter…Using C# in Microsoft Visual Studio Create an application that simulates a game of tic-tac-toe. The application should use a two-dimensional int array to simulate the game board in memory. When the user clicks the New Game button, the application should step through the array, storing a random number in the range of 0 through 1 in each element.The number 0 represents the letter O, and the number 1 represents the letterX. The form should then be updated to display the game board. The application should display a message indicating whether player X won, player Y won, or the game was a tie.Functions with 2D Arrays in Java Write a function named displayElements that takes a two-dimensional array, the size of its rows and columns, then prints every element of a two-dimensional array. Separate every row by a new line and every column by a space. In the main function, call the displayElements function and pass in the required parameters. Output 1 2 3 4 5 6 7 8 9
- please help me with the pseudocode of the program for the project. Need a class which will contain: Student Name Student Id Student Grades (an array of 3 grades) A constructor that clears the student data (use -1 for unset grades) Get functions for items a, b, and c, average, and letter grade Set functions for items a, n, and c Note that the get and set functions for Student grades need an argument for the grade index. Need another class which will contain: An Array of Students (1 above) A count of number of students in use You need to create a menu interface that allows you to: Add new students Enter test grades Display all the students with their names, ids, test grades, average, and letter grade Exit the program Add comments and use proper indentation. Nice Features: I would like that system to accept a student with no grades, then later add one or more grades, and when all grades are entered, calculate the final average or grade. I would like the system to display the…Lab9C: 2D or not 2D For this exercise you will also be writing a program that will be building upon Lab9A. So please make new class file, copy, and rename the code you have already written for Lab9A. Please also rememb to rename the file and (and in the case of Java and C# students) class name to Lab9C. For this exercise, please take the array that was filled up with values and flatten it i.e., convert the 2-0 array to a 1-D array that contains the same values. Please do not just print the 2-D array to look li a 1-D array Hint: You will have to take the 2-D array's total amount of cells and make a 1-D array of the same siz Please refer to the sample output below for visualization and match its style. As always: Remember, the class name should be Lab9C. The user input is indicated in bold. Sample Output #1: Please enter the number of rows: 4 Please enter the number of columns: 4 I have 4 rows and 4 columns. I need to fill-up 16 spaces. The 4x4 array: 1|2|3|4| 5|6|7|8| 9|10|11|12|…Tic Tac Toe SimulatorCreate a GUI application that simulates a game of tic tac toe. Figure 13-35 shows an example of the application’s window. The window shown in the figure uses nine large JLabelcomponents to display the Xs and Os.One approach in designing this application is to use a two-dimensional int array to simulatethe game board in memory. When the user clicks the New Game button, the applicationshould step through the array, storing a random number in the range of 0 through 1 in eachelement. The number 0 represents the letter O, and the number 1 represents the letter X. TheJLabel components should then be updated to display the game board. The application shoulddisplay a message indicating whether player X won, player Y won, or the game was a tie.
- Need help coding in Java Write an application that stores at least five different college courses (such as CIS101), the time it first meets in the week (such as Mon 9 am), and the instructor (such as Johnson) in a two-dimensional array. Allow the user to enter a course name and display the corresponding time and instructor. If the course exists twice, display details for both sessions. If the course does not exist, display Invalid Entry: No Such course. Use the following values: Course Time Instructor CIS101 Mon 9 am Farrell CIS210 Mon 11 am Patel MKT100 Tues 8:30 am Wong ACC150 Tues 6 pm Deitrich CIS101 Fri 1 pm Lennonjavascript Define a function, myIncludes, that accepts two parameters: an array and a searchValue. myIncludes should return true if the searchValue is an element in the array. Otherwise, myIncludes should return false. example myIncludes([10, 20, 30], 20); // => true myIncludes(['apples', 'bananas', 'citrus'], 'pears'); // => falseProgram 3 SRC voting application You must write a small application in JAVA that stores SRC candidate names and the votes they received. Your program must: 1. Create an array of SRC candidate names. Populate the array with ten names. 2. Create an array of votes. Populate the array with the number of votes for every candidate. The two arrays work in parallel. 3. Print the name of every candidate with his/her number of votes. 4. Print the total number of votes casted. 5. Add votes for a specific candidate. a. Read the name of the candidate b. Add one vote for the specific candidate C. Print the name of the candidate and his/her number of votes
- Language: JAVA Script write a function 'keyValueDuplicates (obj) that takes an object as an argument and returns an array containing all keys that are also values in that object. Examples: obj1 = { orange: "juice", apple: "sauce", sauce: "pan" }; console.log(keyValueDuplicates (obj1)); // ["sauce"] obj2 = { big: "foot", foot: "ball", ball: "boy", boy: "scout"};console.log(keyValueDuplicates(obj2)); // ["foot", "ball", "boy"] obj3 = { pizza: "pie", apple: "pie" pumpkin: "pie"); console.log(keyValueDuplicates (obj3)); // [] *******************************************************************/function keyValueDuplicates (obj) { | // Your code here } /*****DO NOT MODIFY ANYTHING UNDER THIS LINE*********/ try { | module.exports = keyValueDuplicates; } catch (e) { | module.exports = null;}IN C# Please help me create a multidimensional array to display the following: Multi-dimensional Array InfoBattle Round Damage You Took Damage You Caused1 3 22 3 13 4695 0IT is a project Create a program to enter grades and calculate averages and letter grades. Need a class which will contain: Student Name Student Id Student Grades (an array of 3 grades) A constructor that clears the student data (use -1 for unset grades) Get functions for items a, b, and c, average, and letter grade Set functions for items a, n, and c Note that the get and set functions for Student grades need an argument for the grade index. Need another class which will contain: An Array of Students (1 above) A count of the number of students in the use You need to create a menu interface that allows you to: Add new students Enter test grades Display all the students with their names, ids, test grades, average, and letter grade Exit the program Add comments and use proper indentation. Nice Features: I would like that system to accept a student with no grades, then later add one or more grades, and when all grades are entered, calculate the final average or grade. I would…