
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
expand_more
expand_more
format_list_bulleted
Question
Write the code to display all the values stored in a 10-element array called prices
Expert Solution

arrow_forward
Step 1
iam giving the Code: in java
public class Display
{
public static void main(String args[])
{
int prices[] = {20,50,60,70,80,90,100,10,9,2};//array called prices which stores the value of prices
for(int i=0;i<prices.length;i++)//length is for finding the length of the array
{
System.out.println(prices[i]);//displaying the values stored in array
}
}
}
arrow_forward
Step 2
Code screenshot:
Trending nowThis is a popular solution!
Step by stepSolved in 3 steps with 2 images

Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Similar questions
- Assume you have declared an integer array named salary that contains exactly five elements. Using C++ programming language, Write a single statement to assign the value 25000 to the third element of this arrayarrow_forwardIn visual basic Create an array that will hold 10 integer values.arrow_forward5 نقاط Q1. Write a code to find the summation of all numbers that are less than or equal to 10 in the array. C= {-10, 35, 10, -5, 6, 16, -23, 94, -22, 12, 202, -52O, 0, .-3}arrow_forward
- C code which returns the largest of the 6 integer number array according to integer array sent into it and the array length. Also include minimum, sum and average functions.arrow_forwardIn visual basic Declare a two-dimensional array that has 3 columns and 4 rows.arrow_forwardVisual basic 6.0arrow_forward
- The subscript identifies the of a particular element in the array. O range value O location namearrow_forwardThe type size_t represents an unsigned integral type, which is recommended for any variable that represents an array's size or an array's indices. Select one: O True Falsearrow_forwardThe position number contained within square brackets is called the datatype of the array Select one: True Falsearrow_forward
- The C code that returns the mean of the 10 float number array according to a decimal array and the number of elements sent into itarrow_forwardWrite a statement that declares and initializes an array of characters called values that contains 3 characters. Assume that you do not know specifically what values will be stored in the array.arrow_forward
arrow_back_ios
arrow_forward_ios
Recommended textbooks for you
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education

Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON

Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education