Question

Java program. Please make it user friendly output; Create a software, a program that will tell...

Java program. Please make it user friendly output;

Create a software, a program that will tell input to build a computer, the computer can be a desktop or laptop. The desktop variables are case size, processor brand and speed, hard drive size, RAM size, display monitor size, video output e.g. HDMI, also let the user have an option of upgraded software if needed. When it comes to laptop goes for the same thing, like CPU, RAM size, capacity of hard drive, the inch view etc. Let it have the option to be tablet or not. The program should be able to store as much as transaction of building PCs or Laptop. For instances, the user can go and see what they build but the manager can check all the transaction. The program has to have at least one part of Aggregation, composition, inheritance, polymorphism, Exception handing (try and catch).

0 0
Add a comment Improve this question Transcribed image text
Answer #1

hi I am providing the solution the above problem using NetBeans IDE

Along with output screenshot

Note:In my code i have used Log4J class to show output in logs folder

if you have log4J folder u can use otherwise just comment it.

package com.in.HomeworkLibTasks;

import org.apache.log4j.Logger;

/**
*
* @author DELL
*/
public class ComputerConfiguration {
  
private static final Logger LOGGER = Logger.getLogger(ComputerConfiguration.class.getName());

/**
* starts execution from here.
*
* @param args
*/
public static void main(String[] args) {
try {
//to get all the input parameters of computer
for (Object property : System.getProperties().keySet()) {

//to show each and every parameter in string format on console.
System.out.println(property + " - " + System.getProperty(property.toString()));
//to show each and every parameter in string format in LOGGER.
LOGGER.info("<<Property Information>>" + property + " - " + System.getProperty(property.toString()));
}
} catch (Exception exception) {
LOGGER.error("Exception while feting device details..." + exception.getMessage());
}
}
}

Sample Output:-

=============

run:
java.runtime.name - Java(TM) SE Runtime Environment
sun.boot.library.path - C:\Program Files\Java\jdk1.8.0_111\jre\bin
log4j:WARN No appenders could be found for logger (com.in.HomeworkLibTasks.ComputerConfiguration).
java.vm.version - 25.111-b14
java.vm.vendor - Oracle Corporation
log4j:WARN Please initialize the log4j system properly.
java.vendor.url - http://java.oracle.com/
path.separator - ;
java.vm.name - Java HotSpot(TM) 64-Bit Server VM
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
file.encoding.pkg - sun.io
user.country - IN
user.script -
sun.java.launcher - SUN_STANDARD
sun.os.patch.level -
java.vm.specification.name - Java Virtual Machine Specification
user.dir - F:\CheggApps-Java\CheggApplications
java.runtime.version - 1.8.0_111-b14
java.awt.graphicsenv - sun.awt.Win32GraphicsEnvironment
java.endorsed.dirs - C:\Program Files\Java\jdk1.8.0_111\jre\lib\endorsed
os.arch - amd64
java.io.tmpdir - C:\Users\DELL\AppData\Local\Temp\
line.separator -

java.vm.specification.vendor - Oracle Corporation
user.variant -
os.name - Windows 10
sun.jnu.encoding - Cp1252
java.library.path - C:\Program Files\Java\jdk1.8.0_111\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Users\DELL\AppData\Local\Microsoft\WindowsApps;;.
java.specification.name - Java Platform API Specification
java.class.version - 52.0
sun.management.compiler - HotSpot 64-Bit Tiered Compilers
os.version - 10.0
user.home - C:\Users\DELL
user.timezone -
java.awt.printerjob - sun.awt.windows.WPrinterJob
file.encoding - UTF-8
java.specification.version - 1.8
java.class.path - F:\CheggApps-Java\CheggApplications\lib\log4j-1.2.17.jar;F:\CheggApps-Java\CheggApplications\build\classes
user.name - DELL
java.vm.specification.version - 1.8
sun.java.command - com.in.HomeworkLibTasks.ComputerConfiguration
java.home - C:\Program Files\Java\jdk1.8.0_111\jre
sun.arch.data.model - 64
user.language - en
java.specification.vendor - Oracle Corporation
awt.toolkit - sun.awt.windows.WToolkit
java.vm.info - mixed mode
java.version - 1.8.0_111
java.ext.dirs - C:\Program Files\Java\jdk1.8.0_111\jre\lib\ext;C:\Windows\Sun\Java\lib\ext
sun.boot.class.path - C:\Program Files\Java\jdk1.8.0_111\jre\lib\resources.jar;C:\Program Files\Java\jdk1.8.0_111\jre\lib\rt.jar;C:\Program Files\Java\jdk1.8.0_111\jre\lib\sunrsasign.jar;C:\Program Files\Java\jdk1.8.0_111\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.8.0_111\jre\lib\jce.jar;C:\Program Files\Java\jdk1.8.0_111\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.8.0_111\jre\lib\jfr.jar;C:\Program Files\Java\jdk1.8.0_111\jre\classes
java.vendor - Oracle Corporation
file.separator - \
java.vendor.url.bug - http://bugreport.sun.com/bugreport/
sun.io.unicode.encoding - UnicodeLittle
sun.cpu.endian - little
sun.desktop - windows
sun.cpu.isalist - amd64
BUILD SUCCESSFUL (total time: 0 seconds)

File Edit View Navigate Source Refactor Run Debug Profile Team Tools Window Help <default config> Y TE . Navigator 6 Start Pa

Add a comment
Know the answer?
Add Answer to:
Java program. Please make it user friendly output; Create a software, a program that will tell...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • write a C++ program using classes, friend functions and overloaded operators. Computer class: Design a computer...

    write a C++ program using classes, friend functions and overloaded operators. Computer class: Design a computer class (Computer) that describes a computer object. A computer has the following properties: Amount of Ram in GB (examples: 8, 16), defaults to 8. Hard drive size in GB (examples: 500, 1000), defaults to 500. Speed in GHz (examples: 1.6, 2.4), defaults to 1.6. Type (laptop, desktop), defaults to "desktop" Provide the following functions for the class: A default constructor (constructor with no parameters)...

  • Java ITS Software Tracking System

    Write a java program to maintain lab, pc, software and search and also able to export the record to html file.ABC ITS SOFTWARE TRACKING SYSTEM1-> Lab Maintenance2-> PC Maintenance3-> Software Maintenance4-> Search5-> Export to HTML fileOption:In the Lab Maintenance option, ITS staff can do the following tasks:Create a new lab profileModify existing lab profileAssign an existing PC to the lab. This part is based on student creativity. You may list down all the PC from the system with running numbers....

  • Please include comments in java Create a command line program that can be used for computer...

    Please include comments in java Create a command line program that can be used for computer inventory purposes Create a super class that will store the following data: CPU speed Amount of RAM Hard Disk size Operating System Allow the user to enter data using any units of measurement they desire (i.e. - 500GB or 1TB for hard disk size). Create a class that inherits from the previous class and stores information for a Windows based computer. Store the following...

  • SOFTWARE PATTERNS HOMEWORK

    Given the following requirement:An online computer hardware shop wants to allow its users to build their desired computers.Users of the application can pick several hardware parts and build their computers fromscratch and get an estimated price. Computers should be composed of a motherboard, aRAM, a CPU, one or more GPUs, one or more storage units (HDDs, SSDs), a PSU, andmultiple peripherals for the interaction with the computer (mouse, keyboard, screen, etc.).All of these components should have a price. You can...

  • 1. The content of a file is detertairned nived by the software program used to create...

    1. The content of a file is detertairned nived by the software program used to create the file and the data you the enter a. True b. False 2. Data interpretation refers to the form in which data is stored, processed, output, and transmitted. a. True b. False 3. You cannot use the number 3 in the binary system. a. True b. False 4. The coding scheme used by a computer depends on whether the data is numeric or character...

  • Please write it in Java language 2. (Myinterface.java) The program description below was found waaaaay back...

    Please write it in Java language 2. (Myinterface.java) The program description below was found waaaaay back in the archives of the Equinox history database. It is the specification for a simply "computer store storefront". Even though computer stores are now extinct, you find the idea charming and decide to use the specification as inspiration to write an interface for one of the Equinox systems. Read carefully: write your own GUI for one of the Equinox systems, drawing inspiration from the...

  • In Python and in one file please. (Simple functions with an expressions) Create a function called...

    In Python and in one file please. (Simple functions with an expressions) Create a function called load_inventory(filename). The filename argument in this case specifies the name of a file that contains all the inventory/product information for the store, including product names, descriptions, prices, and stock levels. This function should clear any information already in the product list (i.e., a fresh start) and then re-initialize the product list using the file specified by the filename argument. You can structure your file...

  • In Python and in one file please. (Simple functions with an expressions) Create a function called load_inventory(filenam...

    In Python and in one file please. (Simple functions with an expressions) Create a function called load_inventory(filename). The filename argument in this case specifies the name of a file that contains all the inventory/product information for the store, including product names, descriptions, prices, and stock levels. This function should clear any information already in the product list (i.e., a fresh start) and then re-initialize the product list using the file specified by the filename argument. You can structure your file...

  • *Java* Given the attached Question class and quiz text, write a driver program to input the...

    *Java* Given the attached Question class and quiz text, write a driver program to input the questions from the text file, print each quiz question, input the character for the answer, and, after all questions, report the results. Write a Quiz class for the driver, with a main method. There should be a Scanner field for the input file, a field for the array of Questions (initialized to 100 possible questions), and an int field for the actual number of...

  • (2 bookmarks) In JAVA You have been asked to write a program that can manage candidates...

    (2 bookmarks) In JAVA You have been asked to write a program that can manage candidates for an upcoming election. This program needs to allow the user to enter candidates and then record votes as they come in and then calculate results and determine the winner. This program will have three classes: Candidate, Results and ElectionApp Candidate Class: This class records the information for each candidate that is running for office. Instance variables: first name last name office they are...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT