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

  Create an alice world with four helicopters

Program the world to make the helicopters each lift off from the ground one at a time, and then all turn and fly away together.

  Problem resolution in an organization.

In a one to two page (two page double-spaced maximum) paper explain why information systems today are currently effective or ineffective in assisting with problem resolution in an organization.

  Returns the rows necessary to insert records

Write a query that returns the rows necessary to insert records into the RENTAL table. Write a query that returns the rows necessary to insert records into the RENTAL_ITEM table.

  Calculate the percentage overhead protocol stack

Calculate the percentage overhead associated with the following protocol stack assuming you need to transmit 19,800 bits of data.

  Discussion board mis

Discussion board mis.

  Creating access database for storing employee information

Investigate and present a proposal for the implementation of an Information Technology (IT) system for a small (4-user) business section (for example, Human Resources) of an organization of your choice (real or fictitious).

  What will be the eventual proportion of the bandwidth

Assume that the queue size is infinite without buffer overflow (no packet loss), and the maximum window of the TCP sender is 20 packets, with each packet having 1500 bytes.

  How many rows will a truth table require

How many rows will a Truth Table require if there are six variables and three conditions of each variable? Defend your answer.

  Draw a tree diagram that describes the call setup procedure

Draw a tree diagram that describes the call setup procedure.

  An e-home will be characterized by the seamless interconnect

According to the Design Council Web site, "an e-home will be characterized by the seamless interconnection of virtually anything powered by electricity and a host of new services/applications delivered by the Internet." Name three such services that ..

  Recommendations for the next steps the merged company

Create a minimum 12 PowerPoint slides to summarize the policy review conducted and your recommendations for the next steps the merged company should take to protect its data and information assets. The cover, summary/conclusion and reference slides a..

  Based on an organization hierarchy

1. Based on an organization hierarchy, describe Five types of Information Systems that can support an organization 2. Describe the three attributes of quality information 3. Using an illustration, describe the Business Information Value Chain

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