subject

I've this question due on tuesday. but i need the code by tomorrow, monday.
the language is java.
ask the user to enter the size of the array. then fill the array with the multiple of 3 (start at 3.5). (hint: use for loop)

display it like exercise a. (font in red, entered by the user). name it secondarray. feel free to name it anyway you like.

expected output:

enter the size of the array: 10
(input validation: do not let the user enter any number less than 1. must loop until you get the right number.)

here is the multiple of 3, starting at 3.5

3.5 , 6.5 , 9.5 , 12.5 , 15.5 , 18.5 , 21.5 , 24.5 , 27.5 , 30.5

now in reverse order

30.5 , 27.5 , 24.5 , 21.5 , 18.5 , 15.5 , 12.5 , 9.5 , 6.5 , 3.5

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 22:50
Assume the existence of a bankaccount class. define a derived class, savingsaccount that contains two instance variables: the first a double, named interestrate, and the second an integer named interesttype. the value of the interesttype variable can be 1 for simple interest and 2 for compound interest. there is also a constructor that accepts two parameters: a double that is used to initialize the interestrate variable, and a string that you may assume will contain either "simple", or "compound", and which should be used to initialize the interesttype variable appropriately. there should also be a pair of functions getinterestrate and getinteresttype that return the values of the corresponding data members (as double and int respectively).
Answers: 2
question
Computers and Technology, 23.06.2019 04:10
2pointswho was mikhail gorbachev? oa. a russian leader who opposed a coupob. a polish leader who founded the labor union "solidarityoc. a soviet leader who called for a closer relationship with the unitedstates, economic reform, and a more open societyd. a soviet leader who called for more oppression in the soviet union
Answers: 3
question
Computers and Technology, 23.06.2019 16:30
What is one reason why indoor air pollution has become an increasing problem.
Answers: 1
question
Computers and Technology, 24.06.2019 12:30
Do you think media is stereotype ? and why?
Answers: 1
You know the right answer?
I've this question due on tuesday. but i need the code by tomorrow, monday.
the language is j...
Questions
question
Mathematics, 16.02.2021 21:50
question
Mathematics, 16.02.2021 21:50
question
Mathematics, 16.02.2021 21:50
question
Mathematics, 16.02.2021 21:50
Questions on the website: 13722363