ICT102 Introduction to Programming Assignment

Assignment Help JAVA Programming
Reference no: EM132419694

ICT102 - Introduction to Programming - Kings Own Institute

Assessment type: Develop Java applications based on the given scenarios:

Purpose: This assignment will allow students to demonstrate their understanding of Java programming language covering all the concepts covered throughout the trimester and implementation of those concepts to develop a small java application based on the given specifications. This Assessment contributed to learning outcomes c and d.

Task Details: You are required to complete 5 practical exercises in Java that cover main topics in your outline.

Question 1: Java Fundamentals
Last month Joe purchased some stock in Acme Software, Inc. Here are the details of the purchase:
• The number of shares that Joe purchased was 1,000.
• When Joe purchased the stock, he paid $32.87 per share.
• Joe paid his stockbroker a commission that amounted to 2% of the amount he paid for the stock.

Two weeks later Joe sold the stock. Here are the details of the sale:
• The number of shares that Joe sold was 1,000.
• He sold the stock for $33.92 per share.
• He paid his stockbroker another commission that amounted to 2% of the amount he received for the stock.

Write a program that displays the following information:
• The amount of money Joe paid for the stock.
• The amount of commission Joe paid his broker when he bought the stock.
• The amount that Joe sold the stock for.
• The amount of commission Joe paid his broker when he sold the stock.
• Display the amount of profit that Joe made after selling his stock and paying the two commissions to his broker. (If the amount of profit that your program displays is a negative number, then Joe lost money on the transaction.)

Question 2:  Nested Loops

Write a program that uses nested loops to collect data and calculate the average rainfall over a period of years. The program should first ask for the number of years. The outer loop will iterate once for each year. The inner loop will iterate twelve times, once for each month. Each iteration of the inner loop will ask the user for the inches of rainfall for that month. After all iterations, the program should display the number of months, the total inches of rainfall, and the average rainfall per month for the entire period.

Question 3: 2D Array

Write a program that lets the user enter four quarterly sales figures for six divisions of a company. The figures should be stored in a two-dimensional array. Once the figures are entered, the program should display the following information for each quarter.
• A list of the sales figures by division
• Each division's increase of decrease from the previous quarter. (This will not be displayed for the first quarter)
• The total sales for the quarter.
• The company's increase of decrease from the previous quarter. (This will not be displayed for the first quarter)
• The average sales for all divisions that quarter.
• The division with the highest sales for that quarter. Input validation: do not accept negative numbers for sales figures.

Question 4: Strings

Write a program that has two parallel arrays of String objects. One of the arrays should hold people's names and the other should hold their phone numbers.

Here are sample contents of both arrays.

name ArraySampleContents     phone ArraySampleContents
"Harrison, Rose"                       "555-2234"
"James, Jean"                          "555-9098"
"Smith, William"                        "555-1785"
"Smith, Brad"                           "555-9224"

The program should ask the user to enter a name or the first few characters of a name to search for in the array. The program should display all of the names that match the user's input and their corresponding phone numbers. For example, if the user "Smith," the program should display the following names and phone numbers from the list:

Smith, William: 555-1785
Smith, Brad: 555-9224

Reference no: EM132419694

Questions Cloud

Describe each type of law identified in the juriglobe site : For this week's assignment, you will evaluate criminal justice systems via JuriGlobe: World Legal Systems. Across the globe, there are various types of law.
Compute the 2018 depreciation : Oriolenow feels the hot tub will be used until December 31, 2020, when it can be sold for $795. Compute the 2018 depreciation.
What we have discussed regarding the formation of gangs : How was the formation of Native American gangs depicted in the film similar to what we have discussed regarding the formation of gangs in New York?
Article on designing team and team identity : Using the Internet read one academically reviewed article on Designing Team and Team Identity,
ICT102 Introduction to Programming Assignment : ICT102 Introduction to Programming Assignment Help and Solution, Kings Own Institute - Assessment Writing service - Write a program that uses nested loops
Analysis the alfa romeo hewlett packard,subway,or sony : Analysis the Alfa Romeo Hewlett Packard,Subway,or Sony Assignment help and solutions:-What would grab the customers/users' attention?
How accurate is media representation of forensic science : How accurate is the popular media representation of forensic science? How does this influence popular opinion on justice-related issues?
Executive program practical connection assignment : Executive Program Practical Connection Assignment At UC, it is a priority that students are provided with strong educational programs and courses
Describe the thinking and criticalskills you used : Write a 400-750 word paper in which you explain your thought process while completing the You Make the Call: Discretion in Criminal Justice Police Patrol.

Reviews

len2419694

12/19/2019 2:05:30 AM

Need to do Assessment 4 in PDF Questions From Page no 10 - 12 Make sure to follow marking guideline Very Strictly

Write a Review

JAVA Programming Questions & Answers

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

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