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

  Outsourcing to difference vendors to handle it-is activities

Discuss the pros and cons of selecting (outsourcing to) three different vendors to handle three different IT/IS activities.

  Article on visual basic programming

Find a current article about Visual Basic® programming best practices and write a 1- to 2-page paper discussing its relevance to this course

  What does function declaration and function call do

What does Function Declaration and Function Call do

  How you would sort a file that was too large to fit in ram

Consider how you would sort a file that was too large to fit in your machine's RAM. External Sorting refers to the sorting of data which is not in the primary memory of the computer.

  What is the smallest and largest integer

Show how the value ASCII "MIRIAM" is stored in memory in Big Endian format starting at location 100 hexadecimal. Assume that each memory location stored two ASCII characters.

  Use the method of iteration to find a formula

Use the method of Iteration to find a formula expressing S(n) as a function of n for the given recurrence relation and initial condition

  Create a program that will store results of your dice game

Create a program that will store the results of your dice game in a comma separated value file (filename.csv). You will use the Formatter API to construct a new file.

  How is the network portion of an ip address identified

How is the network portion of an IP address identified?Which portion of a class C address designates the network address?What is the difference between subnetting and supernetting? Which method uses a subnet mask that is longer than the default subne..

  Determine finish tag-packet-by-packet fair queueing system

Let the packet-by-packet fair queueing system with three logical buffers and with service rate of one unit/second. Determine finish tag, order of transmission and actual packet completion times for each packet arrival.

  Content to include grammar and spelling

Your essays will be graded on content to include grammar and spelling.  While there is no end to what you might write you must convey your thoughts in essay of at least four to five pages excluding cover page and references section.

  Describe how e-commerce begin and what made it successful

1). Describe how e-commerce begin and what made it successful. 2). Explain the advantages and disadvantages of outsourcing when it comes to technology.

  Calculate the net expected value for the project risks

Calculate the net expected value for the project risks and opportunities cited above. How much should you plan for your contingency reserve budget based on the above?

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