(Java) Meadowdale Dairy Farm sells organic brown eggs to local customers. It charges $3.25 for a dozen eggs, or 45 cents for individual eggs that are not part of a dozen. Write a program that prompts a user for the number of eggs in the order and then display the amount owed with a full explanation using the following wording: You ordered 27 eggs. That’s 2 dozen at $3.25 per dozen and 3 loose eggs at 45 cents each for a total of $7.85.

import java.util.Scanner;
class Eggs {
public static void main(String[] args) {
// Write your code here

}
}​

Answers

Answer 1

import java.util.Scanner;

public class Eggs {

   

   public static void main(String[] args) {

       Scanner scan = new Scanner(System.in);

       System.out.println("How many eggs?");

       int eggs = scan.nextInt();

       int dozens = eggs / 12, ind = eggs - (dozens*12);

       

       System.out.println("You ordered "+eggs+" eggs. That's "+dozens+" at $3.25 per dozen and "+ind+" loose eggs at 45 cents each for a total of $"+((dozens*3.25)+(ind*0.45))+".");

   }

   

}

I hope this helps!

Answer 2

In this exercise we have to use the knowledge of the JAVA language to write the code, so we have to:

The code is in the attached photo.

So to make it easier the JAVA code can be found at:

import java.util.Scanner;

public class Eggs {

  public static void main(String[] args) {

      Scanner scan = new Scanner(System.in);

      System.out.println("How many eggs?");

      int eggs = scan.nextInt();

      int dozens = eggs / 12, ind = eggs - (dozens*12);

System.out.println("You ordered "+eggs+" eggs. That's "+dozens+" at $3.25 per dozen and "+ind+" loose eggs at 45 cents each for a total of $"+((dozens*3.25)+(ind*0.45))+".");

  }

}

See more about JAVA at brainly.com/question/2266606

(Java) Meadowdale Dairy Farm Sells Organic Brown Eggs To Local Customers. It Charges $3.25 For A Dozen

Related Questions

User can fill numbers in a column by using _______ command, ________ is a built-in formula in Excel to do calculations, Entering data into a cell means to _______ data into a cell, The MIN function displays the ________ value in a given list of values

Answers

Answer:

The answer to this question is given below in the explanation section.

Explanation:

This question is about fill-in-the-blank. The correct options in these fill-in-the-blanks are given below:

User can fill numbers in a column by using Down, Right, Up, Left, Series and Justify command

You can use these commands to fill numbers in columns. You can find these commands in the HOME tab under the Editing group of commands.

AutoSum is a built-in formula in Excel to do calculations

Autosum is a built-in formula that helps you to perform calculations, such as to calculate sum, average, and to find the minimum and maximum value. You can find the AutoSum command in the Home tab under the Editing group of commands.

Entering data into a cell means to put/insert data into a cell.

The MIN function displays the minimum value in a given list of values.

You use the MIN() function to display the minimum value in a given list of values or in the columns.

What would happen if a program try to access a variable that was to find locally in another part of the program?

Answers

They project would fail aka not succeed

whats the name of the windows 10 nucleus

Answers

Answer:

motheboard

Explanation:

1. What sort of information should be taken by the human resource before
leaving for foreign employment? Write in brief.​

Answers

Answer:

DDDDDDDDDDDDDDD

Explanation:

Answer:

Sources of information on foreign job opportunities. Blue, newspapers or professional journals; Red, personal contacts abroad; Green, recruitment websites.

Explanation:

A typical day in programming and software development would involve

Answers

Answer:

software development would involve

Explanation:

25 POINTS. Which three features are related to the functions of a continuous rotation servo motor?
A. The command signal sets the direction and speed of rotation.
B. It can change the shaft's movement from circular to forward or backward motion.
C. It is commonly used for radar navigation on robots.
D. The motor can turn either clockwise or counterclockwise with no limits.
E. There are barriers in the design that prevent rotation beyond a half circle.

Answers

I think A I’m not too sure though! Try looking it up cause I’m not sure about my answer

2. The internet offers a great source of information; however, how are
you going to make sure that these pieces of information are reliable?​

Answers

Answer:

There are many different ways that you can ensure that the information you gather on the internet is reliable and accurate! One way is to not look at Wikipedia and sites where anyone has the access to edit it at any time. Sites that are .com or .org are usually from a direct and safe source. Stay away from media websites and if you believe something isn't right, do further research.

Explanation:

Hopefully this helps.

What number will be output by the console.log command on line 5?
A. 10
B. 11
C. 12
D. 13
E. 16

Answers

Answer:

E

Explanation:

If you follow the line of code and add 1, 2, and then 3, 10 + 1 + 2 + 3 = 16.

The output of the block of code will be 16 as the value of the variable is assigned a new value based on the number added to it on each line.

The initial value of the variable oop is 10

On the next line, 1 is added to oop and the resulting value is reassigned to the same variable, the new value of oop is 11

On the next line, 2 is added to oop and the resulting value is reassigned to oop, the new value of oop becomes 13

Variable oop is then increased by 3 ; making the value become (13 + 3) = 16

Therefore, the output of the command is 16.

Learn more :https://brainly.com/question/18505492

What is the
binary code
for
"DMS"?

Answers

Answer:

D= 01000100

M= 01101101

S= 01110011

Explanation:

Laptop computers use PCMCIA cards, another type of ________

a.
USB drive
b.
mass storage
c.
smart cards
d.
flash memory

Answers

Answer:

mass storage or flash memory

You wrote a program to find the factorial of a number. In mathematics, the factorial operation is used for positive integers and zero. What does the function return if the user enters a negative three? def factorial(number): product = 1 while number > 0: product = product * number number = number - 1 return product strNum = input("Enter a positive integer: ") num = int(strNum) print(factorial(num))
-6
1
-3
There is no output due to a runtime error.

Answers

Answer: well it’s not “There is no output due to a runtime error”

Explanation: Put that and I got it wrong

The Answer Is 1.

Edge 2020.

Which are examples of primary sources? Check all that apply.

diary
newspaper article
biography
photograph
speech

Answers

Answer:

A, D, E

Explanation:

Diaries, photographs, and speeches are all forms of primary sources, whereas biographies and newspaper articles are written by a secondary source.

Answer:

a,d,e

Explanation:

An employee was watching Jessica, an IT employee, typing in many different confusing terms. Jessica explained that she needed to fix the code and test a couple of programs before she could train the employee on how to use the software. Which IT career would be responsible for these tasks?

Answers

Answer:

Programming and Software Development

Explanation:

Answer:

b on edge

Explanation:

_______are a set of track sectors, ranging from 2 to 32 or more, depending on the formatting scheme in use.

a.
Cylinders
b.
Track sectors
c.
Tracks
d.
Clusters

Answers

Answer:

pretty sure it's d. clusters

if not it's also probably a. cylinders

Explanation:

What makes e-mail different from other forms of business communication?

Answers

Answer:

because it is an electronic mail

Answer:

Email can be both formal or informal however face to face communication is usually most effective in business.

Which of the following is not one of the views available in the PowerPoint application?

Show View
Slide Sorter
Notes Page
Reading Pane

Answers

Answer:

A. Show View

Explanation:

PowerPoint application can be defined as a software application or program designed and developed by Microsoft, to avail users the ability to create various slides containing textual and multimedia informations that can be used during a presentation.

Some of the features available on Microsoft PowerPoint are narrations, transition effects, custom slideshows, animation effects, formatting options etc.

Basically, the views that are available on the Microsoft PowerPoint application includes;

1. Slide Sorter.

2. Notes Page.

3. Reading Pane.

Hence, show view is not one of the views available in the PowerPoint application.

PLEASE HELP ME!!! I REALLY NEED YOU TO HELP ME NOW!!!! THANKS!

PLEASE ANSWER CORRECTLY!!!!!!!!!!!!! DONT ANSWER FOR THE POINTS!!!


In this project, you will plan and write a program to solve a math algorithm. You will identify possible errors and handle them in your program. Choosing Your Math Algorithm Think of a math question that takes several steps to solve. It should not be a math question already programmed in the unit. The question should require input from the user, process the information, and display the results. You can choose your own algorithm. It does not need to be one of these. Find the surface area of a cylinder. Find the surface area of a pyramid. Find the hypotenuse of a right triangle. Your Task Write a pseudocode plan for your program. Write the code for your program. Test your program. Run it at least three times with different inputs. Save your program as a .txt file for you cannot upload a .py file. Evaluate your project using this rubric. What to Submit Submit the .txt file holding your program.

Answers

Answer:

Surface of a Cylinder Code:

#import math package to use math.pi for the value of PI

import math

#take radius of the base of a cylinder from user

r=float(input("Enter r of a cylinder"))

#take height of the curve surface of a cylinder from user

h=float(input("Enter the Height of a cylinder"))

#calculate the surface area of cylinder

s_area=2*math.pi*pow(r,2)*h

#calculate the volume of cylinder

volume=math.pi*pow(r,2)*h

print("surface area of a cylinder wll be %.2f" %s_area)

print("volume of a cylinder will be %.2f" %volume)

Quadratic Equation Code:

import math

a = int(input("Enter the coefficients of a: "))

b = int(input("Enter the coefficients of b: "))

c = int(input("Enter the coefficients of c: "))

d = b**2-4*a*c # discriminant

if d < 0:

print ("This equation has no real solution")

elif d == 0:

x = (-b+math.sqrt(b**2-4*a*c))/2*a

print ("This equation has one solutions: "), x

else:

x1 = (-b+math.sqrt((b**2)-(4*(a*c))))/(2*a)

x2 = (-b-math.sqrt((b**2)-(4*(a*c))))/(2*a)

print ("This equation has two solutions: ", x1, " or", x2)

Select all the correct answers.
In which TWO ways does e-governance empower citizens?

Citizens can obtain information directly from government websites.
Citizen can easily fix appointments with senators online.
Citizens do not need to travel to government offices.
Citizens can vote online on the bills introduced in the legislature.


i will have more questions under ur answers

Answers

Answer:

Citizens can obtain information directly from government websites.

Citizens do not need to travel to government offices.

Explanation:

These seem the most appropriate to me.

Where do high tides occur? (Select two.) WILLLL GIVVEEE BBRRAANNLLEESSTTTM PLSS AASSAAPP

only at the South Pole
on the side of Earth opposite the moon
on the side of the Earth facing the moon
only at the North Pole
at both the North and South Poles

Answers

Answer:

Maybe both?

Explanation:

High tides and low tides are caused by the Moon. The Moon's gravitational pull generates something called the tidal force. The tidal force causes Earth—and its water—to bulge out on the side closest to the Moon and the side farthest from the Moon. These bulges of water are high tides. (hope this helps)

Answer:

its the last one, it happens on the side of the earth facing the moon and also the opposite side

I WILL GIVE BRAINLIEST TO WHO ANSWERS FIRIST AND CORRECT
How are blogs and wikis alike?


accessible 24/7

telecommunications technology

collaboration tool

available online

used for online dialog

increase business productivity

Answers

Answer:

i think 1 3 and 4

Explanation:

Select the correct answer.
Adrian is organizing a training lecture for his students in various states simultaneously through radio, TV, and the Internet. What is this event
known as?

A. webcast

B. simulcast

C. broadband

D. online lecture

Answers

Answer:

a

Explanation:

a webcast is the answer I think

Find true or false. A hacker is hacking software with access in sensitive information from your computer​

Answers

ITS TRUE!!I SEARCHED IT

What is the difference between a displayed result and a formula?
The displayed result is always the same number, but the formula changes.
The formula is always the same as the displayed result, it will always be a simple value.
The displayed result changes as the formula dictates it; it may not be a simple value.
The displayed result and the formula are unrelated.

Answers

Answer:

The displayed result changes as the formula dictates it; it may not be a simple value.

Explanation:

Answer:

The displayed result changes as the formula dictates it; it may not be a simple value.

Explanation:

Sonora wants to extend the cells to be added in her formula. What is the quickest way to add more cells?
O Go to the Function Library group and click Insert Function.
Click the Insert tab in the ribbon and then Equation.
O Type the ranges in the parentheses in the formula bar.
O Left-click on a cell that is included and drag the cursor.

Answers

Answer:

D

Explanation: took the test on edge

Answer:

Left-click on a cell that is included and drag the cursor.

Explanation:

Circuit pruning occurs only before puberty.
O True
O False

Answers

Answer:

False

Explanation:

Answer:

The answer is false goodluck6

(Java) Write a program that accepts a number of minutes and converts it both to hours and days. For example, 6000 minutes is 100.0 hours or 4.166666666666667 days.​

Answers

import java.util.Scanner;
public class MinutesConversion {
private static Scanner inputDevice;
public static void main(String[] args) {
int minutes, hours;
float days; // float for decimal point

inputDevice = new Scanner(System.in);
System.out.println("Please enter minutes for conversion >> ");
minutes = inputDevice.nextInt();
hours = minutes / 60;
days = hours / 24.0f;


System.out.println(+ minutes + " minutes is " + hours + " hour(s) or" + days " days");
}
}

The program is a sequential program, and it does not require any conditional statement or iteration.

The program in Java, where comments are used to explain each line is as follows:

import java.util.*;

public class Main{

public static void main(String[] args) {

 //This declares minutes as a double data type

 double mins;

 //This creates a Scanner object

 Scanner input = new Scanner(System.in);

 //This gets input for minutes

 mins = input.nextDouble();

 //This converts the minutes to hour and days, and also print them

 System.out.println(mins/60+" hours or "+mins/1440+" days");

}

}

At the end of the program, the equivalent number of hours and number of days are printed.

Read more about similar programs at:

https://brainly.com/question/8598360

CALCULATE THE PERCENTAGE OF FAT CALORIES TO TOTAL CALORIES. I got no idea how to do this in excel ;-;

Answers

Answer:

As you have the Fat Cal. in column C and the total calories in Column B, what you have to do is to divide column C by Column B.

For instance, in column E2, put the formula: =C2/B2.

Then drag the formula down so that the other formulas will be;

E3; =C3/B3

E4; =C4/B4

E5: C5/B5

E6: C6/B6

Then after that you go to the Home tab, then to the Number style section and format E2 to E5 to be percentages.

To what extent is cyberbullying experienced across the world?

Answers

Answer:

All around the world

Explanation:

Every were there’s tech.

Use of the Internet for e-government has increased. Identify the benefits by checking all of the boxes that apply.
A. It keeps the public informed about events
B. People do not have to vote
C. People can pay bills
D. People do not have to visit the site
E. The government can share important information about issues with the people in that town.

Answers

It’s A my good guy have a great day

Answer:

the answer is A C and E

Explanation:

Dropdown
Choose the correct data type.

type(3) tells you the type is___

type("35") tells you the type__

type(3.5) tells you the type__

Answers

type(3) is int

type("35") is string

type(3.5) is float

Following is the correct data type that one get after giving the following commands”

type(3) is int

type("35") is string

type(3.5) is float

What is the data type?

In any of the computer science and computer programming worlds, a data type is considered for the possible value set and it allows what kind of operation one has to do on it. A variable's basic data type is the classification that specifies the type of value it has.

Most of the time, the data type is used for programming, so don't be concerned about the type of mathematical relations and logical operations that can be applied.

There are basically five types of data types divided on the basis of most modern computer languages. They are integral, floating-point, character, character string, and composite types

Learn more about data type from here:

https://brainly.com/question/14581918

#SPJ2

Other Questions
Which scenario below represents 85%? What is a small ball that orbits around a planet.There's no science section sorry La mujer es ____ que los ninosMejor Mayor Peor Menor Name one field that was greatly influenced by the invention of perspective other than art.Group of answer choicesScienceArchitecturePhilosophyLiterature what are the density of deep ocean currents are effected by PLS HELPPPPPPP!!!!!!!!!!!!!! why can it be effective to end a story earlier than the reader expects?A.)this leaves readers without enough clues to determine what happendsB.)this asks readers to refer to outside sources to explain the storyC.)this allows readers to draw their own conclusions about what happendsD.)this offers readers a simple explanation of the events in the story Health-related fitness includes all of the following EXCEPT:A physical agilityB. muscular enduranceC. body compositionD cardiovascular fitness Sally bought 124 sheets of stickers. Each sheet had 14 stickers. She gave away 204 stickers to her family and friends on Christmas. How many stickers does Sally have remaining? Find the mass (in grams) of 1.5 moles of BaSO4 A navigator on a boat measures the angle between the course of the boat and the lighthouse on shore to be 70 degrees. After the boat has traveled 3000 m, the navigator measure the angle to be 100 degrees. How far, to the nearest metre, was the boat from the lighthouse at the time of the first sighting? simplify 39/160 help me If you could please help good sir... Can someone give me ideas for writing an essay about I want to be....i don't want the whole thing I just need ideas.Thank You. Help plz 15 points For the right answer plz. Does anybody know what 4/5 ( + 1) is in standard form? Which element is used in the manufacture of mirrors and bronze? define life. cus i dont know Point Tis on line segment SU. Given ST = 2 and TU = 15, determine the lengthSU. what type of questions is "you shouldn't have done this to me? Please help meWhich particle, protons, neutrons, or electrons, has the LEAST mass?