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

  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