Reference no: EM131073416
Part 1
Examine the pseudocode sample provided, and explain what it does line by line.
Description: This logic applies a discount on an item unless the discounted price is less than the whole sale price
Program: applyDiscount
Create variable productPrice as double
Create variable discount as double
Create variable wholesalePrice as double
Create variable discountedPrice as double
productPrice = get value from user input
discount = get value from user input
wholesalePrice = get value from user input
discountedPrice = productPrice * (1 - discount)
if (discountedPrice
discountedPrice = wholesalePrice
end if
Display discountedPrice
End program
Part 2
Present a solution using pseudocode similar to what you saw in part 1 to identify the logic needed to select a payment option and get payment details.
Declare all variables and their data types.
Display two options for the user to select from:
Electronic check with routing number and account number
Credit card with account number, expiration date and CVV code
Capture the payment option that the user selects.
Check the selected option using a decision-making statement and provide the corresponding statements to capture the payment information based on the selection.
How you might overcome your weaknesses
: Using what you know about a philosophy statement and the information you learned from your self-assessments, self-reflection, feedback from others, and your general self-knowledge, you will produce a first person professional philosophy statement ..
|
Calculate the impact of the exhibit on company profit
: Infinity Designs, an interior design company, has experienced a drop in business due to an increase in interest rates and a corresponding slowdown in remodeling projects. To stimulate business, the company is considering exhibiting at the Home and Ga..
|
Service department cost allocated to production department
: Motorcade Company has three service departments (S1, S2, and S3) and two production departments (P1 and P2). The following data relate to Motorcade's allocation of service department costs: The number of employees is used as the allocation base for a..
|
Problem regarding the leadership and motivation
: You were recently appointed as a new manager. You face a number of issues in your new position. Please address each. The previous manager used a transactional leadership approach, which has been relatively ineffective. Evaluate one leadership sty..
|
Identify the logic needed to select a payment option
: Examine the pseudocode sample provided, and explain what it does line by line.
|
Methods of improving both by analyzing customer needs
: Given the importance of customer satisfaction and loyalty, apply methods of improving both by analyzing customer needs, gathering customer information, using surveys, complaint resolution, and customer relationship management.
|
What should be the price of the stock today
: Namath Corporation's stock is expected to pay a dividend of $1.25 at the end of the year. The dividend is expected to grow by 20% for each of the following two years, and then at a constant rate of 8% per year, thereafter. The stock has a required re..
|
The dividend is expected to grow at constant rate
: A company just paid a $2 per share dividend on its common stock (D0=$2.00). the dividend is expected to grow at a constant rate of 7 percent per year. the stock currently sells for $42 a share. if the company issues additional stock, it must pay its ..
|
Model links to customer expectations
: The customer is always right." Do you agree or disagree with this statement? Support your answer with examples of how quality should be defined and how the Kano model links to customer expectations.
|