1 / 4

PRG 420 Week 4 Individual Coding a Program Containing an Array//tutorfortune.com

PRG 420 Week 4 Individual Coding a Program Containing an Array//tutorfortune.com<br><br>Click on below link to buy<br>https://tutorfortune.com/products/prg-420-week-4-individual-coding-a-program-containing-an-array-1<br><br>PRG 420 Week 4 Individual Coding a Program Containing an Array<br> <br><br>Resource:<br><br>Week Four Coding Assigment Zip File (starter code for this assignment that includes placeholders)<br> <br><br> <br><br>For this assignment, you will apply what you learned in analyzing a simple Javau2122 program by writing your own Javau2122 program that creates and accesses an array of integers. The Javau2122 program you write should do the following:<br><br><br>Create an array to hold 10 integers<br> <br><br> <br><br>Ask the user for an integer. Note: This code has already been written for you.<br> <br><br> <br><br>Populate the array. Note: The first element should be the integer input by the user. The second through tenth elements should each be the previous element 100. For example, if the user inputs 10, the first array value should be 10, the second 110, the third 210, and so on.<br> <br><br> <br><br>Display the contents of the array on the screen in ascending index order.<br> <br>Complete this assignment by doing the following:<br><br>Download and unzip the linked Week Four Coding Assigment Zip File.<br> <br><br> <br><br>Read each line of the file carefully, including the detailed instructions at the top.<br> <br>Add comments to the code by typing your name and the date in the multi-line comment header.<br> <br><br> <br><br>Replace the following lines with Javau2122 code as directed in the file: <br><br> <br><br>LINE 1<br> <br><br> <br><br>LINE 2<br> <br><br> <br><br>LINE 3<br> <br><br> <br><br>LINE 4<br> <br><br> <br><br>LINE 5<br> <br> <br><br> <br><br>Comment each line of code you add to explain what you intend the code to do.<br> <br><br> <br><br>Test and modify your Javau2122 program until it runs without errors and produces the results as described above.<br> <br><br> <br><br>Note: Refer to this weeku2019s analyzing code assignment if you need help.<br><br>Submit your Java application file using the Assignment Files tab.<br><br>PRG 420 Week 4 Individual Coding a Program Containing an Array<br><br><br>Click on below link to buy<br>https://tutorfortune.com/products/prg-420-week-4-individual-coding-a-program-containing-an-array-1<br>

dettol
Download Presentation

PRG 420 Week 4 Individual Coding a Program Containing an Array//tutorfortune.com

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. PRG 420 Week 4 Individual Coding a Program Containing an Array//tutorfortune.com Click on below link to buy https://tutorfortune.com/products/prg-420-week-4-individual-coding-a-program- containing-an-array-1 P R G 4 2 0 We e k 4 I n d i v i d u a l C o d i n g a P r o g r a m C o n t a i n i n g a n A r r a y   R e s o u r c e : We e k F o u r C o d i n g A s s i g me n t Z i p F i l e ( s t a r t e r c o d e f o r t h i s a s s i g n me n t t h a t i n c l u d e s p l a c e h o l d e r s )     F o r t h i s a s s i g n me n t , y o u w i l l   a p p l y   w h a t y o u l e a r n e d i n a n a l y z i n g a s i mp l e J a v a ™ p r o g r a m b y w r i t i n g y o u r o w n J a v a ™ p r o g r a m t h a t c r e a t e s a n d a c c e s s e s a n a r r a y o f i n t e g e r s . T h e J a v a ™ p r o g r a m y o u w r i t e s h o u l d d o t h e f o l l o w i n g : C r e a t e a n a r r a y t o h o l d 1 0 i n t e g e r s     A s k t h e u s e r f o r a n i n t e g e r .   N o t e :   T h i s c o d e h a s a l r e a d y b e e n w r i t t e n f o r y o u .    

  2. P o p u l a t e t h e a r r a y .   N o t e :   T h e fi r s t e l e me n t s h o u l d b e t h e i n t e g e r i n p u t b y t h e u s e r . T h e s e c o n d t h r o u g h t e n t h e l e me n t s s h o u l d e a c h b e t h e p r e v i o u s e l e me n t + 1 0 0 . F o r e x a mp l e , i f t h e u s e r i n p u t s 1 0 , t h e fi r s t a r r a y v a l u e s h o u l d b e 1 0 , t h e s e c o n d 1 1 0 , t h e t h i r d   2 1 0 , a n d s o o n .     D i s p l a y t h e c o n t e n t s o f t h e a r r a y o n t h e s c r e e n i n a s c e n d i n g i n d e x o r d e r .   C o mp l e t e   t h i s a s s i g n me n t b y d o i n g t h e f o l l o w i n g : D o w n l o a d a n d u n z i p   t h e l i n k e d We e k F o u r C o d i n g A s s i g me n t Z i p F i l e .     R e a d e a c h l i n e o f t h e fi l e c a r e f u l l y , i n c l u d i n g t h e d e t a i l e d i n s t r u c t i o n s a t t h e t o p .   A d d c o mme n t s t o t h e c o d e b y t y p i n g y o u r n a me a n d t h e d a t e i n t h e mu l t i - l i n e c o mme n t h e a d e r .     R e p l a c e t h e f o l l o w i n g l i n e s w i t h J a v a ™ c o d e a s d i r e c t e d i n t h e fi l e :  

  3.   L I N E 1     L I N E 2     L I N E 3     L I N E 4     L I N E 5       C o mme n t e a c h l i n e o f c o d e y o u a d d t o e x p l a i n w h a t y o u i n t e n d t h e c o d e t o d o .  

  4.   T e s t a n d mo d i f y y o u r J a v a ™ p r o g r a m u n t i l i t r u n s w i t h o u t e r r o r s a n d p r o d u c e s t h e r e s u l t s a s d e s c r i b e d a b o v e .     N o t e :   R e f e r t o t h i s w e e k ’ s a n a l y z i n g c o d e a s s i g n me n t i f y o u n e e d h e l p . S u b mi t   y o u r J a v a a p p l i c a t i o n fi l e u s i n g t h e A s s i g n me n t F i l e s t a b . P R G 4 2 0 We e k 4 I n d i v i d u a l C o d i n g a P r o g r a m C o n t a i n i n g a n A r r a y Click on below link to buy https://tutorfortune.com/products/prg-420-week-4-individual-coding-a-program- containing-an-array-1

More Related