This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.util.Random; | |
| public class Lab08{ | |
| public static void main(String[] args){ | |
| Random r = new Random(); | |
| String[] martin = {"***", "***", "***", "***","***"}; | |
| String[] pangloss = martin; | |
| int rugs; | |
| int martinEx = 0; | |
| int panglossEx = 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.util.Scanner; | |
| public class Assignment1Martin{ | |
| double total = 0; | |
| final double TAX_RATE = .07; | |
| final double DISCOUNT_RATE = .1; | |
| static int books = 0; | |
| static int bookmarks = 0; | |
| static int bookmarkPacks = 0; | |
| static int paintings = 0; |