Pseudo code in the comments

Assignment Help Basic Computer Science
Reference no: EM131186734

1. Write a program. After reading the specifications below, write the pseudo code in the comments before writing the code. The program should ask the user to enter an item's wholesale cost and it markup percentage. (cost of product * markup percent = markup) (retail = cost of product + markup) The program should validate the inputs. (Note: markup should be greater than zero but less than one) The program should display the item's retail price with two decimal places. The program should have a void function named calculateRetail that receives the wholesale cost and the markup percentage as arguments, does the math and displays the retail price. The program should employ a do-while loop to ask the user if they desire to find the retail price of another product.

2. Write a program. After reading the specifications below, write the pseudo code in the comments before writing the code. The program should ask the user what would they like to do: convert a Fahrenheit temperature to Celsius (F = 9/5 C + 32) or convert a Celsius temperature to Fahrenheit. (C = 5/9(F-32)) The program should validate the input and then, depending on the choice the user makes, ask for a temperature and do the conversion. Use a switch case to handle the choice the user makes. Each choice should call a void function to do the math and display the result to one decimal place. Be sure to test your program.

3. Write a program. After reading the specifications below, write the pseudo code in the comments before writing the code. The program should ask user for the mass and velocity of an object. Validate inputs. Pass inputs to a void function that calculates the kinetic energy of the object. formula is KE = 1/mv2 void function should calculate and display results. Program asks if user wants to calculate the KE of another object and starts over if Yes.

Reference no: EM131186734

Questions Cloud

Relationship of the corporate strategy to the it alignment : What is the relationship of the corporate strategy to the IT alignment of that strategy? Should the corporate strategy determine the IT alignment, or should the strategy support the IT alignment? Why?
Difficulty in finding any effect from program intervention : Which of the following contributes to the difficulty in finding any effect from a program intervention? The biggest advantage of an export management company is usually its ________.
Creating and editing fonts in multimedia : State and explain three softwares that can be used in creating and editing fonts in multimedia.
Prepare employees for work in a foreign country : From the e-Activity, recommend two (2) actions that HR managers can take in order to prepare employees for work in a foreign country. Justify your response.
Pseudo code in the comments : Write a program. After reading the specifications below, write the pseudo code in the comments before writing the code. The program should ask the user what would they like to do: convert a Fahrenheit temperature to Celsius (F = 9/5 C + 32) or con..
Disadvantage of strategic alliances : Below is a database filled with data from a short evaluation questionnaire. The headings for the rows and columns have been left blank. If you were to fill in the headings for the rows and columns, by convention, with the responders and the questionn..
Are supervisor spending sufficient time training employees : Are supervisor spending sufficient time training new employees the methods? In safety, can the employee explain how the safety precautions taught to them affect them and can they give the feedback?
Force international companies to cancel proposed investments : Which of the following is a source of secondary data for conducting international market research? Which of the following will most likely force international companies to cancel proposed investments?
Information systems for competitive advantage : Using the competitive forces model, discuss how an organist of your choice has successfully used information systems for competitive advantage.

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