the subject of Array: - Create a menu function "menuFunction" that has to contain the following list: 1- print the summation. 2- print the remainder of the division. 3- exit.
Q: The code to traverse a twodimensional array using the Do...Loop statement requires two loops. True…
A: Using one loop we can travel only either column wise or row wise in an array. A 2D array is…
Q: 1- Sum Perfects. (Program should call a function that fill array with 10 random mumbers and call a…
A: Programming instructions; Include necessary header files. Declare functions. Declare the required…
Q: Which is the most preferred loop for traversing an array and why?
A: A loop can be utilized for the array traversing. The traverse of the array means visiting each and…
Q: Write a statement that creates an array of three string values that is referenced by the fullName…
A: String Array: An array of strings is an object that carries a collection of items of the same type.…
Q: The code to traverse a two-dimensional array using the Do...Loop statement requires two loops. True…
A:
Q: You will receive an array whose size is variable.
A: ANSWER: Array: An array is a set of comparable statistics factors saved at contiguous reminiscence…
Q: 13.2 (Suffle ArrayList) Write the following method that suffle an ArrayList of the numbers: public…
A: In shuffle method parameter ArrayList is passed where for loop is used to iterate over the…
Q: d) what are the values of elements in the array? int A[5]={2,5,-7};
A: SUMMARY: - hence, we got the desired output.
Q: Using the code given as a reference. In the main file personalInfo.java create an ArrayList of…
A: So as per statement so it does not require you to get user input using a scanner, you can just…
Q: 09 randArray Part 4 DESCRIPTION Get a value from the user and using a loop, search for the value in…
A: Program to compare the entered integer by the user with the array elements and print the index…
Q: A personal phone directory contains room for first names and phone numbers for 30 people. Assign…
A: The given names are stored in an String array named name. The given phone numbers are stored in an…
Q: What is used to cycle through all the subscripts in the array to process the data in the array?…
A: Array: It is a linear data structure used to store the data of same type. It can be used to store…
Q: A personal phone directory contains room for first names and phone numbers for 30 people. Assign…
A: the program is an given below: Answer #create a associative array phone=dict() #assign names and…
Q: You should add the list of cakes to 10 options (10 type of cakes) with different prices. Store all…
A: ANSWER: Cake Program:
Q: Declare an array variable ‘number’ assigning it with THREE (3) elements “one, two and three” and use…
A: Explanation: The Java for-each loop is an alternative for traversing through the array or collection…
Q: The strLetters array is declared using the Dim strLetters() As String = {"E", "A","C", "G"}…
A: ANS: - Option(a) is Correct. The array is first sorted using Sort method, then further the array…
Q: A personal phone directory contains room for first names and phone numbers for 30 people. Assign…
A: The above program is solved using Java program below:
Q: 1)Write a game of rock paper scissors, one of the choices will be from the user and the other from…
A: 1. Basically there are 3 possible input Stone Paper scissors So this is the concept of first…
Q: 02 You have a one-row array whose elements are the following equations in order…
A: Note: Answering the question in python as no language is specified. Input : Input x and y. Output…
Q: Create an empty ArrayList. Take names from user as many as he/she would like to have. When you take…
A: import java.util.*;public class Test121 { public static void main(String args[]) { Scanner sc = new…
Q: Seatwork BUG BUSTER: What is wrong with the following code fragment? int x,y; int array[10][3];…
A: In this code we have to find the error in the code implementation in which array is initialized and…
Q: In order to access each element in an array, the For...Next statement needs to know the highest…
A: Traversing the array: Traversing an array means looking for each element one by one starting from…
Q: Create class named student_names that prompts the user to enter three names of three students, puts…
A: Step 1:- Program Approach:- Declare the class students_name Declare one variable inside the…
Q: Seatwork BUG BUSTER: What is wrong with the following code fragment? int x,y; int array[10][3];…
A: Introduction: Here we are required to explain what is the problem with the given source code. OUTPUT…
Q: The array fileSize contains the sizes of all files stored in a folder. Fill in the blank with a line…
A:
Q: the following: - Create an array of the following temperature readings: 36, 5, 10, 24, 40, 31 - use…
A: The program is written in java.Please find the program in the following step:
Q: Continue to prompt the user for names until the user enters quit. After the arrays are full…
A: Here is the completed code for this problem. Comments are included, go through it, learn how things…
Q: random value from 1-50. Display those values on the screen (as shown below), and then get an integer…
A: print("Part2:")list_1= list(map(int,input("List:").strip().split()))[:10]input1=int(input("Value to…
Q: Write a For Each loop that displays every element of an array named strSongNames in a ListBox named…
A: Java is a programming language. It contains extensive libraries (package). It can be used to create…
Q: Programming in C language. MyName Declare a char arrays named name, upperName, lowerName,…
A: Note: The software provided below has been compiled online using the "repl.it" web compiler.
Q: Question 31 Which method call would print the items in a perfect size array? Assume shoppingList is…
A: - We have to talk for printing a perfect sized array with the options provided. - The options :-…
Q: In order to access each element in an array, the Do...Loop statement needs to know the highest…
A:
Q: Which one of array? a. REFRESH 5. PRECHAR
A: Which one of the following 4 operations is NEVER required to read data from a DRAM bit-cel array?…
Q: Question 1 Write a statement that declares a string arrays initialized with the following strings:…
A: Since no programming language is mentioned I am using c++ Algorithm: 1. Start 2. Initialize string…
Q: In main: Declare an array capable of holding five Strings. Populate the array by entering five…
A: The foreach loop : The foreach loop is a shortcut of the general for loop: The general for loop has…
Q: a-)Write a game of rock paper scissors, one of the choices will be from the user and the other from…
A: Note: as per our guidelines I m solving only one question for you. a-)Write a game of rock paper…
Q: Write the following function that tests whether the list has four consecutive numbers with the same…
A: #declarer functiondef isConsecutiveFour(values): #return the values return sorted(values) ==…
Q: A personal phone directory contains room for first names and phone numbers for 30 people. Assign…
A: Since you have not mentioned the programming language. I am attempting this in java. if you need it…
Q: Fill in the array with the values that would be stored after the code executes: int[] list for (int…
A: I used C++ code to get the output of list of element after executing the for loop condition
Q: Which of the following loops can be used to process the contents of an array?
A: While loop checks each iteration if condition is true it continues to run, which can be used to…
Q: What are the values of the variable number and the vector review after the following code segment is…
A: The given code segment is: vector<int> review(10,-1); int number;…
Q: The code to traverse a two-dimensional array using the For Each...Next statement requires two loops.…
A: To traverse a two-dimensional array using For Each….Next statement it requires outer loop to iterate…
Q: Which is used to assign data items to an array when the array is declared? Initializer List…
A: Given: When an array is declared, which is used to attach data objects to it?
Q: What is the output of the following?
A: Before going to the solution I want to explain the forEach loop. For each entry in an array,…
Q: Write a for loop to initialize the following array with value 0.0. double[] balances = new…
A: Given: Create a for loop to set the value of the following array to 0.0.
Q: Create an indexception value of unique consonants and unique vowels. This is the Input: String of…
A: Tо sоlve this рrоblem, First оf аll, we need tо соnvert every uррer-саse сhаrасter…
Q: Create a LookupNames project. In the main function: Ask the user to enter a number of names, X to…
A: Approach: Import the header file and use the namespace. Define the function displayNames to…
Q: Given the following pseudocode, convert it into the corresponding flowchart. myList(array) {…
A: For this question we have to draw a flow chart to indicate the data flow:
Q: testScore Array: Student1 = 75 Student2 = 24 Student3 = 73 Student4 = 65 Student5 = 86 Student6 =…
A: In this Program, declare the array variable for students and testScore and initialize the variable.…
hello, its a C++ language , it deals with array and funtions.
Step by step
Solved in 6 steps with 5 images
- In the composer array, create a statement that copies the string "Beethoven."The Foreach loop iterates through the array and returns each value in the array until reaching the end of the array. What is the output of the following? $list = 0..00000000005 foreach ($item in $list) { Write-Output $item }hello, c++ programming homework deals with array make menu that has option 1 2 and 3 to get back to the menu that has option 1 2 and 3 is to repeat , and then press d to exit the menu.
- Allow the user to enter the names of several local businesses. Sort the business names and display the results. Continue this process until the user is out of business names. Please use good functional decomposition to make your development easier. (Perhaps one function for sorting an array of strings, another function for swapping two strings, one for displaying an array of strings, and others to maintain the user interface. This is also a good place to use a library, btw.) C++A personal phone directory contains room for first names and phone numbers for 30 people. Assign names and phone numbers for the first 10 people. Prompt the user for a name, and if the name is found in the list, display the corresponding phone number. If the name is not found in the list, prompt the user for a phone number, and add the new name and phone number to the list. Continue to prompt the user for names until the user enters quit. After the arrays are full (containing 30 names), do not allow the user to add new entries. Use the following names and phone numbers: Name Phone # Gina (847) 341-0912 Marcia (847) 341-2392 Rita (847) 354-0654 Jennifer (414) 234-0912 Fred (414) 435-6567 Neil (608) 123-0904 Judy (608) 435-0434 Arlene (608) 123-0312 LaWanda (920) 787-9813 Deepak (930) 412-0991A personal phone directory contains room for first names and phone numbers for 30 people. Assign names and phone numbers for the first 10 people. Prompt the user for a name, and if the name is found in the list, display the corresponding phone number. If the name is not found in the list, prompt the user for a phone number, and add the new name and phone number to the list. Continue to prompt the user for names until the user enters quit. After the arrays are full (containing 30 names), do not allow the user to add new entries. Using Scanner.input to prompt user, Use the following names and phone numbers: Gina (847) 341-0912 Marcia (847) 341-2392 Rita (847) 354-0654 Jennifer (414) 234-0912 Fred (414) 435-6567 Neil (608) 123-0904 Judy (608) 435-0434 Arlene (608) 123-0312 LaWanda (920) 787-9813 Deepak (930) 412-0991
- A personal phone directory contains room for first names and phone numbers for 30 people. Assign names and phone numbers for the first 10 people. Prompt the user for a name, and if the name is found in the list, display the corresponding phone number. If the name is not found in the list, prompt the user for a phone number, and add the new name and phone number to the list. Continue to prompt the user for names until the user enters quit. After the arrays are full (containing 30 names), do not allow the user to add new entries. Use the following names and phone numbers:A personal phone directory contains room for first names and phone numbers for 30 people. Assign names and phone numbers for the first 10 people. Prompt the user for a name, and if the name is found in the list, display the corresponding phone number. If the name is not found in the list, prompt the user for a phone number, and add the new name and phone number to the list. Continue to prompt the user for names until the user enters quit. After the arrays are full (containing 30 names), do not allow the user to add new entries. Use the following names and phone numbers: Name Phone # Gina (847) 341-0912 Marcia (847) 341-2392 Rita (847) 354-0654 Jennifer (414) 234-0912 Fred (414) 435-6567 Neil (608) 123-0904 Judy (608) 435-0434 Arlene (608) 123-0312 LaWanda (920) 787-9813 Deepak (930) 412-0991 import java.util.*; class PhoneNumbers { public static void main(String[] args) { // Write your code here } }A personal phone directory contains room for first names and phone numbers for 30 people. Assign names and phone numbers for the first 10 people. Prompt the user for a name, and if the name is found in the list, display the corresponding phone number. If the name is not found in the list, prompt the user for a phone number, and add the new name and phone number to the list. Continue to prompt the user for names until the user enters quit. After the arrays are full (containing 30 names), do not allow the user to add new entries.
- What is the content of names after the following statements? ArrayList<String> names = new ArrayList<String>(); names.add("A"); names.add(0, "B"); names.add("C"); names.set(2,”D”); names.remove(1);Create a program that will track student names and their grades and perform some simple statistics. In a main class create an ArrayList or array that will hold Student names. Create a second (parallel) ArrayList or array that will hold student scores, represented as integers from 0-100. Prompt the user to enter some students (for your purposes, enter information for at least three). Then present a menu for the user. The menu will contain the following options: Find student with the highest grade (print out the name of the student) Find grade average (return the grade average back to the calling method) print information of all students exit program Create methods in your main class for these options. Keep the your ArrayList or array inside your main method and pass it to the other methods; it should not be a global variable. Validate the grade; the user should not enter anything below 0 or above 100.What happens when a variable no longer refers to an object, such as an array?