Suppose the university has decided to announce bonus 1 PMS point to employees those have PMS points more than 7. The appraisal will be based on PMS points. We have list of employees with UID and PMS point. Display the list of employees those would be benefitted with bonus. The bonus should be added to the employees who have UID and PMS through the concept of array. Input The input should contain list of employees with UID and PMS point. Output For each test case, display the UID and PMS point after bonus is being added b) Find correct time complexity of above code.
Q: write a C++ program to input and store the data of 500 candidates who have applied at BIIT to get…
A: The required C++ program code: #include <iostream>#include <iomanip>#define MAX 500…
Q: Write a c++ program! In this assignment, you need to complete tasks on 2D array of randomly sales…
A: Following is the c++ program:Main function is used to execute a nested loop that inserts random…
Q: a. The lockdown that has been imposed in the country have caused many businesses to be at a loss.…
A: Below i have answered:
Q: Program will generate the following output.outputs. A)Display distribution of parliaments of each…
A: # include <stdio.h> # include <stdlib.h> # include <string.h> # include…
Q: Consider the following game: Each of two players rolls a dice and whoever rolls the highest number…
A: % Рlаyer diсe rоllрlаyer1=[3, 2, 5, 6, 2, 5, 1, 6, 4, 5];рlаyer2=[4, 2, 4, 3, 6, 5,…
Q: Abigail and Benson are playing Rock, Paper, Scissors. Each game is represented by an array of length…
A: def who_wins(game) # method returns 0 if tie # negative number if player0 wins # positive…
Q: Shipping a package A parcel services company can ship a parcel only when the parcel meets the…
A: NOTE: Since programming language is not mentioned. Therefore answering in Python language. First,…
Q: A unimodal array is an array that has a sequence of monotonically increasing integers followed by a…
A: Let see the solution below.
Q: A unimodal array is an array that has a sequence of monotonically increasing integers followed by a…
A: (A) In these question , we are given with increasing and then decreasing number is an array , we…
Q: Write a program that will use a two-dimensional arrays named : Record[50][4] . The 1st column of the…
A: Bubble sort is a method and a way in which we compare adjacent items of an array. swapping is used…
Q: If a two dimensional array is used as a formal parameter, then A. both the subscripts may be left…
A: The two-dimensional array can be defined as an array of arrays. The two-dimensional array is…
Q: Write a Java program for the given problem using Array. UTAS-IBRI wants to calculate the Final mark…
A: Algorithm: Start Read number of students n Read name,id and marks of n students Iterate through the…
Q: Writing C++ Code for a Hybrid Market Prize System. A New hybrid market is launching in Muscat and…
A: A C++ program is as follows File name: “main.cpp” #include <iostream> #include <string>…
Q: Two different moulds grow at different rates. The mass of the first mould (in grams) is well…
A: Code: m1 = @(t) 20*log(t+2);m2 = @(t) t.^2;%% atend=input('Enter maximum time:…
Q: Part-A: Consider first ten letters of your name and for each letter encode with an integer If "Ahmed…
A: The complete answer is given below .
Q: Abigail and Benson are playing Rock, Paper, Scissors. Each game is represented by an array of length…
A: function calculateScore(games) { let scores = [0, 0] for (i of games) { if (i[0] === i[1]) continue…
Q: Example 11 Combine example 8 and 9 and define staff as an array of 2. Then assign the data of staffl…
A: -> Here Fist we have to create a array of two sEmployee -> Then create sEmployee object as…
Q: Suppose an array A contains 8 elements as follows: 77, 33, X, 11, 88, Y, 6, 15 Where: element X =…
A:
Q: WAP to create array for storing marks of 20 students and find 2. Highest marks 3. Lowest marks 4.…
A: GIVEN: Create a C program with an array for storing marks of 20 students. Then find The highest…
Q: Attached photo is the question. Please help. Thanks. Binary Search Tree code: // // Example of an…
A: The answer is given below:-
Q: Write a deleteAt function for a partially filled array. This function accepts the array an an index…
A: As no programming language is mentioned. So I will be using python for coding.
Q: Write a Java program to display a three-month data usage report for three different yearly…
A: Here I have created a 2D array and then stored the data into it. Next, I have treated over the array…
Q: An array is positive dominant if it contains strictly more unique positive values than unique…
A: Algorithm - Take input from user. Now use the below logic - const positives = new Set(a.filter(n…
Q: he manager of the company has informed his assistant to enter the age of all the workers working in…
A: Q: Code the given problem
Q: C++ solution required Gustavo Gus has to remove one of his drug chemists due to trust issues. So he…
A: #include <iostream> #include <math.h> using namespace std; int countWaysToWin(int n,…
Q: Write a Java program for the given problem using Array. UTAS-IBRI wants to calculate the Final mark…
A: Algorithm: Start Read number of students n Read name,id and marks of n students Iterate through the…
Q: Problem 1: Given an array A[0 ... n-1], where each element of the array represents a vote in the…
A: Take an array to store the IDs. Take 2 variables to iterate the loop. Take a variable to count the…
Q: Let B = B{3, 4] be the following array of dimension 3 × 4, [3 5 2 1 B = 5 5 8 2 |1 5 2 5 Array B has…
A: The quantifiers are symbols used to express logical conditions as described below:- 1. Existential…
Q: Given an array that represents elements of geometric progression in order. One element is missing in…
A: I have given an answer in step 2.
Q: Run the programs. Programming Review 2" and capture the input and output: ) Show all employees in…
A: Step 1: Declare class Employee with fields empName and empsal. Step 2: Define the main() method.…
Q: We want to plan a trip for a movie theater. (On jupyter Notebook In Python) The cost of Uber is…
A: Python used to answer this question
Q: required n C prgramming sir Suppose the university has decided to announce bonus 1 PMS point to…
A: #include<stdio.h> int main(){ int n; printf("Enter the number of employees ");…
Q: Implement the following scenario using C++. Ibri City Polyclinic wishes to maintain their doctor…
A: Program for the given question :- #include <bits/stdc++.h>#define MAXSIZE 200 using namespace…
Q: Given an Array A consisting of N balls. All the balls are either 'Red' or 'Green'. You can pick 4…
A: It is defined as a programming language and a platform. Java is a high level, robust,…
Q: [in C++] HLB HQ Bank has 500 staff which consists of an officer and a non-officer category. Each…
A: #include <iostream>using namespace std;class Scheme{ public: char *Name; char *ICNum;…
Q: Two different moulds grow at different rates. The mass of the first mould (in grams) is well…
A: clearclcm1=@(t)20*sqrt(t);m2=@(t)5*t.^2;%% atend=input('Enter maximum time: ');fprintf('time(hours)…
Q: Writing C++ Code for a Hybrid Market Prize System. A New hybrid market is launching in Muscat and…
A: A C++ program is as follows File name: “main.cpp” #include <iostream> #include <string>…
Q: Explain associative array in PHP with suitable example. Explain strcmp and strcasecmp functions of…
A: 1. Associative arrays are arrays that use named keys that you assign to them. Associative array…
Q: Question No. 3:…
A: Since you have posted a question with multiple sub-parts, according to the company's policy we will…
Q: ave PMS points more than 7. The appraisal will be based on PMS points. We have list of employees…
A: Arrays are used to store multiple values in a single variable, instead of declaring separate…
Q: C++ solution required Gustavo Gus has to remove one of his drug chemists due to trust issues. So he…
A: First line will contain TT, number of testcases. Then the testcases follow. First line of each test…
Q: The manager of the company has informed his assistant to enter the age of all the workers working in…
A: We need to write a program using a 1D array and functions, that takes the input of the age of all…
Q: (4) $$ C:=\left\{(x, y, z) \in \mathbb(R)^(3): 1<x*(2)+y*{2)+z*(2} <9\right\}. $$ Solve Let the…
A: ANSWER: We have R={(x, y):x, y∈Z, x2 + y2≤4}. Let x=0 then, x2+y2≤4⇒y2≤4⇒y=0, ±1, ±2 Let x=±1 then,…
Q: Two different moulds grow at different rates. The mass of the first mould (in grams) is well…
A: clearclcm1=@(t)20*sqrt(t);m2=@(t)5*t.^2;%% atend=input('Enter maximum time: ');fprintf('time(hours)…
Q: Run the programs"Programming Review 2" and capture the input and output: f) Show all employees in…
A: import java.util.Scanner;public class Employee { private String empName; private double…
Q: You have to write a C++ program to input and store the data of 500 candidates who have applied at…
A: The solution to this problem contains structures, arrays, sorting. NOTE:The output is corresponding…
Q: Two different moulds grow at different rates. The mass of the first mould(in grams)is well described…
A: MATLAB is a proprietary multi-paradigm programming language and numeric computing environment…
Q: can i have this in C programming sir! Suppose the university has decided to announce bonus 1 PMS…
A: Here we are using for loop and arrays to get values and calculate these Values. Arrays are declared…
Q: An array is given. Find 3 elements, the sum of which will be the maximum. 9 5 6 9 0 14 1 4 2 6…
A: The sum of 3 numbers will be maximum if you consider the 3 largest numbers in array
Suppose the university has decided to announce bonus 1 PMS point to employees
those have PMS points more than 7. The appraisal will be based on PMS points. We have list
of employees with UID and PMS point. Display the list of employees those would be
benefitted with bonus. The bonus should be added to the employees who have UID and PMS
through the concept of array.
Input
The input should contain list of employees with UID and PMS point.
Output
For each test case, display the UID and PMS point after bonus is being added
b) Find correct time complexity of above code.
Step by step
Solved in 3 steps
- Given two d-dimensional MBRs, E1 = (x1min, x1max; x2min, x2max; …; xdmin, xdmax) and E2 = (y1min, y1max; y2min, y2max; …; ydmin, ydmax) (note: both E1 and E2 are represented by an array in the code), please give the pseudo code to check whether or not two MBRs are intersecting with each other. If yes, please return true; otherwise, return false.66. Code Write a Java program for the given problem using Array. UTAS-IBRI wants to calculate the Final mark of Foundation Students based on the course mark obtained in IT for Foundation course. The program should read the number of Students. The program will accept the Student ID. Student name and Course mark of all the students. If Course mark is greater than 79 and less than or equal to 100, then Extra mark given is 10% of Course mark, else if Course mark is greater than 49 and less than 80, then Extra mark given is 5 % of Course mark, else if Course mark is less than 50, then Extra mark given is 2 % of Course mark. Final mark calculated as Course mark plus Extra mark. Display Student ID, Student name, Course mark, Extra mark and Final mark of all students.?THe file dark chocoate contains the cost per ounce ($), for a sample of 14 dark chocolate bars. 0.68 0.72 0.92 1.14 1.42 0.94 0.77 0.57 1.51 0.57 0.55 0.86 1.41 0.90 A. Place the data into an ordered array B Construct a stem-and-leaf display C Does the ordered array or the stem-and-leaf display provide more information?Discuss. D. Around what value, if any, is the cost of dark chocolate bars concentrated? Explain.
- In a one-dimensional array, one-year average daily temperature information of the city of Karabük is kept. The average daily temperature information is between -25 and 35 degrees. Accordingly, write a function that takes this array as a parameter and finds the number of temperatures between [-25, -10), [-10, 5), [5, 20) and [20, 35] values and prints it to the screen in that order. Sample Output ( Example Output ): [-25, -10) : 13 [-10, 5) : 93 [5, 20) : 117 [20, 35] : 142Question- Need solution in JavaSomething related to IPO offeringmain gist is we had shares - lets say N which we want to divide among biddersBidders are represented in 2d arrays as[bidder_id, no of shares_bid, price, timestamp]Now build a function returns the bidder_id's in sorted array that did not receive any shares. Shares are allocated following rules- if the price is highest among all the bidders. Allocate shares If the price is same among 2 bidders. Allocate share in iterative fashion, first one get share had earlier timestamp.Like 2 bidders with bidder id 1&2, have same price, timestamp 4 and 1, bids for 5 shares each and N=1.So, in this case only bidder id 1 get share, bidder id 2 will not recieve any sharesRepeat all activity from 2.3.4. Provide similar array manipulations using the months of the year. var days = ['Sunday', 'Monday', 'Tuesday']; console.log(days[0]); console.log(days[2]); days[3] = 'Wednesday'; console.log(days.toString()); days[6] = 'Saturday'; console.log(days.toString()); var theDayOff = days.slice(6) console.log(theDayOff.toString()); console.log(days.toString()); console.log(days.toString()); days.splice(4, 2, "Thursday", "Friday"); console.log(days.toString()); console.log(days.toString()); days.push('theExtraDay') console.log(days.toString()); let extras = days.pop(); console.log(days.toString()); console.log(extras); days.sort(); console.log(days.toString());
- Given an array of integers, find the maximum sum of a contiguous subarray. Write a function called maxSubarraySum that takes an array of integers as input and returns the maximum sum of a contiguous subarray. Example: Input: [1, -3, 2, 1, -1] Output: 3 Explanation: The subarray with the maximum sum is [2, 1], and the sum is 3. You need to implement the maxSubarraySum function. You can use any programming language of your choice.Write in C++ Alice is trying to monitor how much time she spends studying per week. She going through her logs, and wants to figure out which week she studied the least, her total time spent studying, and her average time spent studying per week. To help Alice work towards this goal, write three functions: min(), total(), and average(). All three functions take two parameters: an array of doubles and the number of elements in the array. Then, they make the following computations: min() - returns the minimum value in the array sum() - returns the sum of all the values in the array average() - returns the average of all the values in the array You may assume that the array will be non-empty. Function specifications: Function 1: Finding the minimum hours studied Name: min() Parameters (Your function should accept these parameters IN THIS ORDER): arr double: The input array containing Alice's study hours per week arr_size int: The number of elements stored in the array Return Value:…You are given an array A[1 : n] which includes the scores of n players in a game. They areranked in the following way: Rank of a player is an integer r if there are exactly r −1 distinct scores strictlysmaller than the score of this player (irrespective of the number of players). Question: Suppose you are additionally given an array B[1 : m] with the score of m new players. Design andanalyze an algorithm that given both arrays A and B, can find the rank of each player B inside thearray A, i.e., for each B[i], determines what would be the rank of B[i] in the array consisting of allelements of A plus B[i]. Your algorithm should run in O((n + m) ·log n) time.
- Two different moulds grow at different rates. The mass of the first mould(in grams) is well described by the function m1(t) = 20 log(t + 2) where the time tis measured in hours. The second mould grows according to m2(t) = t2(a) Write a MATLAB program using array operations to generate a table (withheadings) of the amount of each mould each hour starting at time t = 0 up toa maximum time entered by the user. Run your program with the maximumtime set to 10.(b) Write a separate MATLAB program using the plot command to graph theamount of the two moulds on the same axes for 0 ≤ t ≤ 10. Make sure youlabel your axes.(c) Use the graphical output from your MATLAB program in part (b) and theginput command to estimate the time when the amounts of the moulds areequal.Write a Java program for the given problem using Array. UTAS-IBRI wants to calculate the Final mark of Foundation Students based on the course mark obtained in IT for Foundation course. The program should read the number of Students. The program will accept the Student ID, Student name and Course mark of all the students. If Course mark is greater than 79 and less than or equal to 100, then Extra mark given is 10% of Course mark, else if Course mark is greater than 49 and less than 80, then Extra mark given is 5 % of Course mark, else if Course mark is less than 50, then Extra mark given is 2 % of Course mark. Final mark is calculated as Course mark plus Extra mark. Display Student ID, Student name, Course mark, Extra mark and Final mark of all students.The manager of the company has informed his assistant to enter the age of all the workers working in production department. Among all he has to find the employee with minimum age employee. Help themanager to find the minimum age employee by storing the all age ofall employeesin 1D array. Use functions to solve this task. USING PYTHON