A Bagels store charges 75 cents per bagel for orders of less than a half-dozen bagels and 60 cents per bagel for orders of a half-dozen or more. Assume that the number of bagels ordered has been stored in a variable named NumBagels. Write VB code that calculates and stores the total cost in a variable named Cost. Make sure to declare all variables used.

2 answers

for Visual basic 2012 programming by the way
Write a Boolean valued Function that takes two student grades and returns True if the average is greater than or equal to 90 and False otherwise. Write a VB statement that calls the function and displays in a MessageBox whether or not the student grade is an A average.