Object-oriented programming design

Assignment Help JAVA Programming
Reference no: EM132057248

In object-oriented programming design, such as in Java, your program often consists of two or more classes (often written in different .java source files). One class contains the main() method to generate the console output, while the other classes may just contain properties or methods to process the data. Using this approach to design a DNA sequence class called DNA with a validation method called IsDNAvalid() to validate if the DNA sequence contains any invalid letter (not A, C, G, T). You can use the charAt() method of the String class to loop through a sequence string to check if each letter is valid. Design another class which contains the main()method, and create a DNA object inside the main method, then call the IsDNAvalid() method to validate the DNA sequence input.

Reference no: EM132057248

Questions Cloud

Explain how java propagates exceptions : Explain how Java propagates exceptions and how it uses the stack trace to determine what exception handler to use when an exception occurs.
Main program with the necessary variables : Call the method from the main program with the necessary variables - What does this mean
Similarities and differences between powershell and java : Describe similarities and differences between PowerShell and Java. List some examples for each.
Calculate the percentage of gc contents : Using these two new methods in your program to calculate the percentage of GC contents in the DNA sequence you entered. Round your answer to 2 decimal places.
Object-oriented programming design : In object-oriented programming design, such as in Java, your program often consists of two or more classes
Track of how many numbers have been input : Counter: A counter to count to 10 (i.e, to keep track of how many numbers have been input and to determine when all 10 numbers have been processed).
Compute code fragment using a for loop to print : Compute code fragment using a for loop to print the first 10 numbers of the series 3 7 15 31 ... in the same line.
Simulate rolling a die three times and count : A program is required to simulate rolling a die three times and count the number of times a 6 is thrown on the die. Choose one of each pair of statements
Shuffle an array of integers into random order : To shuffle an array of integers into random order, a pseudo-code is developed as follows:

Reviews

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