ICT102 - Introduction To Programming T119 - IT Assessment Answer

Download Solution Order New Solution
Internal Code: E_AI_DIIF_CAH Code: ICT102

Introduction To Programming T119 IT Assessment Answer

General Study and Resource Requirements 1. Dedicated computer laboratories are available for student use. Normally, tutorial classes are conducted in the computer laboratories. 2. Students are expected to attend classes with the required textbook and must read specific chapters prior to each tutorial. This will allow them to actively take part in discussions. Students should have elementary skills in both word processing and electronic spreadsheet software, such as OFFICE 365 or MS Word and MS Excel. 3. Computers and WIFI facilities are extensively available for student use throughout KOI. Students are encouraged to make use of the campus Library for reference materials. 4. Students will require access to the internet and email. Where students use their own computers, they should have internet access. KOI will provide access to the required software. Question 1:  Write a Java program that prompts the user to enter a number within the range of 1 through 10. The program should display the Roman numeral version of that number using a switch. If the number is outside the range 1 through 10, the program should display an error message. Question 2 Write a program that asks the user to enter today’s sales for five stores. The program should display a bar chart comparing each store’s sales. Create each bar in the bar chart by displaying a row of the asterisk. Each asterisk should represent $100 of sales. Here is an example of the program output: Enter today’s sales for store 1: 10000 Enter today’s sales for store 2: 1200 Enter today’s sales for store 3: 1800 Enter today’s sales for store 4: 800 Enter today’s sales for store Question 3 Create an Array of Strings that contain a list of ten names. Write a program that displays this list of names in the original order. Then sort the list of names in alphabetical order and print them. The program should then place a string of four asterisks in front of every name of length 4. For example: {“Peter”, “Hunter”, “Sarah”, “Gabe”, “Gina”, “Rob”, “John”, “Zoey”, “Tammy”, “Robert”}  Question 4 A Caesar cipher is simple encryption (to protect sensitive data) where a message is encoded by shifting each letter by a given amount. ! e.g. with a shift of 3, A ? D, H ? K, X ? A, and Z ? C . Write a java program that reads a message from the user and performs a Caesar cipher on it: Sample Program Output: User message: I go to KOI Secret Key: 3 Encoded message: l jr wr nrl Question 5 Write a class named Employee that has the following fields:
  • name: the name field reference a String object that holds the employee’s name.
  • idNumber: The idNumber is an int variable that holds the employee’s ID number.
  • Department: The department field references a String object that holds the name of the department where the employee works.
  • position: The position field references a String object that holds the employee’s job title. The class should have the following constructs:
  • A constructor that accepts the following values as arguments and assigns them to the appropriate fields: employee’s name and ID number. The department and position fields should be assigned as an empty string.
  • A no-arg constructor that assigns empty strings to the name, department, and position fields, and 0 to the number field. Write appropriate mutator methods that store values in these fields and accessor methods that return the values in these fields. Once you have written the class, write a separate program that creates three employees objects to hold the following dates:
This ICT102 : IT Assignment has been solved by our IT experts at My Uni Paper. Our Assignment Writing Experts are efficient to provide a fresh solution to this question. We are serving more than 10000+ Students in Australia, UK & US by helping them to score HD in their academics. Our Experts are well trained to follow all marking rubrics & referencing style.

Get It Done! Today

Country
Applicable Time Zone is AEST [Sydney, NSW] (GMT+11)
+

Every Assignment. Every Solution. Instantly. Deadline Ahead? Grab Your Sample Now.