logo

Programming Assignment: Java Programming

As part of the formal assessment for the programme, you are required to submit a Programming assessment. The assignment aims to assess your ability to identify algorithms, apply testing and debugging techniques, design system specifications using object-oriented modelling techniques, apply inheritance and aggregation techniques, and design and implement solutions to programming problems. The maximum word count for the assignment is 4,000 words, and exceeding the word count by over 10% will result in a reduction in grade.

12 Pages2732 Words107 Views
   

Added on  2020-06-06

Programming Assignment: Java Programming

As part of the formal assessment for the programme, you are required to submit a Programming assessment. The assignment aims to assess your ability to identify algorithms, apply testing and debugging techniques, design system specifications using object-oriented modelling techniques, apply inheritance and aggregation techniques, and design and implement solutions to programming problems. The maximum word count for the assignment is 4,000 words, and exceeding the word count by over 10% will result in a reduction in grade.

   Added on 2020-06-06

ShareRelated Documents
ProgrammingTask 1 a)Write a Java method to compute the average of five numbers import java.util.Scanner;public class Avg5 { public static void main(String[] args) { Scanner in = new Scanner(System.in); System.out.print("Input first number: "); int num1 = in.nextInt(); System.out.print("Input second number: "); int num2 = in.nextInt(); System.out.print("Input third number: "); int num3 = in.nextInt(); System.out.print("Input fourth number: "); int num4 = in.nextInt(); System.out.print("Enter fifth number: "); int num5 = in.nextInt(); System.out.println("Average of five numbers is: " + (num1 + num2 + num3 + num4 + num5) / 5); }}
Programming Assignment: Java Programming_1
b) Write a Java method to count all words in a string. import java.util.Scanner;public class wordcount { public static void main(String[] args) { Scanner in = new Scanner(System.in); System.out.print("Input the string: "); String str = in.nextLine(); System.out.print("Number of words in the string: " + count_Words(str)+"\n"); } public static int count_Words(String str) { int count = 0; if (!(" ".equals(str.substring(0, 1))) || !(" ".equals(str.substring(str.length() - 1)))) { for (int i = 0; i < str.length(); i++) { if (str.charAt(i) == ' ') { count++; } } count = count + 1; } return count; // returns 0 if string starts or ends with space " ". } }Task 2
Programming Assignment: Java Programming_2
Class DiagramEmployee Table related to depart table.Department table related to Company table.Project table is related to company tables.Task 3 a)In a maximum of 500 words, critically evaluate the principles of object oriented programming.
Programming Assignment: Java Programming_3
Today, object oriented programming will be the predominant programming paradigm as well as Java iscompletely object targeted. In addition , Java is probably the many used language among THAT serviceproviders. Therefore , students often learn Java and subject oriented programming (OOP) actually inintroductory courses. This allows a perfect basis for a “later introduction to other paradigms includinglogical or functional encoding (Bailie, Blank, Murray and Rajaravivarma, 2003). Moreover, OOP also helpslaunching students to concepts similar to specification, construction and resistant.These approaches start by showing objects, interfaces, classes and also functions from the beginning, e. h.the Outside-In teaching way of OOP based on the programming vocabulary Eiffel. Problem Statement:Regardless of several lecturers having at present used the Outside-In teaching approach in their courses,little research evidence on its outcomes exists. Some authors looked at the program compilation behaviorconnected with involved students, but its influence on learning outcomes as well as enthusiasm andinterest has not been researched so far. Research Objective: Educating OO concepts to apprentices is animportant task of program engineering education (Bailie, Courtney and Tuohy, 2003). Therefore , with thispaper the feasibility as well as effects of using Outside-In educating for teaching OOP within university-level introductory courses making use of Java are empirically looked at. In particular, the objective was torealize its impact on learning positive aspects as well as on interest and ideas of the participants. Context:We all evaluated Outside-In teaching in parallel in two opening courses for computer scientific researchand OOP (Bachelor stage, 1st year) at a pair of German universities in the winter period 2012/13. Thecourses have been Programming and Software Growth (PSD) at the University regarding Stuttgart(Stuttgart) and Encoding Technique from the study course “Information Management Automotive”(IMA) at the University of Modern advances Neu-Ulm (Ulm).The major obstacle was the replacement of Eiffel simply by Java. Eiffel is more puristic in its object-oriented constructs as compared to Java. For example , for Coffee an early introduction of permanentmethods is necessary because the technique is executed with the everlasting main method. The concept ofcarrying out a program in Eiffel will be considerably easier. Compared to Eiffel, Java lacks a localsupport for contracts, thus additional tools have to be applied. Regarding the scope, the two classes atUlm and Stuttgart distinctly differ (Janke, Brune and Wagner, 2015). Programming together with SoftwareDevelopment (PSD) with Stuttgart consists of four hrs lecture and two days tutorials with teachingcolleagues per week. Programming Technique inside Ulm consists of two many hours lecture and twoperiod lecturer-guided tutorials. Furthermore, only two additional hours of recommended tutorial perweek are offered. Several topics like the setup as well as the functional principle of a personal computeror data structures are generally units of separate address courses at Ulm. That is why, these units are notincluded here. Thus, compared to Ulm, at Stuttgart much more issues are discussed during a session. PSDat Stuttgart resembles an introduction to computer engineering. The aim of the course can be a broadintroduction to the field about computer science and at the very least to strike all simple topics. Hence,topics just like the principles of computer hardware or maybe the complexity of algorithms may also bebriefly discussed.b)In clear terms, explain your understanding of each of the following object-orientated programmingconcepts:
Programming Assignment: Java Programming_4

End of preview

Want to access all the pages? Upload your documents or become a member.

Related Documents
Online Sales and Inventory Management System (SIMS)
|18
|4838
|56

Average Numbers Importance of Five Numbers
|15
|4930
|206

Java Programming Assignments with Solutions
|9
|904
|164

Fundamentals of Operating Systems and Java Programming
|14
|763
|260

Create Files Based on State in Java Programming
|3
|561
|65

Java Assignment Codes
|52
|5341
|240