SophiaPretty

(5)

$14/per page/Negotiable

About SophiaPretty

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Accounting,Algebra See all
Accounting,Algebra,Applied Sciences,Architecture and Design,Art & Design,Biology,Business & Finance,Calculus,Chemistry,Communications,Computer Science,Economics,Engineering,English,Environmental science,Essay writing Hide all
Teaching Since: Jul 2017
Last Sign in: 305 Weeks Ago, 1 Day Ago
Questions Answered: 15833
Tutorials Posted: 15827

Education

  • MBA,PHD, Juris Doctor
    Strayer,Devery,Harvard University
    Mar-1995 - Mar-2002

Experience

  • Manager Planning
    WalMart
    Mar-2001 - Feb-2009

Category > Computer Science Posted 13 Dec 2017 My Price 10.00

submitted on Blackboard via the allocated folder.

·      Late submission will result in ZERO marks being awarded.

Identical copy from students or other resources will result in ZERO marks for all involved students

 

    

    

    

 

IT401

Business Computer Languages


 

 

Instructions:

·       This Assignment must be submitted on Blackboard via the allocated folder.

·       Email submission will not be accepted.

·       You are advised to make your work clear and well-presented, marks may be reduced for poor presentation.

·       You MUST show all your work.

·       Late submission will result in ZERO marks being awarded.

·       Identical copy from students or other resources will result in ZERO marks for all involved students.

·       Convert this Assignment to PDF just before submission.

    

 

 

 

Name:###

 

CRN:###

 

ID:###

 

 

 

 

 


2 Marks

Learning Outcome(s):

Ch. (6).

Be able to use common loop algorithms

Be able to program loops with the while and for statements

 

 

 

 

 

 

 

 

Question One

Write a program in Java to read 5 integers and print their sum and average.Use loop statements in your code. The output of your program looks like:

 

1.5 Marks

Learning Outcome(s):

Ch. (6).

Be able to use common loop algorithms

Be able to program loops with the while and for statements

 

 

 

 

 

Question Two

Write a program in Java to read 5 integers and print and print the minimum and maximum values.Use while loopand if statements in your code. The output of your program looks like:

 

 

0.5 Marks

Learning Outcome(s):

Ch. (7)

become familiar with using arrays and array lists

 

 

 

 

 

 

Question Three

What is the value of mafter running the following code?

int[] m = new int[8];

m[0] = 1;

for (int i = 1; i < m.length; i++) {

m[i] = m[i-1] + i;

}

 

 

1 Marks

Learning Outcome(s):

Ch. (7)

Become familiar with using arrays and array lists

 

 

 

 

 

Question Four

 

Find and fix the error in each of the following codes:

 

1.

int[ ] a = new int[ 60 ];

for( int h = 0; h<= a.length; h++ )

a[ h ] = 1;

 

2.

ArrayList m = new ArrayList();

m.add(1);

m.add(2);

m.remove(0);

 

 

 

 

 

 

 

 

Attachments:

Answers

(5)
Status NEW Posted 13 Dec 2017 07:12 AM My Price 10.00

-----------  ----------- H-----------ell-----------o S-----------ir/-----------Mad-----------am ----------- Th-----------ank----------- yo-----------u f-----------or -----------you-----------r i-----------nte-----------res-----------t a-----------nd -----------buy-----------ing----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n. -----------Ple-----------ase----------- pi-----------ng -----------me -----------on -----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be----------- qu-----------ick-----------ly

Not Rated(0)