Categories
Java

On a scale of 1 – 10 how comfortable do you feel with the idea of creating & using objects?

We are finally diving into the the name of this class, Object Oriented Programming! I’d like to use this discussion to see where everyone is at / how you feel about this concept. We will re-visit this topic in a few weeks and see what has changed. Please answer the following questions:
Please answer the following questions:
On a scale of 1 – 10 how comfortable do you feel with the idea of creating & using Objects?
Think about things (Objects) we used all semester long in CIT-111 such as the Scanner, DecimalFormatter, Strings, Random. These should now make more sense as to how & what they are. In at least 2 sentences gives a brief explanation of how exactly these work. Try to write like you were explaining this to your 111 self.
Of all of the examples covered this week, what was the one that ‘clicked’ the most for you? This can be a video, a PowerPoint slide, a source code example, or a page from our text.
Anything else you’d like to mention?

Categories
Java

Also, i need the code to run from my pc

the program is Netbeans ID
the project name should be in java file format
and the project name should be La PracticeExam1_LastName2.java
also, I need the code to run from my PC

Categories
Java

It should support 2 types of questions: 1) multiple-choice question (more than one choice can be chosen including

Java program using OOP concepts (abstract, interfaces, polymorphism)
in this programming assignment, you will build a Java-based simulation tool based on the live
poll idea (Mentimeter) we used during the class. This is going to be a pure desktop-based
console program, WITHOUT web interactions or graphical UIs required.
The basic functions of the system include:
1) Configure the question types and candidate answers. It should support 2 types of
questions: 1) multiple-choice question (more than one choice can be chosen including
one choice); 2) single choice question (only one choice can be chosen). For each type,
you can configure the candidate answers, such as “A”, “B”, “C”, “D”, or “1.
Right”, “2. Wrong”, etc.
2) Allow students to submit answers. Every student has a unique ID (String), and can
submit an answer to the iVote service.
3) The Voting Service can be first configured with a given question type and candidate
answers. Then, it can start accepting submissions from students. The important thing to
keep in mind about accepting submissions is that each student can only submit one
answer. If multiple submissions are received from the same student, only the last
submission will be counted.
4) The Voting Service can also output the statistics of the submission results. You don’t
have to use the graphical interface. Simply use the standard output (System.out) to
print out the count for each answer. For example, “A : 5, B : 12”, or “1. Right :
15, 2. Wrong : 20”. Feel free to customize the format for your output.
5) You need a SimulationDriver to automatically simulate the whole process. Basically,
the driver will 1) create a question type and configure the answers; 2) configure the
question for iVote Service; 3) randomly generate a number students and the answers; 4)
submit all the students’ answers to iVote Service; 5) call the Voting Service output
function to display the result.
You should write the program in Java, and follow the important Java OOP principles we have
learned so far.
The minimum core concepts (classes) you probably need to have are:
1) Student
2) Question
3) VotingService
4) SimulationDriver
Of course, other classes, subclasses or interfaces may be needed depending on how you
design and implement the system.
SimulationDriver should contain a main() method that triggers the whole process.
You can
randomly generate the IDs and answers for a group of students to simulate the submission
process and check the results.
This programming assignment is very open.

Categories
Java

I stopped at instruction number 2.

Hello, I started the assignment but have yet to complete it. Are you able to finish for me? I stopped at Instruction number 2.

Categories
Java

the program is Netbeans ID the project name should be in java file format and

the program is Netbeans ID
the project name should be in java file format
and the project name should be LabAssign1_my last name
also, I need the code to run from my PC

Categories
Java

Must use Eclipse IDE to build this program. follow all requirements for each cla

Must use Eclipse IDE to build this program. follow all requirements for each class. check previous java class for errors( Lexer, Token, Shank). Lexer, Token, and Shank + input.txt are the first part of the project (The lexer). I have done them already, just make sure they run correctly on your computer and print the correct outputs. then you can start with the Parser part. see attached files

Categories
Java

What is Generics? Why Generics? Show example of the Generic type and Generic Ins

What is Generics?
Why Generics?
Show example of the Generic type and Generic Instantiation.
A raw type is unsafe. Show an example of avoiding unsafe raw types.

Categories
Java

Data cleansing is an important part of data integrity. Part of data cleansing is

Data cleansing is an important part of data integrity. Part of data cleansing is properly formatting data. Phone numbers are notoriously inconsistent when it comes to data formatting, so you will do cleaning phone numbers.
Using java programming language, write a function that takes a phone number in the form of a string and returns the phone number as a cleansed string. You may assume that all phone numbers will be from the US and will contain an area code. The proper output is a 10-digit number (e.g. 2345678901).
Below are examples of possible input formats:
+1 (234) 567-8901
234.567.8901
(234) 567-8901
(234)567-8901
(234)567-8901
234 567-8901
1 (234) 567-8901
12345678901

Categories
Java

1) Find a real-world information problem that you argue demonstrates one of the

1) Find a real-world information problem that you argue demonstrates one of the common growth functions in the Algorithms materials. Explain how the problem demonstrates the function.
Think about how the number of required steps of work grows as the number of data elements to work on grows.
For example, a problem with linear complexity growth means that the work steps grow just as much as the number of data elements does, while a problem with a constant time complexity problem would not grow at all as the data elements grow. If my program must add up the sum of a set of ‘n’ integers, it will require processing every one of the ‘n’ integers, in the worst case (and average case and best case,here). Also, in terms of ‘n’, if ‘n’ grows by 1, my program’s work load also grows by 1, meaning that the work load of my program in terms of n grows just like a linear mathematical function does.
2) Is there a way to solve your problem recursively? If you argue there is, briefly explain an approach. If not, explain what prevents the use of recursion.
In fact, representing the problem well is key to realizing that it can be solved recursively. As I commented in a recent lecture, I can represent my task of scoring a set of assignments (very time-consuming) as :
1) Select the first assignment ‘a’ in set ‘S’. Score ‘a’
2) Score the rest of the set S
Notice that we can repeatedly replace “Score the rest of the set S” with

1) Select the first assignment ‘a’ in set ‘S’. Score ‘a’
2) Score the rest of the set S

until there are no assignments left in S.

Categories
Java

Animal, with the String attributes name and breed. 2. Cat and Dog are subclasses

Animal, with the String attributes name and breed.
2. Cat and Dog are subclasses of Animal.
3. AnimalI, an interface declaring two methods makeSound and whatAmI.
4. Each of the three classes will implement the interface, have a constructor and a getter. I suggest using the Generate option from the Code dropdown menu to generate these “boilerplate” methods. Also, the Animal class needs a toString method.
5. Finally, a Main class that will create a Scanner object to read a text file, containing three fields, separated by commas, type, name, and breed. Depending upon the type (A, C or D), create an Animal or Cat or Dog object and store it in an ArrayList of animals.
6. After all records have been read, iterate through the ArrayList to print the animal using the toString method.
7. Don’t forget to close the text file.