Write pseudocode to implement this reusable code

Assignment Help Computer Engineering
Reference no: EM1329286

You realize that the code you had created can be reused for many other purposes for future programs. You decide to create a library for your reusable code. Using the pseudocode for the program, you identify the aspects of the program that can be reusable and write/rewrite it so it can be reused. You rewrite your pseudocode to implement this reusable code.

This is my code, how would I rewrite it?

Program Name { //begin of program

Procedure TrackPayment {

if amount_received < billing_amount then
amount_owing = billing_amount - amount_received

if date_payment_received > thirty_days then
late_fee_amount = late_charge_rate * billing_amount

account_balance = account_balance + amount_owing + late_fee_amount

}

Procedure CalculateInvoice {

if client_type = regular then
billing_amount = regular_price
else
billing_amount = regular_price - (service_price * discount_rate)

billing_amount = billing_amount + account_balance
}

Procedure PrintInvoice {

print client_name
print client_mailing_address
print invoice_number
print invoice_date
print billing_date
print billing_amount
print billing_period
}

begin main ( ) {
do TrackPayment
do CalculateInvoice
do PrintInvoice
}

} //end of program

Reference no: EM1329286

Questions Cloud

Graph the demand for wheat and the supply of wheat : Graph the demand for wheat and the supply of wheat. Be sure to label the axes of your graph correctly. Label equilibrium price P and equilibrium quantity Q
Write down english narrative that converts currency : Using the C compiler, write down a C program that contains your narrative from broken down into one line sentences, that have been commented out.
Information about interest and time value of money : You spend $250 in your savings account at the end of each year and earn an average of 6% per year in interest. How much will you have in your savings account at the end of forty years?
Show the production and operations management : Production and Operations Management: change, supply chain, decisions, applications - Write a short essay explaining what you have learned from this course, what aspects of the course benefited you the most
Write pseudocode to implement this reusable code : You realize that the code you had created can be reused for varios other purposes for future programs. You decide to create a library for your reusable code.
Gap between knowledge-skills needed to public health worker : Is there a gap between the knowledge/skills/abilities needed to be a public health worker and the skills needed to be a public health administrator?
Difference between simple and compound interest : What is the difference between "simple" and "compound" interest? What are some of the uses of compound interest in business?
Description of supply and demand simulation : Description of Supply and Demand Simulation - What has happened to the price of the substitutes and complementary goods/services for your selected product over the last year?
Different constitutional issues : What are the main provisions of the 8th Amendment?

Reviews

Write a Review

Computer Engineering Questions & Answers

  Exploring web for security education

Explore the Web for security education and the training programs within your area. Keep down a list and examine which of the category has most examples.

  Discuss the tester and developer relationship

Discuss the tester and developer relationship within spiral development methodology. You may use your personal experiences to support the arguments.

  What are the advantages and disadvantages of approach

consider whether or not the same people who develop the software should be tasked with maintaining it or whether or not a separate group must be tasked with development of software and separate group with maintaining it.

  A system that calculates and returns the mean and a method

A system that calculates and returns the mean and a method

  Forming a report which show employee information

Form a report that show the employee information, show on the form you generated in 1) above. The report should display this information for all the users, sorted alphabetically in the ascending order by LastName.

  Write a function that creates a cell and structure array

Write a function that creates a cell and structure array.

  Explain to a-company might set up auditing

define to A-Companyy how they might create a security template and some useful settings. What security suggestions do you have to secure communications from Human Resources server to the Payroll server.

  Generating the program from the given structure

struct info student[500]; Utilizing the provided structure above, generate the program statements.

  Electrical or magnetic field that the nervous system produce

activation of the brain is measured by electrophysiological techniques using an electrical or magnetic field that the nervous system produces. These types of measures include may include magneto-encephalography (MEG) or electroencephalography (EEG..

  Determining the vulnerability in product

Specify the ethical considerations included when the security professional contacts the vendor regarding vulnerability in their product.

  The acme corporation is looking to rapidly advance

This solution provides the learner with an understanding of how best to accomplish the task. This solution is comprised of over 2000 words of text with 4 references.

  Capability maturity model (cmm) is in software development

For each level in your model, desribe how toidentify the maturity level and what steps are necessary to move to the next level. For each level, specify needs for relevant quality standards and quality management.

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