
Java programming please type the code thanks
This problem set will test your knowledge of System I/O, variable assignment, flow control, and loops. Your task is to create several different java classes (.java files) that will produce a specific output based on the user input. All input will be given to you either as a command-line argument or typed in from the keyboard.
Below you will find directions for each class you need to create. Please make sure that the class name and java file name match the name
ReverseInput
This application accepts user input from the console and then prints the reverse of the user input to the console. The last string that this program should print is the reverse user input.
WaitForCorrectWord
This application will be passed a single word in its command-line argument array. It will expect the user to type in this word. Then it should wait for the user to type the word in. If the user types in a word that does not match the word it was initially given, the application should print a single line message saying "the input was incorrect" and then wait for the user to try again. The application should repeat this process an indefinite amount of times until the user types the correct value. When the user types in the correct word the application should print "the input was correct" then quit.
PrintMathResult
Write an application that will wait for three user inputted values in the following order:
- a string operation which will be one of the following ('+', '-', '*', '/')
- an integer
- an integer
Once the user inputs the three values, it is supposed to perform the given operation (The first inputted value) on the numeric values (The second and third inputted values) and print the result to the console. This application should not print any other text to the console other than the result of the mathematical operation. The last string that this program should print is the result of the mathematical calculation.

Trending nowThis is a popular solution!
Step by stepSolved in 9 steps with 3 images

- ln OOP perspective, it is nothing but an instance of a class that contains real values instead of variables.A.MethodB.VariableC.ClassD.Objectarrow_forwardUsing a gui in java please create a tic tac toe game. Player can verse player or computer (buttons) Please create one the program using JFrame implements action listener More requirements belowarrow_forward4arrow_forward
- It is a Java convention to start the name of a Java class with a capital letter. True False Question 5arrow_forwardjava languageSchedule the People classIn main file, create an object of class PeopleMake the showPeople method callarrow_forwardThe Object data type (and those related to it like Function and Date) is the only JavaScript data type that has methods. True or False (Include valid reason)arrow_forward
- is the term describing the process of changing someone from one class to another.arrow_forwardIn terms of programming, it is preferable to have a deeper level of access rather than a shallower level of access; consequently, you should not base your decision just on how well something runs.arrow_forwardISP-Java Taking what you learned over the last 8 weeks, it is now your turn to create a program of your choosing. If you are not sure where to begin, think of a task that you repeat often in your major that would benefit from a program. For example, chemistry unit conversions, finding the area for geometric shapes, etc. You can also create an interactive story that changes based on the user input/decisions. The possibilities are endless. The program must include instructions for the user. Be in the mindset that the program you develop will be used by anyone. You will not receive any assistance from the instructor. It is up to you to figure out your program. Your program must include (but not limited to) the following: • Comments • Input(s) and output(s) • Decision structures • Loops Be as creative as possible!arrow_forward
- Portfolio Instructions: You are working for a financial advisor who creates portfolios of financial securities for his clients. A portfolio is a conglomeration of various financial assets, such as stocks and bonds, that together create a balanced collection of investments. When the financial advisor makes a purchase of securities on behalf of a client, a single transaction can include multiple shares of stock or multiple bonds. It is your job to create an object-oriented application that will allow the financial advisor to maintain the portfolios for his/her clients. You will need to create several classes to maintain this information: Security, Stock, Bond, Portfolio, and Date. The characteristics of stocks and bonds in a portfolio are shown below: Stocks: Bonds: Purchase date (Date) Purchase date (Date) Purchase price (double)…arrow_forwardObjectives: Use Javadocs to document a class and methods Design and write a Java class Use fields (instance variables) Write multiple constructors Write accessor methods Write mutator methods Use the this keyword Use string concatenation Round floating point numbers (using Math.round()) Use a Scanner object Description ProduceItem class For this project, you get to design and write a ProduceItem class that stores a description, cost and weight as fields. Include both a constructor without any parameters and one with parameters for the description (String), cost (double) and weight (double) (in that order). For the constructor without parameters, set the description to an empty string, the cost to 0.0 and the weight to 0.0. Include appropriate accessor and mutator methods (and label them with comments including the terms "accessor" or "mutator"). So that the test cases compile, name the accessor methods: getDescription() getCost() getWeight() Additionally, name the mutator methods:…arrow_forwardWhat special characters are used by code containers like namespaces, classes, and methods?arrow_forward
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education





