answersLogoWhite

0

start

Declarations

string name

double pricePerPound

double poundsSold

double POUNDS_MIN = 2000

display "Enter the name of the candy: "

get name

display "Enter the price per pound of this candy in Dollars: "

get pricePerPound

display "Enter the number of pounds of this candy that was sold: "

get poundsSold

if poundsSold > POUNDS_MIN then

display "This is a best selling candy! Name: ", name, "Price per pound: ", pricePerPound, "Pounds sold:", poundsSold

endif

stop

User Avatar

Wiki User

12y ago

What else can I help you with?

Continue Learning about Math & Arithmetic

How do you do chapter 4 exercise 2a on Programming Logic and Design Introductory?

To complete Chapter 4 Exercise 2a in "Programming Logic and Design," start by carefully reading the exercise prompt to understand the requirements. Break down the problem into smaller steps and outline the logic needed to achieve the desired outcome. Use pseudocode or flowcharts to visualize your approach, ensuring you cover all aspects of the problem. Finally, implement your solution in the programming language specified in the exercise, testing it to ensure it works correctly.


Is 139 exercise design 4 availability of resources?

Exercise design 139 likely refers to a specific training or exercise program focusing on resource availability. In this context, the availability of resources is crucial, as it directly impacts the effectiveness and feasibility of the exercise. Adequate resources, including personnel, equipment, and materials, must be ensured to achieve the desired outcomes of the exercise. Without proper resource allocation, the exercise may not meet its objectives or provide valuable insights.


When and why was the backus naur form devised in programming?

Backus-Naur Form (BNF) was devised in the late 1950s by John Backus and his team at IBM while developing the FORTRAN programming language. It was created to provide a formal notation for describing the syntax of programming languages in a clear and unambiguous manner. BNF allows for the specification of grammar rules, making it easier to design compilers and interpreters, and it has since become a standard method for defining the syntax of various programming languages.


What is a copy of a symbol called?

A copy of a symbol is often referred to as a "replica" or "duplicate." In specific contexts, such as art or design, it may also be called a "reproduction." Additionally, in the realm of programming and data, a copy of a symbol can be termed a "clone."


1. What is the Python programming language named after?

The Python programming language is named after the British comedy television show "Monty Python's Flying Circus." Its creator, Guido van Rossum, chose the name because he wanted a name that was short, unique, and slightly mysterious, reflecting the playful spirit of the show. This influence is also evident in the language's design philosophy, which emphasizes readability and simplicity.

Related Questions

How do you do chapter 4 exercise 2a on Programming Logic and Design Introductory?

To complete Chapter 4 Exercise 2a in "Programming Logic and Design," start by carefully reading the exercise prompt to understand the requirements. Break down the problem into smaller steps and outline the logic needed to achieve the desired outcome. Use pseudocode or flowcharts to visualize your approach, ensuring you cover all aspects of the problem. Finally, implement your solution in the programming language specified in the exercise, testing it to ensure it works correctly.


What are the answers for Programming logic and design chapter 6?

program calculates


What are the release dates for Divine Design - 1999 Exercise by Design?

Divine Design - 1999 Exercise by Design was released on: USA: 3 January 2008


How do you do glade manual chapter 4 exercise 1?

To complete Glade manual chapter 4 exercise 1, follow the instructions provided in the manual for that specific exercise. Typically, you will be required to design a user interface using Glade by adding widgets, arranging them on the window, and setting their properties. Make sure to save your work as you progress through the exercise. If you encounter any specific issues or have questions, refer back to the manual or seek help from an instructor.


What has the author Andrew Rollings written?

Andrew Rollings has written: 'Andrew Rollings and Ernest Adams on game design' -- subject- s -: Computer games, Design, Programming 'Game architecture and design' -- subject- s -: Computer games, Design, Object-oriented programming - Computer science -, Programming


What is extreme programming?

Extreme Programming: Extreme Programming is when you design the test cases first, and then program backwards. This creates an easier to use programming flow.


What is textual programming?

Textual programming is normally referred to as syntax programming. It is a low-level format for drawing the design of the program.


What is best described as an error in design or programming?

Bug


Programming logic and design review questions?

anjum


How do you design a web browser?

With an actual programming language


Is rf design better than mechatronics?

this depends on where your interests lie. are you interested in electronics or programming. mechatronics has far more programming and rf design has more maths and electronics.


What does experimental designs mean in science?

A design or an explanation that has to do with the collection of variables, the method/procedure and all the introductory info.