1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
BlackZzzverrR [31]
4 years ago
5

Write a class encapsulating a PC-based game in the package com.labs.lab6.games , which inherits from Game . A PC-based game has

the following additional attributes: the minimum megabytes of RAM needed to play the game, the number of MB needed on the hard drive to install the game, and the minimum GHz performance of the CPU. Code the constructor and the toString method of the new class. You also need to include a client class to test your code.
Computers and Technology
1 answer:
Lemur [1.5K]4 years ago
8 0

Answer:

Java.

Explanation:

class PC-game extends Game {

   int minRAM;

   int minDiskSpace;

   float minProcessorSpeed;

   //////////////////////////////////////////////////////////////////////////////////////////////////

   public PC-game(int minRam, minDiskSpace, minProcessorSpeed) {

       this.minRam = minRam;

       this.minDiskSpace = minDiskSpace;

       this.minProcessorSpeed = minProcessorSpeed;

   }

   public String toString() {  

       return "Ram megabytes: " + minRam + ", Disk Space MB: " + minDiskSpace + ", Processor GHz: " + minProcessorSpeed;

   }

   //////////////////////////////////////////////////////////////////////////////////////////////////

   public static void main(String[] args) {

       PC-game pcGame1 = new PC-game(512, 2000, 2.3);

       System.out.println(pcGame1);

   }

}

You might be interested in
What is booting as used in computers?​
Sliva [168]

Answer:

the startup process

Explanation:

5 0
3 years ago
Read 2 more answers
A Windows user contacted the help desk with a problem that requires the technician to connect to the remote computer using Remot
djverab [1.8K]

Answer:

RDP port 3389 .

Explanation:

A Windows user has informed the helpdesk with such an issue that requires the operator to link to the remote server through Remote Assistance to access the user's screen with a very comprehensive and ambiguous error message. Almost any attempt made by the operator to link to the remote access concludes in a message that says that the connection has been denied. To make this link, the following protocol and the port number combinations must be enabled on the firewall of the remote connection.

6 0
4 years ago
Which version of Windows was considered an operating environment rather than an operating system?
maksim [4K]
The answer is A. Windows 1.O
4 0
4 years ago
To copy the formatting of selected text to another place in the document use _____.
ANEK [815]
To copy the formatting of selected text to another place in the document use the paintbrush AKA. Format painter
7 0
4 years ago
What's the component of the hardware?​
melisa1 [442]
Some component of the hardware are central processing unit (CPU), monitor, mouse, keyboard, computer data storage, graphics card, sound card, speakers and motherboard.

I’m sure theirs more but here’s so. Hope this helps!
7 0
3 years ago
Read 2 more answers
Other questions:
  • When pasting an object which has been copied from a different slide, where on the slide does the object paste, assuming nothing
    15·1 answer
  • Which of the following expansion ports would be used to enable transfer of power, data, and video to peripheral devices on an Ap
    7·1 answer
  • To configure a router / modem, what type of IP interface configuration should you apply to the computer you are using?
    8·1 answer
  • What defines "print media"? It is media that includes words and text rather than video, such as many blogs. It is media that is
    8·1 answer
  • You manage a small LAN for a branch office. The branch office has three file servers and few client workstations. You want to us
    14·1 answer
  • A program is run line by line to determine the source of a logic error. Which best describes the specific tool being used?
    11·2 answers
  • What does the -pwd switch do? how can you make dsadd bring up a prompt asking for the users password?
    10·1 answer
  • What are benefits of virtualizing servers ?
    5·1 answer
  • In theory, a hacker with a small but powerful directional antenna could access a wireless network from more than one mile away.
    7·1 answer
  • Ncomputing and thin client<br>what it is <br>why is done , how it works and how it's <br> done ​
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!