#Is this correct
1 messages · Page 1 of 1 (latest)
<@&987246399047479336> please have a look, thanks.
Here is an AI assisted attempt to answer your question 🤖. Maybe it helps! In any case, a human is on the way 👍. To continue talking to the AI, you can use </chatgpt:1108714622413963314>.
Without providing the specific details of Task 1, it is difficult to determine if your statement is correct. However, if you are asking whether it is appropriate to ask for help or answers for your assignment, it is generally discouraged to seek direct solutions from others. It is important to understand and learn the concepts yourself. Instead, you can ask for guidance or clarification on specific topics related to your assignment.
So right now on the card class I have done this I am right in thinking that Right now I just need to make methods and not have them actually have to kidna work just have the methods for the futre
Future*
Or Do I need to do if they go to this bridge and make a method for each bridge or Im guessing that is later?
{
//Fields
private int Card_ID;
private String Guest_Name;
private int Luxury_Rating;
private int Credit_No;
private int Points_No;
//Constructor
public Card (int Card_ID, String Guest_Name, int Luxury_Rating, int Credit_No, int Points_No){
Card_ID = 0;
Luxury_Rating = 0;
Credit_No = 0;
Points_No = 0;
}
//Accessors
public int getCardID(){
return Card_ID;
}
public int getLuxuryRating(){
return Luxury_Rating;
}
public int getCreditNo(){
return Credit_No;
}
//Methods To add and deduct Credits
public void DeductAddCredits(int Credit_No)
{
Credit_No -= 4;
Points_No += 1;
}
public static boolean BridgeCrossing(int Luxury_Rating)
{
if (Luxury_Rating > 1){
System.out.println("Can Proceed");
}else{
System.out.println("Cannot Proceed ");
}
}
}
Detected code, here are some useful tools:
public class Card {
//Fields
private int Card_ID;
private String Guest_Name;
private int Luxury_Rating;
private int Credit_No;
private int Points_No;
//Constructor
public Card(int Card_ID, String Guest_Name, int Luxury_Rating, int Credit_No, int Points_No) {
Card_ID = 0;
Luxury_Rating = 0;
Credit_No = 0;
Points_No = 0;
}
//Accessors
public int getCardID() {
return Card_ID;
}
public int getLuxuryRating() {
return Luxury_Rating;
}
public int getCreditNo() {
return Credit_No;
}
//Methods To add and deduct Credits
public void DeductAddCredits(int Credit_No) {
Credit_No -= 4;
Points_No += 1;
}
public static boolean BridgeCrossing(int Luxury_Rating) {
if (Luxury_Rating > 1) {
System.out.println("Can Proceed");
}
else {
System.out.println("Cannot Proceed ");
}
}
}
Hi there
So you have assessment
And u did write a class as asked
Im unable to understand your question or what u want to do exactly
Can you please tell us in a more convenient way ?