i know but my assignment say addTextbok(String id)
Type: Posts; User: aw20
i know but my assignment say addTextbok(String id)
-jGRASP exec: javac -g Bookstore.java
Bookstore.java:17: error: variable apparel is already defined in class Bookstore
private Apparel apparel;
^
Bookstore.java:64: error: no...
import java.util.List;
import java.util.ArrayList;
public class Bookstore
{
//Instance field
/**
*@param name
*@param textbooks
*@param apparel
----jGRASP exec: javac -g Bookstore.java
Bookstore.java:62: error: <identifier> expected
public void addTextbook(textbook)
^
1 error
----jGRASP wedge2:...
public void addTextboox(textbook)
{
textbooks.add(textbook);
}
i know how but i dont know how to write myself
yes i do. how to write add method and fuction for that? My assignment due tonight
addTextbook(Textbook) adds a new Textbook to the inventory of the bookstore.
buyTextbook(String id) removes a Textbook object from the list of textbooks of the Bookstore. If the id does not match...
It didn't give me an error.
Is this code right for method computeGrade() handles the conversion of the letter grade to a numeric equivalent and saves it in the instance variable numberGrade?
public void computeGrade()
{
int size = letterGrade.length();
switch(letterGrade.substring(0,1))
{
case "A": numberGrade = 0.4;break;
case "B": numberGrade = 0.3;break;
case...
ok.do you know where can I find that infrmation?
How do you use if { ... } else { ... } construction for handle the "+" and "-" modifiers?The "+" can be appended to B's, C's, and D's and increases the value of the letter grade by 0.3 points. A "-"...
My question is how can i update letterGrade and numberGrade as desricbe in instruction letter C above
1. Develop a simple grade transcript program. We will have two classes, a Course class representing an individual course that a student has taken and a Transcript class that will combine several...
move just public, not public Rectangle?
import java.util.Scanner;
/*
* Stacktrace.in
* You have a exception , we have a solution
*/
public class DrawRectange {
public static void main(String[] args) {
no I like to learn myself and use your help
You can do that? write the code for someone esle?
All i need is example of loops controls
for (int j= 3; j <= height; j++) {
}
if (i%width) == 3)
System.out.print("#####");
or
Ok
--- Update ---
What should I say in if statement for height?
Tell me what I should do?
or if (width < 1 || width >10 ?