Write a java program that: • Declares two corresponding arrays with size 5, one for employee's name and the other for total salary. • Read employee information: name and working hours. Store the name in name array and calculate the salary as below and store it in salary array. Salary= working hours* 5. • Print on screen the name of employee with minimum salary.
Q: Question: Suppose an RSA cryptosystem has public key (55,27). Which of the following is the correspo...
A: Find the answer with calculation given as below :
Q: What is the definition of multiprogramming?
A: According to the question multi programming always done only when we use so many application on the ...
Q: Consider a server (one core) where 30 computational jobs need to be scheduled for processing. Let Ti...
A: Given :- Consider a server (one core) where 30 computational jobs need to be scheduled for processin...
Q: een the array implementation and the linked list implementation of queues. Describe the advantages ...
A: Discuss the differences between the array implementation and the linked list implementation of queue...
Q: x²-y³ (x-y)² a. w = 2 b. z= - y²(x+y)²
A: Given: We have to write a matlab code for the given value of w and z where x=3 and y=4.
Q: What are some of the commercial uses for Google Maps' "street view"?
A: Introduction: As a component of Google Maps and Earth, the Street View technology offers interactive...
Q: Need Prims and Kruskals code with c
A: Terms Used In The Question: Prims Algorithm: Prim's algorithm (also known as Jarnk's algorithm) is a...
Q: What is a proxy server and how does it work?
A: Introduction: A proxy server connects your computer to the rest of the internet. When you surf the i...
Q: Give a example for swift operator associativity
A: The code is
Q: Show your answers with at least 10 grades entered to validate your code works. Below is an example o...
A: def Average(score): return sum(score) / len(score) Image of code for reference:
Q: What is the significance of the order in which the parameters are provided to a function when it tak...
A: Parameters: The information is passed to a function in the form of parameters. Any number of paramet...
Q: In what ways may we as programmers be defensive, and what are some examples of defensive programming...
A: Defensive programming:- Defensive programming is a kind of "defensive design" that aims to guarantee...
Q: What is the correct term for the situation when the compiler cannot make a decision about the specif...
A: Answer the above questions are as follows:
Q: What's the difference between a circuit and a gate
A: Given: We have to discuss What's the difference between a circuit and a gate.
Q: Write a jagged array program through following logic 1. Using in dex number 2. Intialize withou...
A: Since no programming language is mentioned, I am using c#. Algorithm: Start Declare a Jagged array ...
Q: Write a program using for loop that generates a multiplication table for any integer (given by the u...
A: Given :- Write a program using for loop that generates a multiplication table for any integer (give...
Q: Which of the following is used for time complexity analysis of algorithms? O a. None of the other an...
A: let us see the answer:-
Q: Discuss the Interface LED using General Purpose Input Output (GPIO) port. Investigate in further de...
A: We need to answer: Discuss the Interface LED using General Purpose Input Output (GPIO) port. Investi...
Q: which of the following words represent * :palindromes word NOSPACEECAPSON abab NOMELON 123123
A: According to the information given:- We have to choose the correct option.to satisfy the statement....
Q: What exactly does it mean to be digitally literate, and how can you get there?
A: Intro It is very important to be digitally literate in today's era.
Q: What are the difficulties that firms face while attempting to migrate to a cloud-based infrastructur...
A: Introduction What are the difficulties that firms face while attempting to migrate to a cloud-base...
Q: What exactly is secondary storage, and how does it function?
A: Introduction: Device for Secondary Storage. A secondary storage device, also known as external memor...
Q: Provide an integer program that has an exponential number of branches. You must prove that your exam...
A: А simрle exаmрle: 3-соlоring. Stаrt with а reсursive generаte-аnd-test 3-соlоring аlgоrith...
Q: What is the WACC (Worldwide Average Cost of Ownership) for Microsoft? What is Duke Energy's yearly w...
A: Introduction: When Duke Energy (NYSE: DUK) sold an 11.05 percent stake in its Indiana subsidiary, Du...
Q: In the following instruction sequence, select the values of the Carry, Zero and Sign flags where ind...
A: (a) CF=0, ZF=0, SF=0(b) CF=1, ZF=0, SF=1
Q: n an arg
A: ArgumentWhen a function is called, the values stated within the function are referred to as argument...
Q: An ARP query is delivered inside a broadcast frame for a reason. Why is an ARP response transmitted ...
A: Introduction: ARP sends a request packet to all of the computers on the LAN, inquiring as to whether...
Q: Create a C++ program that will input name, no of units enrolled, fee per unit and mode of payment us...
A: The program is written in C++. Check the program screenshot for the correct indentation. Please chec...
Q: a)Define Wifi, Winax and ATM. b)Diff btn Winax and Wifi. c)Explain where wifi and Wimax are commonly...
A: Wi-Fi:-Wi-Fi is the wireless innovation used to interface computers, tablets, cell phones and differ...
Q: The design commonly used in one residential community is of majestic doors and windows. In this comm...
A: It is defined as the rate of change of a quantity y with respect to another quantity x. A derivative...
Q: ): Implement all the data fields represented in the UML diagram of the class GradesReport as well as...
A: The static variable numberOfStudents can be incremented whenever an instance is created and we can d...
Q: What are the advantages of using cloud computing services? What are the risks and issues associated ...
A: Intro With cloud computing, you may have computer resources like servers and storage and databases ...
Q: In system development, a complete and clear software requirements specification might not always be ...
A: User will be having the option to add new items. It can be done by name, expiration date, quantity.
Q: What are the two forms of file access that exist in the world? What exactly is the difference betwee...
A: There аre three wаys tо ассess а file intо а соmрuter system: Sequentiаl-Ассess, Direсt...
Q: Stack: push(x) adds x to top of stack pop () removes top element of stack and returns it size() retu...
A: Here, 2nd, 3rd and 4th will be sufficient for efficient implementation of Stack. Explanation: Using ...
Q: Computer science What are the advantages of utilising containers to replace virtual machines?
A: Introduction: Using a hypervisor, we can run many operating systems on a single computer via virtual...
Q: Make a conversion python program wherein it uses the measurements of length, or weight.
A: print("Input your height: ")h_ft = int(input("Feet: "))h_inch = int(input("Inches: ")) h_inch += h_f...
Q: hat does it mean to define an algorithm?
A: Introduction : Algorithm Components As we covered before in an introduction to algorithms, it is com...
Q: What are the two forms of file access that exist in the world? What exactly is the difference betwee...
A: The question is what are the two forms of file access that exist in the world and what exactly is th...
Q: . Fragments, Creating Fragments with java Code explain detailed
A: Overview:A fragment is a reusable class executing a part of a movement. A Fragment ordinarily charac...
Q: Computer science What are some of the differences between project management and software project m...
A: Introduction: What are some of the differences between project management and software project manag...
Q: ow to convert 500 KB to MB?
A: According to the Question below the Solution:
Q: (b) In a crypto-arithmetic puzzle, a mathematical equation is written using letters. Each letter can...
A: Python Program: From itertools import combinations, permutations x = input("Enter the value of x: ")...
Q: There are significant differences between twisted pair and fiber-optic cable (at least three)
A: Introduction There are significant differences between twisted pair and fiber-optic cable (at le...
Q: For the problems given below, determine whether it is more efficient to use a divide and conquer str...
A: memFib(n) { if (mem[n] is undefined) if (n < 2) result = n else result = memF...
Q: Different types of operating systems are distinguished by providing numerous functionalities of an o...
A: An Operating System plays out every one of the fundamental assignments like overseeing records, cycl...
Q: Assign numMatches with the number of elements in userValues that equal matchValue. userValues has NU...
A: for loop will take three statements separated by semicolon where first statement takes initializatio...
Q: Can you please explain with an easy program how flags are affected by arithmetic and logical group o...
A: The 8085 is a second-generation 8-bit microprocessor that serves as the foundation for learning and ...
Q: EXERCISE 18 Generate a random integer between 1 and 10. Ask user to guess the number. If user's gues...
A: MATLAB Code:- %random number generation from 1 to 10 inclusive number = randi([1 10],1); %asking n...
Step by step
Solved in 2 steps with 1 images
- in Java please This program will store roster and rating information for a soccer team. Coaches rate players during tryouts to ensure a balanced team. (1) Prompt the user to input five pairs of numbers: A player's jersey number (0 - 99, but this is NOT enforced by the program nor tested) and the player's rating (1 - 9, not enforced like jersey numbers). Store the jersey numbers in one int array and the ratings in another int array. Output these arrays (i.e., output the roster) as shown below after inputting the data. Ex Enter player 1's jersey number: 84 Enter player 1's rating: 7 Enter player 2's jersey number: 23 Enter player 2's rating: 4 Enter player 3's jersey number: 4 Enter player 3's rating: 5 Enter player 4's jersey number: 30 Enter player 4's rating: 2 Enter player 5's jersey number: 66 Enter player 5's rating: 9 ROSTER Player 1 -- Jersey number: 84, Rating: 7 Player 2 -- Jersey number: 23, Rating: 4 . . . (2) Implement a menu of options for a user to modify the roster. Each…Write a Java program to display a three_month delivery report for three different years. The following rows and columns represents the deliveries made for each year Jan Feb Mar DELIVERIES 2018 128 135 139 DELIVERIES 2019 155 129 175 DELIVERIES 2020 129 130 185 Use a Two-Dimensional array, produce the deliveries report, including the deliveries made statistics. The deliveries made statistic must display the total, maximum and minimum deliveries made in the two-dimensional array.in java create a two-dimensional array of type double to contain the three different SD Marks (JD521, PRG521, and IP521) for six different students. A single array of type String must be used to store the student names (Maxwell, Carl, Gerhard, Paul, James, and Cena). Allow a user to enter in a number, ranging from 1 to 6, which will represent the student position in the table MCSD max and present the marks for each respecting module. The program can only stop when the user enter a number greater than 6. Printout the student name including the JD521, PRG521, and IP521 max, the total of marks and the average of all marks. Use a condition statement to decide that the student has passed or not (Pass rate is 70).
- In java Write a program that uses a 2-D array to store the highest and lowest temperatures for each month of the year. The program should output the average high, average low, and highest and lowest temperatures of the year. Your program must consist of the following methods with their appropriate parameters:a.) getData: This method reads and stores the data in the 2-D array.b.) averageHigh: This method calculates and returns the average high temperature of the year.c.) averageLow: This method calculates and returns the average low temperature of the year.d.) indexHighTemp: This method returns the index of the highest temperature in the array.e.) indexLowTemp: This method returns the index of the lowest temperature in the array.Use the following input:High temp for each month: 30 40 45 60 70 90 89 95 79 90 70 40Low temp for each month: 10 -10 20 30 50 75 85 79 50 80 30 20The Sports Department of an education institution collects students' names participating in various teams like cricket, football, hockey. A student is allowed to participate in only ONE team. Write a Java program that prompts the user to input names for the three teams and checks NO identical names are found in the arrays. i.e., while entering name for the second team, it should not appear in the first team and while entering name for the third team, it should not appear in first and second team.Write a Java program to display three monthly sales of different vehicle types. The rows and columns represent the monthly sales of each vehicle type. JAN FEB MAR SUV 25 15 35 COUPE 25 55 35 SEDAN 11 20 45 VAN 17 27 25 Using a Two-Dimensional array, produce the vehicle type sales report and the total sales made foreach vehicle type. If the total sales made per month are greater than or equal to 100, gold statusis awarded. If the monthly sales are less than 100, silver status is awarded. (in java form with instructions)
- In this lab, you use what you have learned about searching an array to find an exact match to complete a partially prewritten Java program. The program uses an array that contains valid names for 10 cities in Michigan. You ask the user of the program to enter a city name; your program then searches the array for that city name. If it is not found, the program should print a message that informs the user the city name is not found in the list of valid cities in Michigan. The data file provided for this lab includes the input statements and the necessary variable declarations. You need to use a loop to examine all the items in the array and test for a match. You also need to set a flag if there is a match, and then test the flag variable to determine if you should print the "Not a city in Michigan" message. Comments in the code tell you where to write your statements. Study the prewritten code to make sure you understand it. Write a loop statement that examines the names of cities…Best Houses Company sells houses to their customers and needs a program to facilitate the selling process. Write a JAVA program that asks the user to enter house number (int), house size in square meters (double), and house price (double) and store them in three parallel arrays. The number of houses is 10. Then, the program should ask the user to enter the price range of the required house which is the start price and the last price in the range and should do the following: Print all the information of the houses within that range. Print the number of houses in the specified range.JAVA Create an application that contains an enumeration (enum) that represents the days of the week. Display a list of the days, then prompt the user for a day. Display business hours for the chosen day. Create your own business hours stored in an array; however, every day of the week should have different hours. Although companies do not normally have different business hours every day of the week, programming your code with this difference will help in finding and fixing coding errors.
- Code an exam in Java that repeatedly asks the user to enter the capital for a province in Canada. Then, the program should report whether the answer is correct. Eventually, you must display how many answers the user guessed correctly.The requirements are as follows: - Use a 2D array to hold the provinces and their capitals (as implied by the table below)- Answers are not case-sensitive (e.g. Toronto and tOrOnto are considered the same)Implement this program to understand use of Arrays in real world examples. A small airline has just purchased a computer for its new automated reservations system. You have been asked to develop the new system. You are to write an application to assign seats on each flight of the airline’s only plane (capacity: 10 seats). Your application should display the following alternatives: Please type 1 for First Class and Please type 2 for Economy. If the user types 1, your application should assign a seat in the first-class section (seats 1–5). If the user types 2, your application should assign a seat in the economy section (seats 6–10). Your application should then display a boarding pass indicating the person’s seat number and whether it is in the first-class or economy section of the plane. Use a one-dimensional array of primitive type boolean to represent the seating chart of the plane. Initialize all the elements of the array to false to indicate that all the…Part 1: In Java Write a program that uses a 2-D array to store the highest and lowest temperatures for each month of the year. The program should output the average high, average low, and highest and lowest temperatures of the year. Your program must consist of the following methods with their appropriate parameters: a.) getData: This method reads and stores the data in the 2-D array. b.) averageHigh: This method calculates and returns the average high temperature of the year. c.) averageLow: This method calculates and returns the average low temperature of the year. d.) indexHighTemp: This method returns the index of the highest temperature in the array. e.) indexLowTemp: This method returns the index of the lowest temperature in the array. Use the following input: High temp for each month: 30 40 45 60 70 90 89 95 79 90 70 40 Low temp for each month: 10 -10 20 30 50 75 85 79 50 80 30 20