

If (items = minvalue1 & csuid = minvalue2 & csuid = minvalue3 & csuid <= maxvalue3) ("Please enter how many items you are going to purchase.") Right now im only working with the first for loop so entering 40000 will do the trick to get to the sum ive been trying to work with. I'm not asking for someone to do the program for me so I can turn it in as given to me but merely help figuring out methods possibly, and especially getting it to output a gross total ill be able to figure out the discounts and everything else The array doesn't output that right number it outputs the default value of the word.ĪLSO bonus points will be given in class if I use methods but I'm not entirely comfortable with them yet so I figured I would try to stick to what I know. I've discovered however that even though I assigned the values of the variables as doubles. In my head I'm trying to store the entered names into arrays then add the sum of the entered names together. I'm looking for a more simple way other then using if statements for every item entered. Your program should validate the CSU Viking card ID and compute the gross and net total (after including the discount rate).Īll the data I entered was given to me so no need to worry about that. Write a program that allows the user to enter the items they’d like to purchase. A list of items and their prices will be given on the next page. Each member of CSU is allowed to purchase 1-10 items from the bookstore with varying discount rates. This program is an assignment that I was given in my intro to Java class.Ĭleveland state university issues Viking card for staffs, faculty and students.
