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

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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