subject

7.1 Write statements that create the following arrays: A 100-element int array referenced by the variable employeeNumbers. final int employeeNumbers = 100; int [] numbers = new int[employeeNumbers]; B 25-element double array referenced by the variable payRates. final double payRates = 25; int[] numbers = new int [Double] C. A 14-element float array referenced by the variable miles. float[] miles = 14; D 1000-element char array referenced by the variable char[] letters = new char[1000]; 7.2 What’s wrong with the following array declarations? int[] readings = new int[−1]; double[] measurements = new double[4.5]; There should be no negs. 7.3 What would the valid subscript values be in a four-element array of doubles? 7.4 What is the difference between an array’s size declarator and a subscript? My: idk 7.5 What does it mean for a subscript to be out-of-bounds? My: Declares error

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 08:10
Ihave a music player on my phone. i can buy songs, add them to playlists and play them. obviously it would be redundant to store each song in each playlist; each playlist is just a list of pointers to the songs. for this lab you will simulate this behavior. your program will need to have options to: add songs to the system library (you will store the text of the first line of the song, rather than the audio) add playlists add songs to a playlist list playlists play a playlist list all of the songs in the library with a count of how many times each song has been played remove a song from a playlist remove a playlist remove a song from the library (and thus from all playlists that contain it) note that we will not be checking many error cases. in real programming this would be bad, you should usually try to recognize and respond to as many types of errors as you can. in the context of class we are trying to acquaint you with as many concepts as possible, so for the sake of educational efficiency we will not be checking most errors in this lab, you may assume that your user provides correct input. you may add all appropriate error testing if you wish, but we will not be testing for it.
Answers: 2
question
Computers and Technology, 22.06.2019 11:10
The total cost of textbooks for the term was collected from 36 students. create a histogram for this data. $140 $160 $160 $165 $180 $220 $235 $240 $250 $260 $280 $285 $285 $285 $290 $300 $300 $305 $310 $310 $315 $315 $320 $320 $330 $340 $345 $350 $355 $360 $360 $380 $395 $420 $460 $460
Answers: 2
question
Computers and Technology, 23.06.2019 12:00
What type of slide show is a dynamic and eye-catching way to familiarize potential customers with what your company has to offer? a. ole b. photo album c. brochure d. office clipboard
Answers: 2
question
Computers and Technology, 23.06.2019 16:00
What is the biggest difference between section breaks and regular page breaks? section breaks are more difficult to add than page breaks. section breaks make it easier for you to view the document as an outline. section breaks allow you to have areas of the document with different formatting. section breaks are smaller than regular page breaks.
Answers: 2
You know the right answer?
7.1 Write statements that create the following arrays: A 100-element int array referenced by the var...
Questions
question
Mathematics, 24.08.2019 17:30
Questions on the website: 13722360