What values should the computer provide as output

Assignment Help Basic Computer Science
Reference no: EM13952830

1. Simulate the execution of this algorithm, assuming the following values are read as input for the first four variables named.

name

Mrs. Blue Rain

item

shoes

qty

10 pairs

price

$1000 per pair

Total cost

 

discount

 

subtotal

 

taxes

 

Final bill

 

What values should the computer provide as output?

2. The computer is to read values for regular hours, overtime hours, and hourly wage rate for one employee from an employee time sheet.  Payment for regular hours is to be computed as rate times hours. Payment for overtime hours is to be computed at time and a half, or 1.5 times rate times hours. The computer is to compute and output the total pay for the employee for the week. Construct a program flowchart for this application. 

3.  Draw a program flowchart for a program that will accept one number as input. Assume this number represents some amount of yards. Compute the corresponding values of feet and inches, and output all three values - that is, yards, feet, and inches. 

4. Write a program flowchart and corresponding pseudo code to prepare a tuition bill. The input will contain the student name, social security number, and total number of credits for which the student has enrolled. The bill will contain the student name, social security number, and computed tuition. Total credits of 10 or more indicate that the student is full-time. Full-time students pay a flat rate of $1000.00 for tuition. Total credits of less than 10 indicate that the student is part-time. Part-time students pay $100.00 per credit for tuition. 

5. Write a partial flowchart (show nested logic only) and partial pseudo code (show corresponding code for partial flowchart) for the following scenario:

a. An ATM machine provides the User with the following options:-

- If transaction code is "D" then the Deposit process is done

- if transaction code is "W" then the Withdrawal process is done

- if transaction code is "B" then the Balance process is done

- and if the transaction code is "E" then the Exit process is done

Any other option would result is an error code/message at the screen.

Use a nested IFTHENELSE control structure only.

b. Reconsider the example above and create a partial flowchart and pseudo code using the CASE Control Structure.

c. Which Control Structure do you think is more effective and why?

Reference no: EM13952830

Questions Cloud

What are prime costs and conversion costs : What are prime costs and conversion costs? What is the difference between total manufacturing costs incurred and the cost of goods manufactured?
What the value of having an effective jha in this instance : Specific questions to be answered: How/can a lack or ineffective job hazard identification be causal of this fatality? Can a JHA be useful on wild animals as a hazard to workers in your judgment? What is the value of having an effective JHA in this i..
Compare the two non-sequential file structure models : What advantages does the first one have over the second and what advantages does the second have over the first?
What would the annual percentage rate : Given that his fuel consumption per minute is 0.2, what is the approximate price of fuel for this given arrangement if you delayed the driver for 48 minutes at the bank?
What values should the computer provide as output : Draw a program flowchart for a program that will accept one number as input. Assume this number represents some amount of yards.
What is the purpose of preparing a scattergram : What is the purpose of preparing a scattergram? Why does the high-low method use the high-low activity levels instead of the high-low cost levels? Give the general formula for a mixed cost. Which term represents the variable cost?
What is the approximate price of fuel : What is the approximate price of fuel for this given arrangement if you delayed the driver for 48 minutes at the bank - what would the annual percentage rate be if the city plans to make an interest payment of $2 million?
Identify a decision support tool : Within the context of your local business, organization or place of employment, identify a decision support tool that could be effectively used.
Discuss the evolving roles and competencies of nursing : Analyze the sciences underpinning nursing informatics and their relationship to nursing informatics practice. Discuss the evolving roles and competencies of nursing informatics practice

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Health level seven internationa

Health Level Seven International (HL7) is a not-for-profit, standards-developing organization dedicated to providing a comprehensive framework and related standards for the exchange, integration, sharing, and retrieval of electronic health informatio..

  Compute the probability

The English language has an information content of about 1.25 bits per character. Thus, when using the standard 8-bit ASCII encoding, about 6:75 bits per character are redundant.

  What would say in a job interview

What would say in a job interview if you were asked to comment on the following statement: "A Database Administrator (DBA) should create as many indexes as possible for a table because that will result in the greatest speed for all operations ..

  What will you also back up onto a flash drive

Of that information, what will you also back up onto a flash drive? How often would you perform the backup process? How often do you currently back up information on your computer's hard drive

  What strengths would you recommend to capitalize

If you are the consultant for this organization, what weaknesses would you address first? and why? What strengths would you recommend to capitalize on, and how you plan to implement? Cite any references from the literature in this area.

  A system with 64 mb of physical memory

Consider a system with 64 MB of physical memory

  Problem regarding the computer forensics investigation

Describe, in detail, at least 5 different cases or situations that could lead to the need for a computer forensics investigation. For each case or situation, do the following:

  Explain the concept of "mental model"

Explain the concept of "mental model" and say how this concept relates to Card, Moran and Newell's "Model Human Processor".

  What will occur to supply-demand in short-term and long-term

Price of product in short-term and long-term also describe why you think supply, demand, or equilibrium price will be different, if at all, in short-term and long-term.

  Why technical writing is an important skill to have in it

Why do you think technical writing is an important skill to have in IT

  Development of an hr system

Define the business requirements for the development of an HR system to support the objective of this request. Create a detailed system design and a project implementation plan required to complete the project.

  Describes how you have used abstraction as a strategy

Give an example that describes how you have used abstraction as a strategy and how it was beneficial to you.

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