Create visual logic flow chart from the following pseudocode

Assignment Help Database Management System
Reference no: EM13945507

Create visual logic flow chart from the following pseudocode.

Begin Program:

//Initialize program variables
Initialize Regular_Price = 3.00;
Initialize Premium_Price = 3.20;
Initialize Fed_Gas_Tax_Regular_Rate = .10;
Initialize Fed_Gas_Tax_Premium_Rate = .10;
Initialize Gas_n_Go_Charge = 1.00;
Initialize Full_Service_Charge = 2.00;
Initialize State_Sales_Tax_Rate = .05;
Initialize Gallons;
Initialize State_Sales_Tax;
Initialize Fed_Gas_Tax;
Initialize Gas_Choice;
Initialize Gas_Cost;
Initialize Service_Type;
Initialize Extra_Charge;
Initialize Total_Cost;

//User to input the type of gas loaded.
Display "Enter Type of Gas: Regular or Premium. ";
Input Gas_Choice;

//User to input the amount of gas loaded
Display "Enter amount of gallons: ";
Input Gallons;

//User to input the type of service offered to the customer
Display "Enter type of service rendered: Gas-n-Go, Full-Service, None. ";
Input Service_Type;

//Gas cost and federal gas tax for Regular
If (Gas_Choice == "Regular")
{
Gas_Cost = Gallons * Regular_Price;
Fed_Gas_Tax = Gallons * Fed_Gas_Tax_Regular_Rate;
}
//Gas cost and federal gas tax for Premium
Else if (Gas_Choice = "Premium")
{
Gas_Cost = Gallons * Premium_Price;
Fed_Gas_Tax = Gallons * Fed_Gas_Tax_Premium_Rate;
}

//Extra charge for Gas nâ?? Go
If (Service_Type == "Gas-n-Go")
Extra_Charge = Gas_n_Go_Charge;
//Extra charge for Full Service
Else if (Service_Type == "Full-Service")
Extra_Charge = Full_Service_Charge;
//No extra charge if no extra service was given
Else if (Service_Type == "None")
Extra_Charge = 0;

// State Sales Tax
State_Sales_Tax = State_Sales_Tax_Rate * (Gas_Cost + Extra_Charge);

// Total Cost to be billed to the customer
Total_Cost = Gas_Cost + Extra_Charge + State_Sales_Tax + Fed_Gas_Tax;

//Display of Cost
Display "Total Gas Cost: ";
Display Gas_Cost;
Display "Service Charge: ";
Display Extra_Charge;
Display "Federal Gas Tax: ";
Display Fed_Gas_Tax;
Display "State Sales Tax: ";
Display State_Sales_Tax;
Display "Total Amount: ";
Display Total_Cost;

End Program:

Reference no: EM13945507

Questions Cloud

Write assembly language program for the marie processor : Please refer to the attachment for the general structure of the assembly language source code and more specifications regarding the assembly program
What fifth reason has been added recently : One aspect of sustainability is ecological restoration. What is ecological restoration and how is it important to ecosystems? What are four traditional reasons for the development of parks and protected areas?
Calculate hunter''s rate of return on total assets : Use the DuPont system to calculate the return on assets for the two years, and determine why they changed.
Purpose of commodore perry mission : Which of the following diseases was virtually eradicated through inoculation? The purpose of Commodore Perry's mission to Japan in 1853 was to
Create visual logic flow chart from the following pseudocode : Create visual logic flow chart from the following pseudocode.
How would the federal air marshal service : How would the federal air marshal service respond to a global security situation when compared to United States federal services? What are some examples of the similarities and the differences in their responses? Why do these similarities and differe..
What are the consequences of my reasoning : State whether you believe that the public, in the form of government, has the right to impose restrictions on individual landowners. State the reasons for your beliefs and directly answer the following critical thinking questions after stating you..
Design a grade average program that will produce the numeric : Design a grade average program that will produce the numerical grade average of test scores input by a user.
Evaluate your selected criminal justice policy : Select a policy from the list of examples found in Chapter 1 of Criminal Justice Policy in Table 1.1 "Examples of Federal Criminal Justice Policies" (Mallicoat, 2014). In this discussion, you will evaluate your selected criminal justice policy by ..

Reviews

Write a Review

Database Management System Questions & Answers

  Design visio diagram

Create a database diagram with the entities and attributes that the scenario identified (i.e., a college tracking students, courses, and instructors).

  Please write down the sql statements to answer the given

please write sql statements to answer the following questions. your tables should still be on the oracle server. please

  Draw an entity-relationship diagram for the database

Carefully read the above business description and draw an Entity-Relationship Diagram (ERD) for the database that manages information on employees, customers, and so on

  Identify a relational algebra tree

Identify a relational algebra tree (or a relational algebra expression if you prefer) that reflects the order of operations a decent query optimizer would choose.

  Which group functions can be used on date values

If the "greater than" comparison operator is used with a multiple-row subquery, what type of result will be returned?

  How would you define a relational database

How would you define a relational database? What is "normalization" and why do we normalize DBs

  Requirements and draw an er diagram

Describe key elements of requirements in the points . Use the following information to understand their requirements and draw an ER diagram.

  Implicit cursor to print out the mid of manager of bob

Write an anonymous PL/SQL program to compute the sum of 1, 3, 5, 7, 9. You must use a loop -  implicit cursor to print out the MID of manager of Bob.

  Create as creenshot of each query and output data

Create as creenshot of each query and output data

  Find an example of an actual data warehouse

Find an example of an actual data warehouse. For this example, describe the content, purpose, user access methods, and sources of data

  Write a join query that for every order

Write a join query that for every order placed on September 5, 1998, (use '05-SEP-1998') will list the order number and order date along with the customer number, last name, and first name of the customer who placed the order.

  Benefits of using databases and dbmss

Assignment: Research organizational benefits of using databases and DBMS's. Supplement your research with a review of your lessons. Post a response to the discussion board: Respond to the following statements and, if appropriate, include personal e..

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