Posts Tagged ‘Visual Basic’
Given the variables costOfBusRental and maxBusRiders, write an expression corresponding to the cost per rider (assuming the bus is full).
LANGUAGE: Visual Basic CHALLENGE: Given the variables costOfBusRental and maxBusRiders, write an expression corresponding to the cost per rider (assuming the bus is full).
Read MoreYou are given two variables, already declared and assigned values, one of type double, named price, containing the price of an order, and the other of type int, named totalNumber, containing the number of orders.
LANGUAGE: Visual Basic CHALLENGE: You are given two variables, already declared and assigned values, one of type double, named price, containing the price of an order, and the other of type int, named totalNumber, containing the number of orders. Write an expression that calculates the total price for all orders.
Read MoreYou are given two variables, already declared and assigned values, one of type double, named totalWeight, containing the weight of a shipment, and the other of type int, named quantity, containing the number of items in the shipment.
LANGUAGE: Visual Basic CHALLENGE: You are given two variables, already declared and assigned values, one of type double, named totalWeight, containing the weight of a shipment, and the other of type int, named quantity, containing the number of items in the shipment. Write an expression that calculates the weight of one item.
Read MoreYou are given two double variables, already declared and assigned values, named totalWeight, containing the weight of a shipment, and weightOfBox, containing the weight of the box in which a product is shipped.
LANGUAGE: Visual Basic CHALLENGE: You are given two double variables, already declared and assigned values, named totalWeight, containing the weight of a shipment, and weightOfBox, containing the weight of the box in which a product is shipped. Write an expression that calculates the net weight of the product.
Read MoreWrite an expression that computes the difference of two double variables salesSummer and salesSpring, which have been already declared and assigned values.
LANGUAGE: Visual Basic CHALLENGE: Write an expression that computes the difference of two double variables salesSummer and salesSpring, which have been already declared and assigned values.
Read MoreA wall has been built with two pieces of sheetrock, a smaller one and a larger one. The length of the smaller one is stored in the variable small.
LANGUAGE: Visual Basic CHALLENGE: A wall has been built with two pieces of sheetrock, a smaller one and a larger one. The length of the smaller one is stored in the variable small. Siumilarly, the length of the larger one is stored int he variable large. Write a single expression whose value is the length…
Read MoreGiven the variable pricePerCase, write an expression corresponding to the price of a dozen cases.
LANGUAGE: Visual Basic CHALLENGE: Given the variable pricePerCase, write an expression corresponding to the price of a dozen cases.
Read MoreGiven the variables fullAdmissionPrice and discountAmount (already declared and assigned values), write an expression corresponding to the price of a discount admission.
LANGUAGE: Visual Basic CHALLENGE: Given the variables fullAdmissionPrice and discountAmount (already declared and assigned values), write an expression corresponding to the price of a discount admission. (The variable discountAmount holds the actual amount discounted, not a percentage.)
Read MoreWrite an expression that computes the difference of the variables endingTime and startingTime.
LANGUAGE: Visual Basic CHALLENGE: Write an expression that computes the difference of the variables endingTime and startingTime.
Read MoreWrite an expression that computes the difference of the variables endingTime and startingTime.
LANGUAGE: Visual Basic CHALLENGE: Write an expression that computes the difference of the variables endingTime and startingTime.
Read MoreAssume an int variable x has already been declared. Write an expression whose value is 1 more than x.
LANGUAGE: Visual Basic CHALLENGE: Assume an int variable x has already been declared. Write an expression whose value is 1 more than x.
Read MoreGiven the variables taxablePurchases and taxFreePurchases (already declared and assigned values), write an expression corresponding to the total amount purchased.
LANGUAGE: Visual Basic CHALLENGE: Given the variables taxablePurchases and taxFreePurchases (already declared and assigned values), write an expression corresponding to the total amount purchased.
Read More