How should I replace the following lines with Java™ code
Get college assignment help at Smashing Essays Question How should I replace the following lines with Java code as directed in the file:LINE 1LINE 2LINE 3LINE 4LINE 5Comment each line of code you add to explain what you intend the code to do.Test and modify your Java
program until it runs without errors and produces the results as described above.CODE sample>>>>>The program should declare an array to hold 10 integers.* The program should then ask the user for an integer.* The program should populate the array by assigning the user-input integer* to the first element of the array, the value of the first element 100 to* the second element of the array, the value of the second element 100 to* the third element of the array, the value of third element 100 to* the fourth element of the array, and so on until all 10 elements of the* array are populated.* * Then the program should display the values of each of the array* elements onscreen. For example, if the user inputs 4, the output* should look like this:* * Enter an integer and hit Return: 4* Element at index 0: 4* Element at index 1: 104* Element at index 2: 204* Element at index 3: 304* Element at index 4: 404* Element at index 5: 504* Element at index 6: 604* Element at index 7: 704* Element at index 8: 804* Element at index 9: 904***********************************************************************/package prg420week4_codingassignment;// We need to import the following library if we want to use the// Scanner class to get user input.import java.util.Scanner;public class PRG420Week4_CodingAssignment { public static void main(String[] args) { // LINE 1. DECLARE AN ARRAY OF INTEGERS // LINE 2. ALLOCATE MEMORY FOR 10 INTEGERS WITHIN THE ARRAY. // Create a usable instance of an input device Scanner myInputScannerInstance = new Scanner(System.in); // We will ask a user to type in an integer. Note that in this practice // code WE ARE NOT VERIFYING WHETHER THE USER ACTUALLY // TYPES AN INTEGER OR NOT. In a production program, we would // need to verify this; for example, by including // exception handling code. (As-is, a user can type in XYZ // and that will cause an exception.) System.out.print(“Enter an integer and hit Return: “); // Convert the user input (which comes in as a string even // though we ask the user for an integer) to an integer int myFirstArrayElement = Integer.parseInt(myInputScannerInstance.next()); // LINE 3. INITIALIZE THE FIRST ARRAY ELEMENT WITH THE CONVERTED INTEGER myFirstArrayElement // LINE 4. INITIALIZE THE SECOND THROUGH THE TENTH ELEMENTS BY ADDING 100 TO THE EACH PRECEDING VALUE. // EXAMPLE: THE VALUE OF THE SECOND ELEMENT IS THE VALUE OF THE FIRST PLUS 100; // THE VALUE OF THE THIRD ELEMENT IS THE VALUE OF THE SECOND PLUS 100; AND SO ON. // LINE 5. DISPLAY THE VALUES OF EACH ELEMENT OF THE ARRAY IN ASCENDING ORDER BASED ON THE MODEL IN THE TOP-OF-CODE COMMENTS. }}
PRG2Attached Files:You will complete this program using Windows (Not Console).The following table
PRG2Attached Files:You will complete this program using Windows (Not Console).The following table contains quarterly sales figures for five (5) departments:Quarter 1Quarter 2Quarter 3Quarter 4TotalDepartment 1750660910800Department 2800700950900Department 3700600750600Department 48508001000950Department 5900800960980TotalDesign and write a Windows program/module named SalesAnalysis that will:a. Declare a two-dimensional integer array named sales – (Note: you have 6 rows and 5 columns) – that will hold the 4 quarterly sales for 5 departments b. Populate the first four columns for the 5 departments using the data in the preceding table.c. Contain a loop to compute and populate the total column. Store each department’s total in the array as it is being computed.d. Contain a loop to compute and populate the total row. Store each quarter’s total in the array as it is being computed.e. Using a Procedure (sub program – Private or Public) format and display the table with both the row and column totals. Pass the array as an argument – ByVal.Make sure to document and/or provide comments as much as you can. You will lose points if you have insufficient comments in the source code. Post any questions you may have on the discussion board. Deliverables: Using a single document, combine the following into one (see SampleProgramDocument.DOCx document):a)Cover Page with purpose/objective
Hi I have an assignmnet for programming I am using visual studio
Hi I have an assignmnet for programming I am using visual studio , c# languge
Need help with my introduction to Programming Software assignment Please find an
Need help with my introduction to Programming Software assignment Please find an attached file for more details about the assignment Please contact me regarding payment
For Task 2, You must implement the code for your deck. This
For Task 2, You must implement the code for your deck. This implementation will require a test menu that can be easily used to demonstrate and test the functionality thus far.I have part one done here it isSpecification for building your DeckFor part 1 of your card game you will need to create a specification for your card deck.This specification will include functions for populating cards to your deck and shuffling the deck (randomizing the order of the cards).For the specification I do expect a list of each operation with preconditions and postconditions
Binary Search TreeUsing a binary search tree, you are tasked with building
Binary Search TreeUsing a binary search tree, you are tasked with building a dictionary program which you can store a word with its definition. Each node of the tree will contain the word and definition. The word is what will be used as the key to sort our data.The dictionary should allow you to search for a word. If the word exist then the definition will display. You can also add words to the dictionary. For testing you should be able to display the current word list.The dictionary will populate from a data file and new words will be saved to the file as well.We are still covering Binary trees in class, but we have covered enough to get you started.
I want to make all the boxlist disappear and show when I
I want to make all the boxlist disappear and show when I choose for example translate from Arabic into English the Arabic listbox will show and when the user select any word from the list box the English translated word will show in a small window the same for the restm. file code function varargout = Matlabproject(varargin)% MATLABPROJECT MATLAB code for Matlabproject.fig% MATLABPROJECT, by itself, creates a new MATLABPROJECT or raises the existing% singleton*.%% H = MATLABPROJECT returns the handle to a new MATLABPROJECT or the handle to% the existing singleton*.%% MATLABPROJECT(‘CALLBACK’,hObject,eventData,handles,…) calls the local% function named CALLBACK in MATLABPROJECT.M with the given input arguments.%% MATLABPROJECT(‘Property’,’Value’,…) creates a new MATLABPROJECT or raises the% existing singleton*. Starting from the left, property value pairs are% applied to the GUI before Matlabproject_OpeningFcn gets called. An% unrecognized property name or invalid value makes property application% stop. All inputs are passed to Matlabproject_OpeningFcn via varargin.%% *See GUI Options on GUIDE’s Tools menu. Choose “GUI allows only one% instance to run (singleton)”.%% See also: GUIDE, GUIDATA, GUIHANDLES% Edit the above text to modify the response to help Matlabproject% Last Modified by GUIDE v2.5 25-Apr-2019 17:43:45% Begin initialization code – DO NOT EDITgui_Singleton = 1;gui_State = struct(‘gui_Name’, mfilename, … ‘gui_Singleton’, gui_Singleton, … ‘gui_OpeningFcn’, @Matlabproject_OpeningFcn, … ‘gui_OutputFcn’, @Matlabproject_OutputFcn, … ‘gui_LayoutFcn’, [] , … ‘gui_Callback’, []);if nargin
mplement ADT queue by using a circular linked chain (shown below).
mplement ADT queue by using a circular linked chain (shown below). Recall that this chain has only an external reference to its last node. Name your class CircularLinkedQueue.
Each week you will write and submit a brief summary of the
Each week you will write and submit a brief summary of the important concepts learned during the week. The summary will include a summary of the instructor’s weekly lecture including any videos included in the lecture.Attached are the outline of the chapters which I need the weekly summary for.
HiI need help with my assignment…. … please real the file……………………………………..Thanks,
HiI need help with my assignment…. … please real the file……………………………………..Thanks,
COSC2406 SS19 – Assembly Language ProgrammingFOR EACH QUESTION: It does help to
Get college assignment help at Smashing Essays COSC2406 SS19 – Assembly Language ProgrammingFOR EACH QUESTION: It does help to write pseudo-code to identify the steps necessary to solve these problems. Transfer the refined algorithms to your program as comments and then write the Assembly code to perform the necessary steps. It is recommended that this step is done first, and coding second.
COSC2406 SS19 – Assembly Language ProgrammingFOR EACH QUESTION: It does help to
COSC2406 SS19 – Assembly Language ProgrammingFOR EACH QUESTION: It does help to write pseudo-code to identify the steps necessary to solve these problems. Transfer the refined algorithms to your program as comments and then write the Assembly code to perform the necessary steps. It is recommended that this step is done first, and coding second.
COSC2406 SS19 – Assembly Language ProgrammingFOR EACH QUESTION: It does help to
COSC2406 SS19 – Assembly Language ProgrammingFOR EACH QUESTION: It does help to write pseudo-code to identify the steps necessary to solve these problems. Transfer the refined algorithms to your program as comments and then write the Assembly code to perform the necessary steps. It is recommended that this step is done first, and coding second.
COSC2406 SS19 – Assembly Language ProgrammingFOR EACH QUESTION: It does help to
COSC2406 SS19 – Assembly Language ProgrammingFOR EACH QUESTION: It does help to write pseudo-code to identify the steps necessary to solve these problems. Transfer the refined algorithms to your program as comments and then write the Assembly code to perform the necessary steps. It is recommended that this step is done first, and coding second.
work to help my SEO for my websit
do some work to help my SEO for my websit www.dogfinder.usand make it appear in first page in google search. thanks
Assignment 1: Part A. Create a flowchart for the following problem.Input: three
Assignment 1: Part A. Create a flowchart for the following problem.Input: three different integers: a, b, c. output: The greatest from the given three numbers.For simplicity, we assume that all numbers are different.Part B. Find out the outcome of the following pseudo codes1. [3 marks]a = 1While a < 10 print in a line the value of a a = a 4End whilePrint “bye”2. [4 marks]a = 1While a < 10 if a mod 2 is 0 then print in a line “a is even” else print in a line “a is odd” end if a = a 3End whilePrint “bye”3. [4 marks]a = 2If a mod 2 is 0 then While a < 10 print in a line the value of a a = a 1 End whileelse While a < 5 print in a line the value of a a = a 1 End whileEnd ifPrint “bye”Part C: 1. [ 4 marks]Compute the operation number for the following code block:a = 1While a < 6 print in a line the value of a a = a 1End whilePrint “bye”2. [4 marks]Compute the operation number for the following code block:a = 1While a < 12 print in a line the value of a a = a 3End whilePrint “bye”3. [5 marks]Compute the operation number for the following code block: a = 3While a < 7 if a mod 2 is 0 then print in a line “a is even” else print in a line “a is odd” end if a = a 1End while4. [5 marks]Compute the operation number for the following code block:a = 3If a mod 2 is 0 then While a < 9 print in a line the value of a a = a 1 End whileelse print in a line “this is else part”End ifPrint “bye”6. [7 marks]Explain the following nested loop with output.a = 1While a < 3 b = 1 While b < 4 print in a line the value of b b = b 1 end while a = a 1End While
You decide to upload your recent project to a programming community website
You decide to upload your recent project to a programming community website for feedback, and one thing that community users keep pointing to is the lack of exception handling. Realizing that they are correct, you decide to rectify the situation and improve your programs… or at least one of them. Take one of the programs you designed over the past couple of weeks and enhance the program with exception handling code. Your program should incorporate the TRY and EXCEPT blocks and handle any errors and exceptions that you can find.For this project:Tips: Exception handling programming takes a bit of forethought. Think about ways that you can make your program malfunction while using it (not by changing the code).
Properly configuring and collecting audit logs requires meticulous care.Complete the Practice Lab
Properly configuring and collecting audit logs requires meticulous care.Complete the Practice Lab titled “Audit Logs.”Capture screenshots taken during the lab in your Microsoft® Word document as specified within the lab instructions.At the end of the lab, you will be asked to respond to the following in a 2- to 2.5-page response at the end of your Microsoft® Word document:
I need help to write paper about cisco lab, and explan how
I need help to write paper about cisco lab, and explan how does its work as ateam and I will give more information previtly
Add to the Microsoft Word document you created in W3 Project to
Add to the Microsoft Word document you created in W3 Project to complete the following tasks:Support your responses with appropriate research and examples. Cite any sources in APA format.
I could use some assistance with these five questions. Please
Question I could use some assistance with these five questions. Please note I’ve include the code below:If an array had not been chosen to hold the data manipulated in this program, how else (i.e., with what other data types) could it have been represented?Which approach, using an array or using the alternative you identified in question #1, is shorter/easier?What is the output of this program?What would be the result of using a println() statement to display the value of arraynum[8]?How many values can arraynum contain, and why?——————————————————————————-public class PRG420W4 { public static void main(String args[]) { int[ ] arraynum; // Declare arraynum as an array of integers (int). arraynum = new int[8]; // Now create space in arraynum for 8 elements of type integeger. arraynum[0] = 5; // Load some integer values in the array. arraynum[1] = 10; // In a real-life program, we would probably arraynum[2] = 15; // get our values from a user or input file. arraynum[3] = 11; // We are loading values like this so you can focus arraynum[4] = 1; // on how arrays work. arraynum[5] = 2; arraynum[6] = 3; arraynum[7] = 4; //////////////////////// Display the elements BEFORE sorting System.out.println(“Here is the order in which array elements were created:”); for (int j=0; j < arraynum.length; j ) { System.out.println("The value of arraynum[" j "] is " arraynum[j]); } Arrays.sort(arraynum); // Send our arraynum array to be sorted in ascending order by the sort() method int i; // Define the counter for the loop. We can do it this way or inside // the for loop, as we did in the preceding for loop. //////////////////////// Display the elements AFTER sorting System.out.println("nHere is the order of array elements AFTER sorting:"); // The n means newline (for formatting) for (i=0; i < arraynum.length; i ) { // Loop, starting at 0 and adding 1 each time, until counter is less than array length. System.out.println("The value of arraynum[" i "] is " arraynum[i]); // print the numbers } }}
The post How should I replace the following lines with Java™ code appeared first on Smashing Essays.
Looking for a Similar Assignment? Order now and Get 10% Discount! Use Coupon Code "Newclient"
