i have a problem with a photocopying machine task i need to right class called photocopier and add the code to create the instance variables

powerStatus, an integer instance variable ( -1= standby, 0=Off and 1 =On)
letter, a string instance variable for (none, general, form,menu and paper)
copying a boolean instant variable
copytime a double variable representing the time of the current printing job

Any Help would be fantastic

Recommended Answers

All 6 Replies

Okay? So, what, exactly, is your problem with that?

Post your code, any and all error/compiler messages, and/or a brief description of expected vs. actual bahaviour/output.

i am very new to java and am stuck righting the code to create the instance variables?

Okay? So show what you've tried.

public class photocopier

photocopier () {

	int powerstatus( -1Standy. 0=Off and 1= ON)
	string jobType
	string paperSize
	String paperColour
	boolean copying
	double Copying

}public class photocopier

photocopier () {

	int powerstatus( -1Standy. 0=Off and 1= ON)
	string jobType
	string paperSize
	String paperColour
	boolean copying
	double Copying

}

didnt mean to copy that twice

You can do better than that. If not then start here starting with the Getting Started link.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.