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

11y 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.


How does graphic design use algebra?

Because you are programming the graphics of that specific media; For example, if you are making a rectangular photo of your trip last summer, you are trying to figure out the sides needed to make it perfect, you would need x and y variables(x, y)


Why is hexadecimal is important?

Hexadecimal is important because it provides a more compact and human-readable representation of binary data, which is essential in computing. Each hexadecimal digit corresponds to four binary digits (bits), making it easier to interpret large binary numbers. It is widely used in programming, memory addresses, and color codes in web design, facilitating clearer communication of complex data structures. Additionally, hexadecimal simplifies the representation of data for debugging and low-level programming tasks.


If a design has a total of 42 sides how many hexagons are in the design?

there is 7 hexagons in the design


How do you design a building with no right angles?

You can design a poo

Related Questions

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


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 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 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 best described as an error in design or programming?

Bug


How do you design a web browser?

With an actual programming language


Programming logic and design review questions?

anjum


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.


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.


How can you design a flight simulator with no programming experience?

paper and pen


Translating design specifications into computer software is called?

Programming