How it influence it department''s ability to maintain

Assignment Help Computer Engineering
Reference no: EM1334443

Details: Coding style is a very important characteristic for those entering the technology field. Here are two sample Java programs that do exactly the same thing according to the user. Please identify the differences in the code samples and discuss the style of each sample. Make sure to address readability as a characteristic and how it would influence an IT department's ability to maintain custom software for a corporation.

1. SAMPLE CODE A:

import java.util.Scanner;
public class DB2_SampleA{
public static void main(String args[]){
Scanner input = new Scanner(System.in);
int num1;
System.out.print("Enter first number: ");
num1 = input.nextInt();
int num2;
System.out.print("Enter second number: ");
num2 = input.nextInt();
if (num1>num2)
System.out.println("First number is bigger");
if (num1<num2)
System.out.println("Second number is bigger");
if (num1==num2)
System.out.println("Numbers are equal");
}}

2. SAMPLE CODE B:

// DB2_SampleB
// This program will get two numbers from the user
// and determine which is bigger or whether they are equal

import java.util.Scanner; // Scanner class used for getting user input

public class DB2_SampleB
{
// The manin method that begins execution of Java application
public static void main(String args[])
{
// variable declarations
int num1; // first number to compare
int num2; //second number to compare

// create Scanner to capture input from console
Scanner input = new Scanner(System.in);

// get user input, num1 and num2
System.out.print("Enter first number: ");
num1 = input.nextInt();
System.out.print("Enter second number: ");
num2 = input.nextInt();

// compare numbers and display results
if (num1 > num2)
System.out.println("First number is bigger");
if (num1 < num2)
System.out.println("Second number is bigger");
if (num1 == num2)
System.out.println("Numbers are equal");

Reference no: EM1334443

Questions Cloud

Analysis on wal-mart : Wal-Mart is the largest corporation in the world, and it has obviously enjoyed tremendous success. But while many welcome its location in their communities, others do not.
Create and implement the class myarray : Please assist with following problem. I am totally lost with this so if you can also include statements telling me what you did, I would appreciate it. The entire chapter talks about array index out of bounds which has completely confused me and t..
Prepare an innovative environment in daycare or teaching : What innovation would like to implement and What type of innovation would this be
Illustrate why do economists pay more attention to national : Illustrate why do economists pay more attention to national economies than state or regional economies.
How it influence it department''s ability to maintain : be sure to address readability as a characteristic and how it will influence an IT department's ability to maintain custom software for a corporation.
Prepare a file of remedies and responsibilities : What is the city's responsibility in addressing this situation and What remedies can the courts provide and prepare a file of remedies and responsibilities.
World bank is presently advising newly industrialized nation : The World Bank is presently advising newly industrialized nations on how to encourage growth and they have asked for your help.
Using information from the almanac of american politics : Using information from the Almanac of American Politics or other respectable sources, prepare a memorandum that demonstrates,  Your knowledge of Senator Harry Reid.
Describe how the establishment of free trade : Business analysis questions: free trade, business forms - In your own words describe the purpose for developing free trade agreements and describe how the establishment of free trade areas represents both a threat and an opportunity for global corp..

Reviews

Write a Review

Computer Engineering Questions & Answers

  What are the hardest things in learning a new language

What is the hardest thing in learning a new language like Java and C++? How best to master these languages for a beginner with only procedual programming language experience.

  Develop flip flop which is equivalent to the 74x74

Develop flip flop which is equivalent to the 74x74 positive-edge-triggered flip flop using a 74x109 positive-edge-triggered flip flop. No other component is to be used.

  Aspect of software engineering

Select a topic related to some aspect of the Software Engineering. Write about 2500+ word (minimum) paper on that particular topic-single spaced 12 pt times or times new roman font.

  Program to experiment various sort algorithms

Develop a program which enables you to experiment along with the various sort algorithms. This program must allow you to easily plug-in the new sort algorithms and provide comparison between them.

  Show the result of the calculation metric using cstr

require to create 2 textboxes with label one with input of value to be converted English using CDbl and another to display the result of the calculation metric using cstr.

  Write program that generates casual number between 1 and 100

Write program that generates casual number between 1 and 100?

  Separate following program into appropriate lexemes

Separate following program into appropriate lexemes

  What will offer as a network suggestion

With true VPN access to basically an Intranet Environment at each office; there really should not be any need for "Routing" per se unless I am missing something. I only have 2 days for this project before I head back to field, so I just need some ..

  What would be well suited for a neural network

Research the features of Cisco Meeting Place and evaluate them to Microsoft's offerings. What hardware is required to implement Cisco's product.

  Program to print a sequence of 20 random die tosses

Write down a program which produces a sequence of 20 random die tosses in an array and which prints the die values.

  Draw a class diagram for the situation

We store each employee's name, social insurance number, address, salary, sex, and birth date, An employee is assigned to one department but may work on several projects, that are not necessarily controlled by the same department.

  Creating different volume such as the striped, mirrored

What should you do in order to create a different volume kind such as the striped, mirrored, or Raid 5 volumes? Why utilize the Windows command line when we live within the GUI world?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd