Print the captured information to the screen

Assignment Help Basic Computer Science
Reference no: EM131068475

Part 1

Examine the pseudocode sample provided, and explain what it does line by line.

Description: This logic applies a discount on an item price

Program: applyDiscount

Create variable productPrice as double

Create variable discount as double

Create variable discountedPrice as double

productPrice = get value from user input

discount = get value from user input

discountedPrice = productPrice * (1 - discount)

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 capture the information for a

credit card payment.

Declare all variables and their data types.

Get user inputs for credit card information such as card number, expiration date, and CVV code from the back of the card.

Print the captured information to the screen.

Reference no: EM131068475

Questions Cloud

Consider accepting stock of a new corporation : Why would a law firm ever consider accepting stock of a new corporation having a total par value of USD 320,000 as payment in full of a USD 480,000 bill for legal services rendered? If such a transaction occurred, give the journal entry the issui..
Discuss issue related to implementation of electronic system : Discuss issues related to the implementation of electronic systems, specifically the computerized patient record. Include in your response two (2) advantages, two (2) disadvantages, one (1) issue related to lack of resources/leadership, and one (1..
Complete the course project use target corp : In your course project, you are asked to recommend an appropriate brand architecture for a company. This project will combine the skills you have learned within this course. Prior to starting, read the Brand Architecture course project description..
Shareholders in the form of a special dividend : Rose Industries has taken a 20 million loan that must be paid back by the end of the year. Unfortunately, the company and its assets will only be worth 15 million by that time.
Print the captured information to the screen : Print the captured information to the screen.
Discuss current trends in development of health information : Based on your current knowledge and the Required Readings, what do you foresee as two (2) potential advantages and two (2) potential disadvantages of the upcoming trends?
What if four hexadecimal digits are used : What if four hexadecimal digits are used?
Unrelated transactions record the journal entry : For each of the following unrelated transactions, record the journal entry that would be made by a nongovernmental, not-for-profit organization involved in medical research.
Given the following pair wise exchange rates : You are given the following pair wise exchange rates: €1 = $1.1979 and £1 = $1.3125. (Here are the same exchange rates in a different format: $1.1979/€ and $1.3125/£.) (a) Calculate the cross-rate of euros per pound. (10 points) (b) Calculate the..

Reviews

Write a Review

Basic Computer Science Questions & Answers

  A relational database model allows database users to analyze

"Relational Set Operators"Please respond to the following: A relational Database Model allows database users to analyze data thoroughly. To accomplish this, advanced commands such as UNION and INTERSECT may be used.  Describe a business scenario wher..

  Collection of currencies and exchange rates

The input is a collection of currencies and their exchange rates. Is there a sequence of exchanges that makes money instantly? For instance, if the currencies are X, Y, and Z and the exchange rate is 1 X equals 2 Ys, 1 Y equals 2 Zs, and 1 X equal..

  Determining the pounds of a mixture

A store owner wants to mix cashews and almonds. Cashews cost 2 dollars per pound and almonds cost 5 dollars per pound. He plans to sell 150 pounds of a mixture. How many pounds of each type of nuts should be mixed if the mixture will cost 3 dollar..

  What is the decryption of c = 34

What is the decryption of c = 34?

  What potential difficulty does this present

Would it be possible for a new version of XDR to switch to little-endian integer format?

  Develop a program that determines the monthly charges

Develop a program that determines the monthly charges for a checking account. the following criteria is to be used.

  Describe in details cross-site scripting

You can sketch the attack diagrams on a paper with descriptions and take a picture with your camera and submit alongside your typed contents. Diagrams don't have to be perfect.

  How the problem creates an inefficiency

Compare and contrast two (2) management information systems and indicate why the management information system would help to create added efficiency within the organization.

  Calculate and display the number of gallons of water

The application should calculate and display the number of gallons of water used and the total charge for the water. The charge is 2.05 per 1000 gallons, or 00205 per gallon. use two independent sub procedures : one to make the calculations and th..

  Cost per server

cost per server

  Long-term organizational success

Attracting and retaining the most talented employees is essential for long-term organizational success. An important component to attracting and retaining such employees is the design and implementation of an effective compensation and benefit sys..

  Assignment on ethical issues in information systems

Question 1:Summarize the issue that you have chosen. Question 2: Express your own opinion of, or position on, the issue that you have chosen. Question 3: Identify two to three (2-3) human and technological protective measures that you would use as ..

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