Here are the questions:
if a > b is true, then which of the following is always true?
a) a = b
a < b
c) a = 10
d) a >= b
assume a is 30 and b is 20. which of the following evaulates to true?
a) a > 3 and a > b or b > 100
a > b or b > 4 or b = 10
c) a <= 10 or b > a and a not = b
d) two of these are true.
The MidWest sales region of acme computer company consists of five states- illinois, indiana, iowa, missouri, and wisconsin. About 50 percent of the regional customers reside in illinois, 20 percent in indiana, and 10 percent in each of the other three states. Suppose you have input records containing Acme customer data, including state of residence. To most efficiently select and display all customers who live in the Midwest sales region, you would ask first about residency in?
c)either iowa, missouri, or wisconsin- it does not matter which of the these three is first.
d) any of the five states- it does not matter which one is first.
Psuedocode question with a chart:
Assume you have created a mechanical robot that can perform the followng tasks:
a) stand up
c) turn left 45 degrees
d) turn right 45 degrees.
e) take a step
f) am I ( the robot) touching somthing?
place two chairs 27 feet apart, directly facing each other. Write pseudo code describing the logic that would allow the robot to start from a sitting position in one chair, cross the room, and end up sitting in the other chair.
study this complete visual basic program that uses if statement, and then answer questions:
Dim myAge As Interger = 22
Dim allowToDrink As String
Dim DrinkingAge As Interger = 21
Dim notYet As String = " You are too young to drink"
Dim DDTM As String = "Do not drink too much"
If myAge < DrinkingAge Then
allowToDrink = "No"
allowToDrink = "No"
msgBox ( ' Myage:'& myAge)
msgBox("Allow to drink:"& allowToDrink)
1) What is the exact output when this program executes?
2 )What is the exact output if the value of myage is changed to 20?
3 )What is the exact output if the expression in the if statement is changed
to myAge <= DrinkingAge
4) What is the exact output if the variable named allowToDrink is
initialized with the value " No"
The Some interest Credit Company provides loans to customers at 1.5 percent interest per month. Design an application that gets customer account data that includes an account number, customer name, and balance due. For each customer, display the account number and name; then display the customer's projected balance each month for the next 10 months. Assume that when the balance reaches $10 or less, the customer can pay off the account. At the beginning of every month, 1.5 percent interest is added to the balance, and then the customer makes a payment equal to 5 percent of the current balance. Assume the customer makes no new purchases.
Write a VISUAL BASIC program to accept numeral values of any unit, sum up the total, calculate the average, and then Output the result with a proper unit.
Requirements for processing:
(1) Tell user the purpose of the program
(2) Tell user how to stop entering data and calculate result
(3) Tell user enter the unit (such as mile, meter, pound, etc)
(4) then start a loop sequence by telling user enter value
(5) Display an end of program message
careem johnson computer help visual basic and programming.rtf (8.08K)
Number of downloads: 291