Kim Gigabit purchase items of various quantities; valid quantities are greater than 0 and less than 100 Read the quantity for each 10 items from the keyboard and store each into an integer array; if Kim enters a quantity of 0, negative, or greater than 100, it should be rejected, and she should be queried for a valid entry After the valid entries are complete, display the unsorted array content, pass the unsorted array to another method for sorting, and display of the sorted array
Q: What sort of variable is necessary to work with an object in code?
A: According to the information given:- We have to define what sort of variable is necessary to work…
Q: What Is a Surrogate Key Definition?
A: Let us see the definition below,
Q: Q15: Write C++ program to read 10 marks, suppose the student pass if all marks greater than or equal…
A: The Answer is
Q: Question # 1: Write a C++ code to display the middle value of Single Linked List (null terminated).…
A: The code in c++ is: #include <iostream>using namespace std;//construction of a nodestruct…
Q: How did a programming language evolve?
A: Programming Language: A programming language used to create computer instructions. It enables the…
Q: What is the output of the following code? #include iostream void myFunction( int &a ); using…
A: First let's understand the code properly to know what it will print . The code is very simple . The…
Q: One of the questions to be considered at the maintenance stage of the Software Development Life…
A: SDLC is for Software Development Life Cycle. It is an organized process that allows for the…
Q: List the many types of legacy systems, as well as the different techniques for their evolution.
A: A legacy system is outdated computing software and hardware that is still in use. The system still…
Q: d the first programming langu
A: which year did the first programming language make its debut
Q: Compilers and assemblers can be built to optimize the rearrangement of assembly language…
A: Pipeline / Potential Hazards: Pipeline is a programming approach in which numerous instructions are…
Q: List and describe 10 international computer science and information technology organizations.
A: Computer Science and Information Technology (IACSIT): Computer Science and Information Technology…
Q: What does the Designer's bounding box reveal about a given object? '
A: Initially, while embarking on a new visual basic project, Visual studio produces and displays a…
Q: Provide your thoughts on "time variant" and "time invariant" data base systems, as well as some…
A: Variation in time A time variation device responds to inputs differently depending on when the…
Q: For instance, if you're starting a media firm and want graphic designers and media producers, you'll…
A: Overview: A backup storage device is used to duplicate data that is currently in use. Data that is…
Q: Could you please describe the metrics that are utilised throughout the software development process,…
A: Start: Software development metrics are measurable indicators of a software product's or project's…
Q: 1) largest Write a function int largest(int a[],int n) that will find the largest int in the n ints…
A: Answer Assembly code to find the largest number in array: LXI H 2050 MOV C,M DCR C INX H CMP M JNC…
Q: If you hold the mouse cursor over a jagged line in the code editor, what will happen to the line?
A: Jagged line in the code editor shows the warning in your code.
Q: Write the Java method averageOfDoubles that is passed an array of double values, and returns the…
A: Here I have defined the function named averageOfDoubles(). Inside the function, I have used a loop…
Q: what are some of the things that ordinary people can and should do to protect themselves from…
A: Some of the things that ordinary people can and should do to protect themselves from network…
Q: Q17: What is the output of the following C++ segment of code: for (1= 0; 1< 8; I++) { if (1% 2 == 0…
A: answer along with explanation is given below
Q: In Visual Studio, how can you change your view to a different form?
A: Here is the task is to change one form to another form. Using two form1 and form2 can change the…
Q: The mouse pointer will stay on a jagged line for a long time if you keep it there for a long time.
A: The action that occurs when the user's mouse pointer is held or maintained above a jagged line in…
Q: During the process of making software, what is the "lifecycle"?
A: Software: A collection of instructions, data, or programmes used to control computers and perform…
Q: IN C PROGRAMMING LANGUAGE AND COMMENT EVERY STEP PLEASE Write a program that reverses the input…
A: Please refer below for your reference: Language used is C: #include <stdio.h>// header file…
Q: Octal numbers have a base of eight and the digits 0-7. Write the scripts octalToDecimal.py and…
A: Program Explanation: 1) The Octal Mathematical notation System appears to have an eight-digit basis,…
Q: CPU Clock rate is 500mhz, program takes 45 million cycle to execute . what is the CPU time? In…
A: 1.
Q: The process that the public uses to log/register complaints begins with the loading of the complaint…
A: Let's see the activity diagram in the next steps
Q: Give an example of the internet of things. What's the difference between the industrial internet of…
A: INTRODUCTION: Here we need to tell an example of IoT and the difference between the industrial…
Q: 38 47 11 45 66 15 61 80 17 60 Y 63 This binary search tree underlies a Set. If we call contains(61),…
A: Binary Search Tree : Binary Search Tree constucts on the basis of 1. Left subtree must be less than…
Q: (V, E), does G contain a path that One-Tenth-Path Problem: Given an undirected graph G = passes…
A: The Subset Sum Problem The Hamiltonian Path Problem The One-Tenth-Path Problem is NP-hard. Given an…
Q: Compilers and assemblers can be built to optimize the rearrangement of assembly language…
A: Answer
Q: We can lock a table to ensure that we don't accidentally overwrite someone else's edits. 1) A single…
A: Database: An organised collection of structured data, or "data," is kept electronically in a…
Q: Create a program using a loop in C++ and ARM Assembly language that executes the following: The…
A: Program in c++: #include <iostream> using namespace std; int main() { int a=-30,b=96;…
Q: Q2: Based on Diffie-Hellman protocol, if the public key is g = 23,p = 797, and c = 512. Find the…
A: Diffie Hellman key exchange is a public key exchange method. In this method, a pair of public and…
Q: Q2: Based on Diffie-Hellman protocol, if the public key is g = 23,p = 449, and c = 141. Find the…
A: a=20
Q: a_list = [[1, 2, 3], [3, 4, 5], [5, 6, 7]] for x in range(3): print(a_list[(2 * x + 1) % 3][(5 *…
A: Solution : Code : a_list = [[1, 2, 3], [3, 4, 5], [5, 6, 7]]for x in range(3): print(a_list[(2 *…
Q: How do you go about building a software programme?
A: How can you build software in the most efficient way? How to get there? Here are 7 steps to…
Q: What is the physical address of this instruction Source operand of MOV BL, [SI + BP - OH1 If vou…
A: The answer is
Q: You are to construct a company performance dashboard for Bob's Bank and Septic Service in Dillsburg.…
A: Dashboard in Business: Dashboards are business intelligence (BI) reporting systems that aggregate…
Q: Are there any major differences between the brains of a tester and an actual developer? What are the…
A: Programming skills and the ability to write code are required of a developer. Typically, development…
Q: Change each number in base (0 1200 four
A: Given question with different numbers with different bases We have to convert it into base 10
Q: Name three virtualization tools. Contrast them
A: To build different systems in different environments, developers need multiple operating systems. It…
Q: Write all the code within the main method in the TestTruck class below. Implement the following…
A: import java.lang.IllegalArgumentException; public class TestTruck { public static void…
Q: What fiter will you use in Excel if you want to execute more than two conditions in a single run?
A: In the Excel spreadsheet, several filters must be used for more than two criteria in a single run.
Q: The following code is a Perl script, and it runs on Kali Linux. What is the result. # Perl…
A: The given script will output the following: HackOrDie!
Q: What sort of variable is needed to interact with an object in code?
A: Here is an explanation about what variables we need.
Q: In software development, what is the term "lifecycle"?
A: answer is
Q: Q2/ choose the right answer
A: We will be answering your missing word by underlined in the statement . As it do not required any…
Q: Part 3: Exercises Given a number in memory location 6100H (x), calculate the result based on the…
A: The algorithm for this will be: The first number is loaded from the memory location 6100 to…
Q: Describe an iterative algorithm that takes as input a list of n distinct integers and finds the last…
A: The problem is based on the basics of loops in programming languages.
Kim Gigabit purchase items of various quantities; valid quantities are greater than 0 and less than 100
Read the quantity for each 10 items from the keyboard and store each into an integer array; if Kim enters a quantity of 0, negative, or greater than 100, it should be rejected, and she should be queried for a valid entry
After the valid entries are complete, display the unsorted array content, pass the unsorted array to another method for sorting, and display of the sorted array
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images
- Kim Gigabit purchase items of various quantities; valid quantities are greater than 0 and less than 100Read the quantity for each 10 items from the keyboard and store each into an integer array; if Kim enters a quantity of 0, negative, or greater than 100, it should be rejected, and she should be queried for a valid entry 1. After the valid entries are complete, display the unsorted array content, pass the unsorted array to another method for sorting, and display of the sorted array; you can use the code below for sorting 2. Modify the code below using the while loop /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package sortascending; public class Sortascending { public static void sortAsc( int[] arrayToSort ) { // Find the integer that should go in each cell j of // the arrayToSort, from cell 0 to the end for…Suppoce we're given numpy arrays of names and scores, where each row in the scores array lists the midterm and final scores for that respective student. For example, Carol has a 75 on the midterm and 99 on the final. names = np. array([ "Alice" "Bob". "Carol","Derek ","Erin"]) Scores = np.array([ [95, 98], [82, 88], [75, 99], [80, 90], 85, 82 ]]) Write function avgMidtermNoC that takes ve parameters names and score arrays, and returns the average score on the midterm, exduding anyone who's name starta with C.Using Kotlin Make up four students - add them into an array. Create a function for the class that checks if a given student name is in an array. Check if student (pick a name from your array) is in the array and print the result. Use the in operator. my code so far fun main() { // create 4 students var student1 = Student("JIm", 47, "3432") var student2 = Student("Bill", 35, "1222") var student3 = Student("Mary", 21, "58F5") var student4 = Student("Graham", 29, "8958") var students=arrayOf(student1, student2, student3, student4) for (student in students) { student.nameExists) } } class Student(var name: String, var age: Int, var classID: String){ fun nameExists() { if("Mary" in name) { println("Name is in the array") } } }
- A football team plays a football game almost every month. It stores the number of goals scoredper month in an array of size 12. The number of goals scored on January is stored in the firstelement of the array (at index 0). The number of goals scored on February is stored in the 2ndelement of the array (at index 1) and so on.a. The team wants to find the month in which they scored the maximum number of goals.Write a function named String Max(int[] A) that takes the array of goals and returnsthe month name (a string value) in which they scored the maximum number of goals.b. The team wants to find the number of games played during the year. Note that if theteam didn’t play a game in a specific month, the value -1 is found. Write a function intNbGames(int[] A) to count the number of games played during the year.c. Write a program in which you create an array of size 12 having all its elementsinitialized to -1. Then ask the user to enter a month number and the number of goalsscored in that…Problem 3: Use a one dimensional array to solve the following problem: Read in 10 numbers, each of which is between 10 and 100. As each number is read, print it only if it’s not a duplicate of a number that has already been read. Provide for the “worst case,” in which all 10 numbers are different. Use the smallest possible array to solve the problem.The code below computes the intersection (the number of entries shared by two arrays). It is assumed that neither array contains any duplicates. It computes the intersection by sorting one array (array b) and then iterating over array a to see if each value is in b (through binary search). What is its duration? nt intersection(int[] a, int[] b) {mergesort(b);}int intersect = 0;for (int x : a) {if (binarySearch(b, x) >= 0) {intersect++;return intersect; }}
- 4. Write a program to find kth smallest element in unsorted array?You are given an unsorted array of numbers and k, you need to find the kth smallest number in the array. Forexample if given array is {1, 2, 3, 9, 4} and k=2 then you need to find the 2nd smallest number in the array,which is 2.Kim Gigabit purchase items of various quantities; valid quantities are greater than 0 and less than 100Read the quantity for each 10 items from the keyboard and store each into an integer array (use loop); if Kim enters a quantity of 0, negative, or greater than 100, it should be rejected, and she should be queried for a valid entry. After the valid entries are complete, display the unsorted array content, pass the unsorted array to another method for sorting (use for loop), and display of the sorted array. Use java2. An interpolation search assumes that the data in an array is sorted and uniformly distributed.Whereas a binary search always looks at the middle item in an array, an interpolation searchlooks where the sought-for item is more likely to occur. For example, if you searched yourtelephone book for Victoria Appleseed, you probably would look near its beginning ratherthan its middle. And if you discovered many Appleseeds, you would look near the lastAppleseed. Instead of looking at the element a[mid] of an array a, as the binary search would,an interpolation search examines a[index], where p = (desiredElement - a[first]) / (a[last] - a[first]) index = first + [(last – first) × p]Implement an interpolation search of an array. For particular arrays, compare the outcomesof an interpolation search and of a binary search. Consider arrays that have uniformlydistributed entries and arrays that do not. Modify and save the file asSearchComparerYourlastname.java.
- Given these two arrays, char arrA[] = {'a', 'e', 'i', 'o', 'u'} and char arrB[] = {'T', 'A', 'B','L','E'}, merge these two arrays into a new array. Make sure that the contents of arrA is interspersed with contents of arrB.Ocaml 1. Create a function flip val flip : bool array array -> int -> int -> bool array array = <fun> that given a bool matrix and two integers i; j. it negates the values(true!false, false!true) at location i; j in the matrix, as well negatingthe values on the (up to) 4 horizontally/vertically adjacent elements. 2. Create a function print matrix val print_matrix : bool array array -> unit = <fun> that given a bool matrix, it prints it on screen (true !"T", false!"F").Select true or false for the statements below. Explain your answers if you like to receive partial credit Select true or false for the statements below. Explain your answers if you like to receive partial credit Which of the following is true about searching elements in an unordered array? With the data is unsorted, search is O(n) because if the element you are looking for is not there, you have to check every element in the array If you start at the end of the array and traverse to index 0, search improves to O(log n) because you only have to look at half of the array If you get lucky with checking the first element and find it immediately, then the worst case performance of search improves to O(n^2) Which of the following is true about searching elements in an ordered array? You cannot use binary search on an ordered array so the performance is O(n) If there are no holes in the array and the elements are all next to each other, then the performance for search improves to…