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

  Write c program ''myls'' that functions like unix command ''ls''

Write C program 'myls' that functions like unix command 'ls'.

  Which applications running in data centers are candidates

What questions wil lbe useful to investigate when deciding which applications running in data centers are candidates for migration to the cloud environment.

  Software measurement and software metrics

Explain whether the software measurement is equivalent to the software metrics? What makes them different? Explain the common software metrics which you already know, heard about or used?

  Determining stationary points of function

Determine the stationary points of function F(x)=2x_1^3-3x_1^2-6x_1 x_2 (x_1-x_2-1). Which points among these are local minima, which are local maxima, and which are neither?

  Online procurement technologies

Identify and explain two major initiatives undertaken by Australian government (at federal/ state/local government level) in order to introduce the online procurement technologies.

  Describe the function and purpose of each component

describe how the components are related to each other. For example, does the component you are describing depend on another to operate? Is it connected to the network physically or wirelessly.

  Determining the bmi

Develop a modular system which determines and display a person’s body mass index (BMI). The BMI is often used to calculate whether a person with the sedentary lifestyle is overweight or underweight for their height.

  What are the feelings positive or negative

IT administrators in small companies must often execute several functions at the same time like network administrator, database administrator, user consultant and others. Compared to their situation, their colleagues in larger companies can get mo..

  Documentation needed to support maintenance activities

Why are additional personnel generally required during the later stages of the system implementation.

  Data planning and enterprise modelling

Describe the major differences between two approaches for data planning and enterprise modelling and examine the integration? Why do these two methodologies usually produce several results?

  Describe the term tco

Describe the term TCO

  Wan technologies for mobile user-to-office

WAN technologies for each of the Wilke’s three connectivity situations: mobile user-to-office, office to office, and home-to-office.

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