I receive errors in this code in eclipse and in GDB. Can someone help me? Thank you!



import java.io.*;
import java.util.*;

public class Contribution {

public void fileOperation(String inputFile, String outputFile) {
double max_contro = Double.MIN_VALUE;
double min_contro = Double.MAX_VALUE;
int total = 0;
int goal = 1000;
double current = 0.0;

// Reading from the file
try {
File file = new File(inputFile);
Scanner sc = new Scanner(file);
while (sc.hasNextLine()) {

double amt = Double.parseDouble(sc.nextLine());
current += amt;
total++;
if (amt < min_contro) {
min_contro = amt;
}
if (amt > max_contro) {
max_contro = amt;
}
if (current > goal) {
break;
}
}
} catch (Exception e) {
System.out.println("Error processing the file!");
}

double average_contro = Math.round((double) current / total);
// Writing to the file
try {
FileWriter writer = new FileWriter(outputFile, true);
BufferedWriter out = new BufferedWriter(writer);
out.write("It took " + total + " contributions to reach the goal.\nThe maximum contribution"
+ " received was $" + max_contro + ".\nThe minimum contribution"
+ " received was $" + min_contro + "\nThe average contribution amount was $"
+ average_contro + ".\nA total of $" + current + " was collected.");
out.newLine();
out.close();
} catch (Exception e) {
System.out.println("Error processing the file!");
}

}

// Driver method to test the code
public static void main(String[] args) {

String inputFile = "input.in";
String outputFile = "output.out";

Contribution obj = new Contribution();
obj.fileOperation(inputFile, outputFile);

}Input File: (Copy and Paste)

150
165
12
16
14
189
13
3
74
59
53
20
26
91
40
16
71
4
100
165
82
30
49
10
85
61
30
25
2
6
9
47
8
50
13
Output:


}

Answers

Answer 1

Debugging a code involves locating the errors in a code segment, and fixing them.

How to debug the code segment?

When the program was run on GDB, the program give the following error

Main.java:62: error: reached end of file while parsing

This means that we need to add a closing brace to the end of the program.

A second run after fixing this error gives another set of errors:

Main.java:4: error: class Contribution is public, should be declared in a file named Contribution.java

It should be noted that GDB only allows you to create a program with the file name Main i.e. Main.java

This means that we change the Contribution keywords in the program to Main.

After this has been done, the program gives the following output:

It took 17 contributions to reach the goal.

The maximum contribution received was $189.0.

The minimum contribution received was $3.0

The average contribution amount was $60.0.

A total of $1012.0 was collected.

So, the corrected program is:

import java.io.*;

import java.util.*;

public class Main {

   public void fileOperation(String inputFile, String outputFile) {

       double max_contro = Double.MIN_VALUE;

       double min_contro = Double.MAX_VALUE;

       int total = 0;

       int goal = 1000;

       double current = 0.0;

       // Reading from the file

       try {

           File file = new File(inputFile);

           Scanner sc = new Scanner(file);

           while (sc.hasNextLine()) {

               double amt = Double.parseDouble(sc.nextLine());

               current += amt;

               total++;

               if (amt < min_contro) {

                   min_contro = amt;

               }

               if (amt > max_contro) {

                   max_contro = amt;

               }

               if (current > goal) {

                   break;

               }

           }

       } catch (Exception e) {

           System.out.println("Error processing the file!");

       }

       double average_contro = Math.round((double) current / total);

       // Writing to the file

       try {

           FileWriter writer = new FileWriter(outputFile, true);

           BufferedWriter out = new BufferedWriter(writer);

           out.write("It took " + total + " contributions to reach the goal.\nThe maximum contribution"

           + " received was $" + max_contro + ".\nThe minimum contribution"

           + " received was $" + min_contro + "\nThe average contribution amount was $"

           + average_contro + ".\nA total of $" + current + " was collected.");

           out.newLine();

           out.close();

       } catch (Exception e) {

           System.out.println("Error processing the file!");

       }

   }

   

   // Driver method to test the code

   public static void main(String[] args) {

       String inputFile = "input.in";

       String outputFile = "output.out";

       Main obj = new Main();

       obj.fileOperation(inputFile, outputFile);

   }

}

Note that the filename must be Main.java in GDB and the input file is input.in

Read more about debugging at:

https://brainly.com/question/13966274

#SPJ1


Related Questions

what are the three stages of the system development life cycle?​

Answers

Answer:

Explanation:

design ,develop ,testing

c. Explain the mechanical era of computer.​

Answers

Answer:

why should I say mother and if you r urmia l love you

In Python write a program that reads a list of integers into a list as long as the integers are greater than zero, then outputs the values of the list.
Ex: If the input is:

10
5
3
21
2
-6
the output is:

[10, 5, 3, 21, 2]

Code hints: while user_input >0: #This is the number that is greater than 0 from the list that is entered.

print(user_numbers) #Prints out the numbers greater than zero that are inputted at the top part.

Answers

See the comments for explanations of what each line does.

Code

integers = []  # Create an empty list to store the values

user_input = int(input())  # Get the first input

while user_input > 0:  # Loop as specified

   integers.append(user_input)  # Add the value to the list

   user_input = int(input())  # Get another input

print(integers)  # Print the full list

what is the use of word processing software?​

Answers

Answer:

A typical word processor enables the user to create documents, edit them using the keyboard and mouse, store them for later retrieval, and print them to a printer. Common word processing applications include Microsoft Notepad, Microsoft Word, and Corel WordPerfect.

Continuing with the program in problem #4: Box #10 has identical attributes to Box #07. Create box #10. Then, write two statements that will print out: one will compare the contents of Box #07 and Box #10, and the other will compare the contents of Box #21 and Box #23.

Answers

The program illustrates the use of conditional statements i.e. the if keyword

The two statements

The statements that compare the boxes written in Python are as follows:

#Statement 1

if box07 > box10:

  print("Box 07")

else

  print("Box 10")

#Statement 2

if box21 > box23:

  print("Box 21")

else

  print("Box 23")

Read more about python programs at:

https://brainly.com/question/13246781

#SPJ1

difference between primary and secondary storage​

Answers

Answer:

Primary storage also called as main memory. RAM is an example of primary memory.

Secondary storage are popular as we use them for permanent storage.

Explanation:

Primary storage are temporary such RAM which are required for your program to execute. Without these storage, we can't use the computer for any operations. These memory keeps intermediate data and garbage out when the data no longer required.

On the other hand, when we need to store the data for future reference such as files, photos and videos we use secondary storage devices such as usb drive, hard disk etc.

Using for loop write an alogarithm flow program to find simple interest fo three steps? ​

Answers

Answer:

The difference between a shallow and a deep depth of field is how much of your photo is in focus.

Explanation:

What is the accurate description

Answers

Answer:

an accurate description exact stresses a very strict agreement with fact, standard, or truth. Exact measurements precise adds to exact an emphasis on sharpness of definition or delimitation.

PLEASE MARK ME AS BRAINLIEST ANSWER THANKS

Test your knowledge: Learning more about project manager rol
responsibilities
Total points 4
1. Fill in the blank:
is how a project manager makes use of productivity tools and creates processes. The
project manager may need to use certain tools and processes to do tasks like create a schedule and share
information.
Managing tasks
Removing unforeseen barriers
Budgeting and controlling costs
O Planning and organizing

Answers

Answer:

planning and organizing

Explanation:

I guess that's what project manager do

What did you learn about your creative skills when you made the mask or face shield?

Answers

The thing that I have learn about your creative skills when you made the mask or face shield is that by making those shield, i will be able to enhance my creative side.

What do you learn when you create a mask?

In course of the making of a mask and its activity, students are known to be able to learn that they one can have the ability to be able to conceal or reveal some areas of their identity.

Therefore, The thing that I have learn about your creative skills when you made the mask or face shield is that by making those shield, i will be able to enhance my creative side.

Learn more about creative side from

https://brainly.com/question/11657088

#SPJ1

Answer:Louis C.K. had a great bit a decade ago where he mocked complaints about air travel by pointing out how much better we have it than our ancestors did. New York – LA in six hours? It used to take 30 years. People would die. They’d be entirely different people by the time they arrived.

Explanation:

Choose 2 statements that correctly describe the time complexity of data structures with N data.

The average time complexity of the data lookup in a hash table is O(N).

The average time complexity of the data lookup in a complete binary tree is O(logN).

The average time complexity of deleting an item from an array is O(1).

The average time complexity of accessing the kth element in a linked list is O(1).

The average time complexity of inserting data into a heap is O(logN)

Answers

The  statements that correctly describe the time complexity of data structures with N data are:

The average time complexity of the data lookup in a hash table is O(N).The average time complexity of inserting data into a heap is O(logN)

What is time complexity of data structures?

Time Complexity of an algorithm is known to be the depiction of the amount of time needed by the algorithm to carry out to completion.

Note that The  statements that correctly describe the time complexity of data structures with N data are:

The average time complexity of the data lookup in a hash table is O(N).The average time complexity of inserting data into a heap is O(logN)

Learn more about data from

https://brainly.com/question/17350816

#SPJ1

This was the template given for my assignment: class Login:
def __init__(self):
self.login_name = 'none'
self.login_password = 'none'

# TODO: Define class method - check_credentials(self, user_login, user_passwd)


if __name__ == "__main__":

login = Login()
timeout = 5 #variable used for login attempts
login = input()
password = input()

# TODO: Create boolean variable that receives return value from
# calling check_credentials(login, password)

# TODO: Create a loop that will continue until login attempts run out or a successful login is returned

# TODO: Create a loop that only allows 5 failed login attempts
I have tried a trillion different ways to get this solved and I cannot figure out what I am doing wrong

Answers

Using the code in python it is possible to use the code given in the statement it is possible to make the change so that it fits with all topics.

Writing code in python:

class Login:

def __init__(self):

 self.login_name = 'none'

 self.login_password = 'none'

def check_credentials(self, user_login, user_passwd):

 simlogin = 'Test'

 simpass = 'test1234'

 if user_login == simlogin and user_passwd == simpass:

  print("Successful login!")

  return True

 elif user_login == simlogin and user_passwd != simpass:

  print("Login name is correct, incorrect password!")

  return False

 elif user_login != simlogin and user_passwd == simpass:

  print("Login name incorrect, password accepted!")

  return False

 elif user_login != simlogin and user_passwd != simpass:

  print("Unsuccessful login attempt!")

  return False

if __name__ == "__main__":

ob = Login()

timeout = 5

login = input()

password = input()

valid_login = ob.check_credentials(login, password)

while True:

 if valid_login:

  break

 else:

  timeout = timeout - 1

  if timeout == 0:

   print("5 failed login attempts. No more login attempts.")

   break

  login = input()

  password = input()

  valid_login = ob.check_credentials(login, password)

See more python at brainly.com/question/18502436

#SPJ1

Write a program that converts a decimal height in feet into feet and inches.
For instance; an input of 4.75 feet should become 4 feet and 9 inches.

Answers

The program to illustrate the conversion of the height is illustrated below.

How to illustrate the program?

The information here is to convert 1 inch = 2.54 cm. First, we will take user input of height in cm. We first convert this to inches by dividing by 2.54

After that, we use Floor Division // and Modulo % by 12 to get feet and inches respectively.

The inches will be in a lot of decimals. We round this off to 2 decimal places and finally print out the converted height.

The code will be:

# Take user input for height in cm

height_cm = float(input("Enter your height in cm: "))

# Convert height to inches

height_in = height_cm / 2.54

# Get feet by taking floor division with 12

feet = height_in // 12

# Get inches by taking modulo division with 12

inches = height_in % 12

# Round off the inches to 2 decimal places

inches_rounded = format(inches, ".2f")

# Print out the height in feet and inches

print(f"Height is {feet} ft {inches_rounded} in")

Learn more about program on:

https://brainly.com/question/26134656

#SPJ1

The Horse table has the following columns:

ID - integer, primary key
RegisteredName - variable-length string
Breed - variable-length string
Height - decimal number
BirthDate - date
Write a SELECT statement to select the registered name, height, and birth date for only horses that have a height between 15.0 and 16.0 (inclusive) or have a birth date on or after January 1, 2020.

Answers

The way to write the select statement has been written below.

How to write the query

The query that is going to be written in this statement would be

First use the select command and then add the variables that are of interest.

This would be written as

SELECT

RegisteredName,

Height,

BirthDate

Next you have to specify where you want the select statement to read from so you write

FROM horse

WHERE height BETWEEN  15.0 and 16.0 OR BIRTHDATE  >='2020-01-01'.

The query that is written above if followed would show the data that the operator is seeking for.

Read more on python select statements here:

https://brainly.com/question/14350111

#SPJ1

Select 3 true statements about Python class.

If a class inherits from multiple classes, the order of inheritance does not matter.

(In Python 3 or higher) If no class is inherited, it implicitly inherits the object class.

A class attribute exists as a unique object regardless of how many instances of the class are.

A class attribute can be used without an instance of that class.

Properties whose names start with _ (e.g. _name) are private properties and cannot be accessed outside of the corresponding class.

Answers

The true statement is that (In Python 3 or higher) If no class is inherited, it implicitly inherits the object class.

A class attribute can be used without an instance of that class.A class attribute exists as a unique object regardless of how many instances of the class are.

Do all classes in Python inherit from object?

All classes in Python are known to have objects of the type class, and this is said to be a Metaclass.

Note that Each class in Python, by setting,  often take in from the object base class.

Learn more about Python  from

https://brainly.com/question/26497128

#SPJ1


Which option is designed by software engineers?
A. Programming languages that help computers operate
B. Computer components such as monitors and mice
C. Operating systems that run computers
D. Networks that connect computers

Answers

Answer:

Software engineers make programming languages that help computer operation

Explanation:

Take values of length and breadth of a rectangle from the user and check if it is square or not.

Answers

The program is a conditional program, and it requires an if statement

The program in Python

The complete program written in Python is as follows:

length = int(input("Length: "))

width = int(input("Width: "))

if length == width:

  print("Square")

else:

  print("Rectangle")

Read more about Python programs at:

https://brainly.com/question/24833629

#SPJ1

Answer:

Since someone else answered in python, I will answer in c++

The complete program written in C++ is as follows:

int length;

int width;

cout << "Length: ";

cin >> length;

cout << "Width: ";

cin >> width;

if (length == width) {

 cout << "Square";

} else {

 cout << "Rectangle";

}

Which of the following can be called a form of discriminant analysis?

Answers

Decision tree can be called a form of discriminant analysis.

What do you mean by Analysis?

Analyzing something entails dissecting it into its component parts and then coming to your own conclusions by asking questions like WHY and HOW.

Based on results from one or more quantitative predictor variables, observations are divided into non-overlapping groups using the statistical approach known as discriminant analysis. A clinician could, for instance, use a discriminant analysis to find patients with high or low stroke risk.

Discriminant analysis is a regression-based statistical technique used to identify the category or group to which a piece of data or an object belongs based on its traits or distinguishing characteristics.

Therefore, Decision tree can be called a form of discriminant analysis.

Learn more about Analysis, here;

https://brainly.com/question/5040600

#SPJ6

Select the four tactics that cyber criminals use for stealing information from the list below.
baiting
click-jacking
Ospamming
defamation
cross-site scripting
Opharming
Mark this and return

Answers

Baiting clickjacking pharming spamming



Select the WRONG statement about Slide Transitions.

a. Slide transitions can be considered a different type of animation.

b. Each and every slide in PowerPoint should have a slide transition.

c. You can apply slide transitions to only a few selected slides.

d. You can apply slide transitions to every slide in a presentation

Answers

Answer:

c. You can apply slide transitions to only a few selected slides.

Explanation:

If you want to, you could literally apply slide transitions to every slide.

C

You can apply slide transitions to any amount of slides you wanted

What is necessary to execute a Python program?

Answers

A Python interpreter and typically a collection of modules must be installed on the computer system in order for Python programs to work.

What is a python language?

Python is a general-purpose, high-level, interpreted programming language. Code readability is prioritized in its design philosophy, which makes heavy use of indentation.

Python is a language for writing source code, not binary code. You can (usually must) build obj files for C or C++ and link them into an executable after that. The C/C++ executable is a sourceless binary executable file.

The Python compiler/interpreter, on the other hand, executes Python source code directly. Naturally, the procedure itself is more intricate behind the scenes. However, the Python compiler/interpreter really runs the source from the user's perspective.

Learn more about the Python program:

https://brainly.com/question/15385804

#SPJ1

A trucking company is expanding its business and recently added 50 new trucks to its fleet delivering to numerous locations. The company is facing some challenges managing the new additions. Which of the company's problems could be solved more easily using quantum computing

Answers

The company's problems that could be solved more easily using quantum computing is commute optimization task.

What is optimization task?

The level or rate of hardness of of the commute optimization task is known to be in the areas

Components processing waiting commuting time

In the case above, Quantum-assistance is one that can helps firms to be able to handle the time issues and to find solutions for the problem above.

Learn more about quantum computing from

https://brainly.com/question/25513082

#SPJ1

The Linux tail command prints the last maximum n lines of a file. When writing a function that performs this function, choose the correct statements that can go in the ?????.



lines[-n]

lines[-n:]

lines[len(lines)-n:]

lines[-1:-n-1:-1]

lines.pop(n)

Answers

In writing a function that performs this function, the right statements that can go in the is lines[-n:] .

What tail command is seen in Linux?

Linux tail command is known to be a form of command that is used to show the last ten lines of one or a lot of files.

Note that Its key aim is to read the error message and as such In writing a function that performs this function, the right statements that can go in the is lines[-n:] .

Learn more about Linux  command  from

https://brainly.com/question/24822807

#SPJ1

explanation: how to have a good database?

Answers

For one to have a good database design one has to:

Share your information into a form of subject-based tables to lower the redundant data.Give an Access with the information it needs to add to the information in the tables altogether as required.Act as a form of aid and make sure of the accuracy and integrity of the information one has provided.

What is a database?

A database is known to be often set up so that there can be easy storage and access to any information.

Note that For one to have a good database design one has to:

Share your information into a form of subject-based tables to lower the redundant data.Give an Access with the information it needs to add to the information in the tables altogether as required.Act as a form of aid and make sure of the accuracy and integrity of the information one has provided.

Learn more about database  from

https://brainly.com/question/26096799

#SPJ1

10. When does teasing become cyberbullying?
A. When the words, images, or videos shift from humorous to hurtful.
B. When the comment gets over 100 likes.
C. When the victim finally gives away their personal information.
D. When the victim experiences physical harm.

Answers

Answer:

A) When the words, images or videos shift from humorous to hurtful.

Unlike kids who are being bullied, kids who are being teased can influence whether it continues or ends. If they get upset, the teaser usually stops.


Which of the following is not a reason to choose a community college?

Answers

They do not make as big of a impression than a famous university when applying for jobs.

Write an algorithm that describes the second part of the process of making change (counting out the coins and bills).

Answers

An Algorithm that describes the second part of the process can be written as listed below :

Algorithm describing the second part of the process of making change (counting out the coins and bills )

First step : Initialize the required variables to zero to determine the number of coins and bills.

Second step : Prompt and read the amount to convert. amount to Hundreds

Third step : Compute hundred bill note as 100 amount equal to  ( amount% * 100 fifties - amount )

Fourth step : Compute fifty bill notes as :  ( amount% * 50 fifty bill notes )

Fifth Step : Compute Twenty bill notes as amount equal to ( amount% *20 Twenties - amount )

Sixth Step : Compute Tens bill notes as : ( amount% * 10 Tens bill notes )

Note : continue the process for fives, Quarters, Dimes, Nickels, and Pennies.

Learn more about Algorithm : https://brainly.com/question/13800096

#SPJ1

Attached below is the missing part of the question

Write an algorithm that describes the second part of the process of making change (counting...

The Linux tail command prints the last maximum n lines of a file. When writing a function that performs this function, choose the correct statements that can go in the ?????.



lines[-n]

lines[-n:]

lines[len(lines)-n:]

lines[-1:-n-1:-1]

lines.pop(n)

Answers

The Linux tail command prints the last maximum n lines of a file. When writing a function that performs this function, in this case is lines[-n:].

Writing code in Linux:

def tail(filename, n=10) :

 with open(filename, "r") as

     lines = f.readlines()

  for line in lines[-n:] :

    print (lines)

See more about linux at brainly.com/question/15122141

#SPJ1

You see someone getting harassed online but decide to ignore it. You are a/an

Answers

If you see someone getting harassed online but decide to ignore it, then that person is a Bystander.

Who is a bystander?

A  bystander is known to be any body that is said to be   present at an event or incidence but they are said to be not involved in it.

Hence, If you see someone getting harassed online but decide to ignore it, then that person is a Bystander.

Learn more about Bystander from

https://brainly.com/question/3520355

#SPJ1

Attempt?
Natural Subsequence
In Timsort, we try to use the natural sorted subsequence already present in
the array which is to be sorted. The natural sorted sequences are those
array.
which are somehow already present in the sorted order in the provided
Your task is to find the length of the longest natural sorted subsequence
already present in the given string.
Input Specification:
input1: A string containing all lower case letters.
Revisit Later
Output Specification:
Return the length of the longest natural sorted subsequence.
Example 1:
input1: abzd

Answers

Using the knowledge in computational language in JAVA it is possible to write a code that an natural subsequence occurs.

Writting in JAVA:

import java.util.*;

class Main{

static int mn = -2147483648;

public static int longestSeq(String s)

{

int []dp = new int[30];

Arrays.fill(dp, 0);

int N = s.length();

int lis = mn;

for(int i = 0; i < N; i++)

{

 int val = (int)s.charAt(i) - 97;

 int curr = 0;

 for(int j = 0; j < val; j++)

 {

  curr = Math.max(curr, dp[j]);

 }

 curr++;

 lis = Math.max(lis, curr);

 dp[val] = Math.max(dp[val], curr);

}

return lis;

}

public static void main(String[] args)

{

Scanner sc=new Scanner(System.in);

String s=sc.nextLine();

System.out.print(longestSeq(s));

}

}

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

#SPJ1

Other Questions
Utilisez dans les phrases suivantes une forme des pronomsle, la, lesoul.1. O est mon livre? Je ne___trouve pas.2. Tu as le DVD? Je veux___regarder ce soir.3. Tu coutes les informations?Oui, je___coute tous les soirs.4. Tu prends la voiture de ton pre?Non. Je ne____prends pas aujourdhui.5. Je nai pas le cadeau de Paul. Je vais___acheter demain.Daniel parle avec Denise et Albert.Daniel: Qui est cette femme? Je ne____connais pas.denise: Cest MmeMartin, notre professeur de franais.daniel: Vous__ trouvez sympathique?Albert: Oh oui, les tudiants ___ aiment beaucoup.Daniel: Est-ce quelle connait tous les tudiants?Denise: Oui, elle___ connait tous.Daniel: Elle parle anglais (m.)?Albert: Oui, elle___ parle trs bien. Mais dans la classe, elle parle franais. 1/12^-2 using positive exponents Natasha had a $922.93 balance on her credit card at the beginning of September. Her credit card has an APR of 9.89%, compounded monthly, and a minimum monthly payment of 3.08% of the total balance. The following table shows Natashas credit card purchases over the next two months.MonthCost ($)September33.70October61.70October27.80If Natasha makes only the minimum payments, what will her balance at the beginning of November? (Assume that the interest accrues before the monthly payment, and that the monthly payment occurs at the end of the month. Round all dollar values to the nearest cent.) Which is a negative effect of social media on peer relationships Merits of suppliers pre qualification what does regional development means ? explain with proper example can anybody write me a hook or intro on why salary caps should not be abolished in professional sports please I've been stuck on this for hours this is my last resort Determine if each table below represents a linear function, quadratic function, or neither. point O, A, B lie on the same line. OA=12cm and OB=9cm. find the distance between the midpoints of segments OA and AB in each case Marta believes that the equation of the line of best fit for the scatterplot below is -. Which statement best summarizes why Marta is likely incorrect? Solve the following system by the substitution method. Check the solution(s)7x + 4y = 10x+y=1 Suppose that the functions and are defined as follows. p(x)=-x and q(x)=2x^2-2find the following (qp)(2)=and (pq)(2)= what role did the radio free play in western countries cold war straegy If the government increases the excise tax on a gallon of gasoline we can expect the supply curve to shift rightward, quantity demanded to fall, and price to rise. There are two numbers. One number is twice the other number. The difference of the smaller number and half the larger number is 20.An equation created to find the smaller number will have 1 ACTIVITY: Estimating a PartWork with a partner. Use a model to estimate the answer to each question.d. What number is 6% of 30? Identify one fact about mayor Bloomberg and the soda ban that both authors cite. Note a fact that appears in one piece but not the other how many real solutions does this system of equations have? y=x2+1 y=xA. 1B. 2C. 3D. 0 Grammar review Homework URGENT!!!WORTH 27 POINTS!!!Doug can download new songs for $1.19 each. Write an equation to show how many songs he can download for $12.00.A. 12x=1.19B. 12+x=1.19C. 1.19+x=12D. 1.19x=12