creating a new project called myMobile which has a class Mobile and set upthe fields that you need. Using Blue Java and Make sure that the class compiles before continuing. The information stored about each mobile phone will include its type e.g. " Sony Xperia XZ" or "Samsung Galaxy S7"; call this variable type its screen size in inches; call this variable screenSizeo you may assume that this is a whole number from the scale 3 to 5 inclusive. its memory card capacity in gigabytes; call this variable cardCapacityo you may assume that this is a whole number. the name of its present service provider; call this variable providero you may assume that this is a single line of text. the type of contract with the service provider; call this variable contractTypeo you may assume that this is a single line of text. its camera resolution in megapixels; call this variable cameraReso you should not assume that this is a whole number; the percentage charge left on the phone e.g. a fully-charged phone will have a charge of 100;call this variable percentChargeo you may assume that this is a whole number. whether the phone has GPS or not; call this variable hasGPSYour class will need to have fields corresponding to each of these attributes. Can get help with those variables codes ?
creating a new project called myMobile which has a class Mobile and set upthe fields that you need. Using Blue Java and Make sure that the class compiles before continuing.
The information stored about each mobile phone will include
its type e.g. " Sony Xperia XZ" or "Samsung Galaxy S7"; call this variable type
its screen size in inches; call this variable screenSizeo you may assume that this is a whole number from the scale 3 to 5 inclusive.
its memory card capacity in gigabytes; call this variable cardCapacityo you may assume that this is a whole number.
the name of its present service provider; call this variable providero you may assume that this is a single line of text.
the type of contract with the service provider; call this variable contractTypeo you may assume that this is a single line of text.
its camera resolution in megapixels; call this variable cameraReso you should not assume that this is a whole number;
the percentage charge left on the phone e.g. a fully-charged phone will have a charge of 100;call this variable percentChargeo you may assume that this is a whole number.
whether the phone has GPS or not; call this variable hasGPSYour class will need to have fields corresponding to each of these attributes.
Can get help with those variables codes ?
Step by step
Solved in 2 steps with 1 images