Write a Java program to do the following:
A dairy farm sells organic brown eggs to local customers. They charge $3.25 for a dozen eggs, or 45 cents for individual eggs that are not part of a dozen. Write, compile, and test a Java class that prompts a user for the number of eggs in the order and then display the amount owed with a full explanation
All 4 Replies
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.