Skip to main content

Write a complete java program

SMB4103-Introduction to Programming Page 1 of 5
SMB4103-Introduction to Programming
Semester 2, 2018
Log/Workbook Assessment
Log/Workbook No. : Log/Workbook-3
Due date: Week 7

Group/individual:
Weighting:
Individual Assignment
30%

Student ID: ____________________, Student Name: ________________________________
Question one (10 marks)
Write a complete java program that count a total number of duplicate elements in an array. The
program should allow the user to enter 10 numbers and store them in an array. You have to use the
loops statements to enter and search for the repeated numbers. For example, array (A) includes
elements {0, 3, 6 ,7, 2, 0, 3, 2, 13, -2}. The program has to count the number of repeated elements
and display 3.
Answer:

SMB4103-Introduction to Programming Page 2 of 5
Question two (10 marks)
Write a complete java program to find the maximum and minimum elements in an array. For
example, assume A={1, -3, 9, 10, -1, 0, 11, 14, 0, 12}. The program must use a loop to find and display
the minimum number (-3) and the maximum (14).
Answer:

SMB4103-Introduction to Programming Page 3 of 5
SMB4103-Introduction to Programming Page 4 of 5
Question three (10 marks)
Write a complete program in Java to separate odd and even integers in separate arrays. For
example: assume A= {2, 4 ,6, 8, 3}, and B={1, 6, 7, 9,10}. Your program must create two arrays, E
includes even numbers and O includes the odd numbers as follows:
E={2,4,6,8,10}
O={3,1,7,9}
Answer:

SMB4103-Introduction to Programming Page 5 of 5

The post Write a complete java program appeared first on My Assignment Tutor.



Logo GET THIS PAPER COMPLETED FOR YOU FROM THE WRITING EXPERTS  CLICK HERE TO ORDER 100% ORIGINAL PAPERS AT PrimeWritersBay.com

Comments

Popular posts from this blog

Identify and discuss a key milestone in the history of computers that interests you and why.

  Part 1Title: Lab ResponseDiscuss one feature of MS Word and one feature of MS Excel that you found challenging within the lab and why. Examples are WordArt, inserting shapes, adding borders, cell styles, etc. This response should be at least one paragraph in length. Part 2Title: History of Computers Identify and discuss a key milestone in the history of computers that interests you and why. This section should be at least one paragraph. Part 3Title: System Software vs. Application Software In your words, explain the difference between application software and system software as if to another coworker who has limited technical knowledge. Use examples to support your rationalization. This section should be at least two paragraphs. Part 4Title: Blockchain and Cryptocurrency In a minimum of one paragraph each: 1. Conduct some research on the internet and discuss one underlying technology of cryptocurrencies like blockchain, cryptography, distributed ledger technol...

Cybersecurity and Infrastructure Security (CISA)

 Develop a research paper that identifies a specific Department of Homeland Security (DHS) operating agency. Fully describe 1 DHS operating agency from the following list: Cybersecurity and Infrastructure Security (CISA) U.S. Customs and Border Protection (CBP) U.S. Citizenship and Immigration Services (USCIS) Federal Emergency Management Agency (FEMA) U.S. Coast Guard (USCG) U.S. Immigration and Customs Enforcement (ICE) U.S. Secret Service (USSS) Transportation Security Administration (TSA) The information must include a discussion of the selected DHS agency. Identify the agency’s mission, goals, objectives, and metrics. Conduct an analysis of how these mission areas address the threats or challenges. Recommend agency program priorities among the current set of goals, objectives, metrics, or budget items. Justification of all choices is an essential element of this assignment. Reference all source material and citations using APA format. WE OFF...

Discuss how the project

ord count : no idea 1. You are required to write a report on all project activities involved in all the 10 knowledge areas of project management for the entire project life cycle. You should also include a list of the respective PM documents, for example PM Plan, PM Quality Management Plan, Risk management, Procurement, etc. The report must include the activities that are considered before the project is closed out. 2. Discuss how the project quality management plan can provide adequate standards and controls in managing global teams in projects. Your discussion must provide adequate arguments for the need of cultural awareness and legal issues. Regards, The post Discuss how the project appeared first on My Assignment Tutor . Assignment status :  Resolved by our Writing Team Source@ PrimeWritersBay.com GET THIS PAPER COMPLETED FOR YOU FROM THE WRITING EXPERTS   CLICK HERE TO ORDER 100% ORIGINAL PAPERS AT PrimeWritersBay.com NO PLAGIARISM