Reverse the contents of a stack using only stack operations [ push() and pop() ].
Using the java and give the explanation
In: Computer Science
Omnicom Group is considering spending $350,000 at Time 0 to test a new product. Depending on the test results, the company may decide to spend $786,000 at Time 1 to start production of the product. If the product is introduced and it is successful, it will produce aftertax cash flows of $654,000 a year for Years 2 through 5. The probability of successful test and investment is 60 percent. What is the net present value at Time 0 given a 14 percent discount rate?
$239,246.24
$231,875.30
$238,579.49
$243,618.25
$249,864.27
In: Finance
Find the maximum value and minimum value in milesTracker. Assign the maximum value to maxMiles, and the minimum value to minMiles. Sample output for the given program:
Min miles: -10 Max miles: 40
Java Code: Remember we can only add to the code. We cant change whats already given. Thank you.
import java.util.Scanner;
public class ArraysKeyValue {
public static void main (String [] args) {
Scanner scnr = new Scanner(System.in);
final int NUM_ROWS = 2;
final int NUM_COLS = 2;
int [][] milesTracker = new int[NUM_ROWS][NUM_COLS];
int i;
int j;
int maxMiles; // Assign with first element in milesTracker before
loop
int minMiles; // Assign with first element in milesTracker before
loop
for (i = 0; i < milesTracker.length; i++){
for (j = 0; j < milesTracker[i].length; j++){
milesTracker[i][j] = scnr.nextInt();
}
}
/* Answer goes here*/
System.out.println("Min miles: " + minMiles);
System.out.println("Max miles: " + maxMiles);
}
}
In: Computer Science
A sample of pure NO2 is heated to 336?C at which temperature it
partially dissociates according to the equation
2NO2(g)?2NO(g)+O2(g)
At equilibrium the density of the gas mixture is 0.525g/L at
0.755atm . Calculate Kc for the reaction. Thank you for your
help!
In: Chemistry
Question 2. Write a complete C++ program that uses a 2-dimensional array with 4 rows and 30 columns. Row represents sections of a course and column represents the students, value inside each position of the array is the final exam grade for each students. Fill the array with random numbers between 40 and 100. Calculate the total, average, maximum, minimum for each section. Please do it simple. code
In: Computer Science
For this assignment, you can build on the 9th exercise that you made for the Assignment 1. So, you have a file named “band.html”.
Here is the band.html page that I did in the last assignment that this assignment starts off with:
<!DOCTYPE html>
<html lang="en">
<head>
<title>Assignment One</title>
<meta charset="utf-8">
</head>
<body>
<!--HTML to display name with largest heading element -->
<h1>My Name</h1>
<hr>
<!-- absolute link to school website -->
<a href="https://www.uncg.edu/">UNCG</a>
<hr>
<!--Unordered list to display days of the week -->
<h3>Week Days</h3>
<ul>
<li>Sunday</li>
<li>Monday</li>
<li>Tuesday</li>
<li>Wednesday</li>
<li>Thursday</li>
<li>Friday</li>
<li>Saturday</li>
</ul>
<hr>
<!--4 -->
<h3>Ordered List</h3>
<!--Ordered list -->
<ol type="A">
<li>HTML</li>
<li>XML</li>
<li>XHTML</li>
</body>
</html>
Website Section
<!DOCTYPE html>
<html lang="en">
<head>
<!--title for web page -->
<title>My Favorite Musical Group</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<h1>My Favorite Musical Group: Old Dominion</h1>
<h3>Group Members:</h3>
<!-- Unordered list -->
<ul>
<li>Matthew Ramsey</li>
<li>Trevor Rosen</li>
<li>Brad Tursi</li>
<li>Geoff Sprung</li>
<li>Whit Sellers</li>
</ul>
<h3>Albums:</h3>
<!--Description List -->
<dl>
<li>Happy Endings (2017) - This album is my favorite of all their albums. It contains some well-known songs, such as "No Such Thing as a Broken Heart," "Hotel Key," and "Written in the Sand." </li>
<li>Meat and Candy (2015) - This album was their first album and it really set the tone for the rest of their music to come. It was an overall very vocally strong album. </li>
</ol>
<hr>
<!--hyperlink -->
click here for <a href="https://www.weareolddominion.com/">more details</a>
</body>
</html>
In: Computer Science
In: Economics
construct a 10 year amortizing loan table with 8% interest rate. You borrow $30,000 initially and repay it in your ten equal annual year-end payments. Show only the first three years.
In: Finance
In Chapter 7 the concept of efficient markets is discussed. An efficient market is one in which there are many buyers and sellers analyzing securities, and security prices react quickly to new information. How efficient do you think our stock market is? If it is not perfectly efficient, what prevents it from being so? What are ways to make it more efficient?
In: Finance
Hi, I need the HTML5 code for the below.
About Me
**Would like to add a image of a plane or something related to travel here.
Mia Jo
I am taking this class to earn my Computer programmer CL1.
Things I Like to Do:
Places I Want to Go or Have Visited:
Dubai- December'18 Enjoyed shopping and the desert safari the most.
Cuba- August '18 Enjoyed learning about the culture and history.
China- plan to visited next year!!! I can't wait to see the Great Wall of China!
Iceland- At the top of my bucket list.
Education:
I am a second semester student at Star College.
My Goals:
Favorite Website:
https://www.travelchannel.com
Contact Information:
555 on my way st • Houston, TX 77339 • (218) 555-1212
In: Computer Science
Write a loop that sets each array element to the sum of itself and the next element, except for the last element which stays the same. Be careful not to index beyond the last element. Ex:
Initial scores: 10, 20, 30, 40 Scores after the loop: 30, 50, 70, 40
The first element is 30 or 10 + 20, the second element is 50 or 20 + 30, and the third element is 70 or 30 + 40. The last element remains the same.
JAVA CODE:
import java.util.Scanner;
public class StudentScores {
public static void main (String [] args) {
Scanner scnr = new Scanner(System.in);
final int SCORES_SIZE = 4;
int[] bonusScores = new int[SCORES_SIZE];
int i;
for (i = 0; i < bonusScores.length; ++i) {
bonusScores[i] = scnr.nextInt();
}
/* Your solution goes here */
for (i = 0; i < bonusScores.length; ++i) {
System.out.print(bonusScores[i] + " ");
}
System.out.println();
}
}
In: Computer Science
A hospital aims at providing patient-centered quality healthcare that is accessible and seamless, comprehensive, appropriate, and cost effective. How can Lean Six Sigma help them achieve this objective
In: Operations Management
what are the three most common ways to deliver oral presentations
In: Operations Management
In: Economics
No handwriting or photo (tax accounting)
a-Explain the different concepts of income from accounting, economics and taxation perspectives
b-What is the difference between deductions for and deductions from adjusted gross income AGI under US tax law? Give two examples of each deduction
In: Accounting