Modify the pseudocode and optimize it.

Assignment Help Programming Languages
Reference no: EM13947585

Easy Credit evaluates the credit limit of people based on their income and past credit limits. Based on these inputs, calculations are performed to ascertain the credit worthiness of the customer. The following is a pseudocode that will help them automate the system of checking the credit worthiness and then printing out the results so that Easy Credit's manager can make a decision on the limit to be given to the customer:

start

read Customer_Name
perform Calculate_SafetyLevel()
perform Evaluate_History()
print Customer_Name
print 'Credit History of' Client_Name 'is' History
print 'Safety Level of' Client_Name 'is' Safety_Level

stop

Calculate_SafetyLevel()

read Customer_Income
if Customer_Income >= $5000

Safety_Level = Excellent

elseif Customer_Income >= $3000

Safety_Level = Good

elseif Customer_Income >= $1500

Safety_Level = Ok

endif

return

Evaluate_History()

read Customer_History

if Customer_History = Clean

History = Good

elseif Customer_History = Pending_Balance

History = OK

elseif Customer_History = Defaulted

History = Risky

endif

return

* Modify the pseudocode and optimize it.

*Provide valid reasons why the pseudocode is now more efficient.

Reference no: EM13947585

Questions Cloud

Briefly describe the situation inside your company : Briefly describe the situation inside your company, in terms of the use of such systems, and discuss whether it can be characterized as a learning organization.
Determine the convection heat flux : You've experienced convection cooling if you've ever extended your hand out the window of a moving vehi- cle or into a flowing water stream. With the surface of your hand at a temperature of 30°C, determine the convection heat flux for (a) a vehic..
What is the expected return of a portfolio that consist : Suppose autodesk stock has a beta of 2.5, whereas Costco stock has a beta of 0.76. If the risk-free interest rate is 6.5% and the expected return of the market portfolio is 13.5%, what is the expected return of a portfolio that consist of 70% autodes..
Write a function bucketsort that takes an integer array and : A bucket sort begins with an one dimensional array of positive integers to be sorted, and a two dimensional array of integers with rows subscripted from 0 to 9 and columns subscripted from 0 to n - 1 where n is the number of values in the array to be..
Modify the pseudocode and optimize it. : Provide valid reasons why the pseudocode is now more efficient.
Discuss and evaluate the amount of protein consumed : Compare the number of calories consumed with the number of calories needed as determined by the patient's activity level. Discuss/evaluate the amount of protein consumed. Discuss/evaluate the amount of carbohydrate consumed-simple, complex and fiber
What about very large increases in its debt ratio : If the chosen firm attempts to grow faster than its sustainable growth rate with modest increases in its debt ratio, how will this likely affect its WACC? What about very large increases in its debt ratio? Explain.
Remote mine are for labor and transportation : Two costs of construction of a small, remote mine are for labor and transportation. Labor costs are expected to be $130,000 the first year, with inflation of 6% annually for 4 years. Unit transportation costs are expected to inflate at 5% annually, b..
Under the straight-line and double-declining balance method : Assume that a firm buys a depreciable asset for $6 million and its salvage value is $0 after a depreciable life of 12 years. Using the SLN and DDB functions, determine the depreciation expense for each of the 12 years under the straight-line (SLN) an..

Reviews

Write a Review

Programming Languages Questions & Answers

  Program to overload addition operator

The class should also provide the following overloaded operator capabilities: Overload the addition operator (+) to add two Polynomials.

  Write down a program which asks user to type of series of

write a program that asks user to type of series of positive integers. when the user types a negative value the program

  Develop a functional web-based application for a calculator

Develop a functional web-based application for a calculator. It does not need to be live; you can provide JavaScript, CSS, and HTML files. The calculator should successfully complete addition, subtraction, multiplication, and division operations.

  Decisions & conditions

Decisions & Conditions

  Compute service charge customer owes for writing bad check

Create the output and sketch the flowchart or write pseudocode for program which computes service charge a customer owes for writing bad check.

  Write down a program to input widths of both hallways

Write down a program which prompts user to input widths of both hallways. The program then outputs length of longest pipe.

  Create unix shell script to input number of hours worked

Create a Unix shell script to input number of hours worked and pay rate and compute the total pay, then the social security amount (assume 5%), then the net pay.

  Explain a script namedmyfind.sh that performs a subset

Write a script namedmyfind.sh that performs a subset of the find command. Your script must handle the following options:-name, -type, -newer, -maxdepth, -mindepth, and-exec

  Identify a list of function/menus that need to be test

The task is to use Equivalence Class partitioning and Boundary Value Analysis (which means to test the input at the boundary of the equivalence class partition) to analyze the valid and invalid inputs for Microsoft WinWord or any other software pa..

  Determine the total resistance of a number of resistors

Prepare a function that will determine the total resistance of a number of resistors that are connected in parallel.

  You are an analyst for a large public pension fund and you

you are an analyst for a large public pension fund and you have been assigned the task of evaluating 2 different

  Write program for user to perform arithmetic operations

Write a program that lets the user perform arithmetic operations on fractions. Fractions are of the form a/b, where a and b are integers and b is not equal to 0.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd