Write a C program in Unix which uses a function called search to find
the location of a value in THREE arrays of floats. The function should
take three parameters :
the value to be found
the array to be searched
the size of the array
N.B.!!!! The main program should read in three arrays of varying size
example : array a has twelve elements
array b has six elements
array c has nine elements
array d has four elements
input to these arrays terminated by illegal input(see handout)
the function should return for each array the index where the
value is found. If not found the function should return -1.
In: Computer Science
JAVA
Stack - Implementation.
You will be able to use the push, pop and peek of Stack concept. Post-Fix calculator - When an arithmetic expression is presented in the postfix form, you can use a stack to evaluate the expression to get the final value. For example: the expression 3 + 5 * 9 (which is in the usual infix form) can be written as 3 5 9 * + in the postfix. More interestingly, post form removes all parentheses and thus all implicit precedence rules.
Program Implementation Requirements
Use the stack concept to create a post-fix calculator. I will be using a test-harnessPreview the document to run your program. Please make sure it meets the requirements to be run by the test harness.
Test harness:
public class StackCalcTest {
public static void main(String[] args) {
StackCalc stackCalc = new StackCalc();
String[] values = {"3", "5", "9", "*", "+"};
for(int i = 0; i < 5; i++) {
stackCalc.stack.push(values[i]);
}
System.out.println(stackCalc.stack);
System.out.println(stackCalc.answer()); }}
In: Computer Science
For each of the following concepts: define it and give an example.
a. rule
b. rule control
c. rule-governed behavior
d. contingency control
e. contingency-governed behavior (contingency-shaped behavior).
In: Psychology
In: Operations Management
In the second row of the transition metals there are five elements that do not follow the normal orbital filling. Five - Nb, Mo, Ru, Rh, and Ag-result in a [Kr] 5s14dx configuration and Pd results in a [Kr] 4d10 configuration. Write the ground state electron configuration for the following species.
Ag
Ag+
Ru
Ru3+
Rh
Rh2+
Pd
Pd+
Pd2+
In: Chemistry
Stock (Div) | Div Yld % |
PE Ratio |
Close Price |
Net Chg |
||
Hi | Lo | |||||
64.60 | 47.80 | Abbott 1.12 | 1.9 | 235.6 | 62.91 | −.05 |
145.94 | 70.28 | Ralph Lauren 2.50 | 1.8 | 70.9 | 139.71 | .62 |
171.13 | 139.13 | IBM 6.30 | 4.3 | 23.8 | 145.39 | .19 |
91.80 | 71.96 | Duke Energy 3.56 | 4.9 | 17.6 | 74.30 | .84 |
113.19 | 96.20 | Disney 1.68 | 1.7 | 15.5 | ?? | .10 |
a. | Using the dividend yield, calculate the closing price for Walt Disney on this day. (Do not round intermediate calculations and round your answer to 2 decimal places, e.g., 32.16.) |
b. | Assume the actual closing price for Walt Disney was $108.85. Your research projects a 4 percent dividend growth rate for Walt Disney. What is the required return for the stock using the dividend discount model and the actual stock price? (Do not round intermediate calculations and enter your answer as a percent rounded to 2 decimal places, e.g., 32.16.) |
In: Finance
our pro forma income statement shows sales of $ 991 comma 000$991,000, cost of goods sold as $ 510 comma 000$510,000, depreciation expense of $ 99 comma 000$99,000, and taxes of $ 152 comma 800$152,800 due to a tax rate of 40 %40%. What are your pro forma earnings? What is your pro forma free cash flow? Complete the pro forma income statement below: (Round to the nearest dollar.) Sales $ Cost of Goods Sold $ Gross Profit $ Depreciation $ EBIT $ Taxes (40%) $ Earnings $
In: Finance
I need unique answer, NO COPY PLEASE!
What is a Database key?
Explain various types of database keys (Super key, Candidate key, Primary key and Foreign key) with your clear definitions/ideas and at least one appropriate example for each one of them.
In: Computer Science
In C ++, Design and implement a program that reads from the user four integer values between 0 and 100, representing grades. The program then, on separate lines, prints out the entered grades followed by the highest grade, lowest grade, and averages of all four grades. Format the outputs following the sample runs below.
Sample run 1:
You entered: 95, 80, 100, 70
Highest grade: 100
Lowest grade: 70
Average grade: 86.25
In: Computer Science
After downloading the workbook example source-code for Microsoft Visual Studio 2015-2017 Community Ed., and installing, configuring, and running Visual Studio with ASP.NET developers kit, develop and construct an APA formatted paper (also use LIRN (or JSTOR), Internet, and the textbook) that provides a detailed analysis of the following concepts:
The importance and proper of data validation for applications
The use of state(s), object(s) and their relationship to ASP.NET
Strategies for the use and implementation of master pages to enhance content
Implementation and use of Bootstrap in ASP.NET and strategies for generating HTML dynamically to enhance default styles
Advantages of using the FriendlyUrls feature in automating applications
The use of ADO.net in database programming
In: Computer Science
Excel work, please
Assume that a lender offers a 30-year, $150,000 adjustable rate mortgage (ARM) with the following terms: Initial interest rate = 7.5 percent Index = one-year Treasuries Payments reset each year Margin = 2 percent Interest rate cap = 1 percent annually; 3 percent lifetime Discount points = 2 percent Fully amortizing; however, negative amortization allowed if interest rate caps reached Based on estimated forward rates, the index to which the ARM is tied is forecasted as follows: Beginning of year (BOY) 2 = 7 percent; (BOY) 3 = 8.5 percent; (BOY) 4 = 9.5 percent; (EOY) 5 = 11 percent. Compute the payments, loan balances, and yield for the ARM for the five-year period.
In: Finance
Language: Java
Topic: Deques
Using the following variables/class:
public class LinkedDeque<T> {
// Do not add new instance variables or modify existing
ones.
private LinkedNode<T> head;
private LinkedNode<T> tail;
private int size;
Q1: Write a method called "public void addFirst(T data)" that does the following:
* Adds the element to the front of the deque.
* Must be O(1)
* @param data the data to add to the front of the deque
* @throws java.lang.IllegalArgumentException if data is null
Q2: Write a method called "public void addLast(T data)" that does the following:
* Adds the element to the back of the deque.
* Must be O(1)
* @param data the data to add to the back of the deque
* @throws java.lang.IllegalArgumentException if data is null
In: Computer Science
Examples:
Write a java program to read a line of text and tell if the line is a palindrome. Use a stack to read each non-blank character on a stack. Treat both upper-case and lower-case version of the letter as being the same character.
- Provide these 5 sample outputs and tell if each is a palindrome or not.
Too bad--I hid a boot
Some men interpret eight memos
"Go Hang a Salami! I'm a Lasagna Hog"
(title of a book on palindromes by Jon Agee, 1991)
A man, a plan, a canal—Panama
Gateman sees my name, garageman sees name tag
Show the LinkedtStackADT<T> interface
2. Create a LinkedStackDS<T> with the following methods: default constructor, overloaded constructor, copy constructor, isEmptyStack, push, peek, pop
3. Create a private inner StackNode<T> class with the following methods: default constructor, overloaded constructor, toString
3. Exception classes: StackException, StackUnderflowException, StackOverflowException
4. Create a PalindromeDemo class that instantiates a LinkedStackDS<Character> object. Execute a do-while loop that asks the user using dialog boxes to “Input a String for Palindrome Test:” Use the replaceAll method to remove all blanks and special characters from testStr. Output whether or not it is a palindrome in a dialog box. [Use the 5 inputs given on the other handout sheet for testing.]
In: Computer Science
Brief Introduction
Suppose that you are an analyst for the ABC Company, a large consulting firm with offices around the world. The company wants to build a new knowledge management system that can identify and track the expertise of individual consultants anywhere in the world on the basis of their education and the various consulting projects on which they have worked. Assume that this is a new idea that has never before been attempted in ABC or elsewhere. ABC has an international network, but the offices in each country may use somewhat different hardware and software. ABC management wants the system up and running within a year.
Action Items
Given the situation, what methodology would you recommend that ABC Company use? Why?
Please, Please, Please and Please…
1. I need new and unique answers, please. (Use your own words, don't copy and paste, even when you answer like theses answers before.)
2. Please Use your keyboard to answer my Questions. (Don't use handwriting)
3. Please and please i need a good and a perfect answers.
Thank you..
In: Computer Science
Dinklage Corp. has 6 million shares of common stock outstanding. The current share price is $85, and the book value per share is $8. The company also has two bond issues outstanding. The first bond issue has a face value of $65 million, a coupon rate of 8 percent, and sells for 95 percent of par. The second issue has a face value of $40 million, a coupon rate of 9 percent, and sells for 108 percent of par. The first issue matures in 23 years, the second in 5 years.
Suppose the most recent dividend was $5.70 and the dividend growth rate is 4 percent. Assume that the overall cost of debt is the weighted average of that implied by the two outstanding debt issues. Both bonds make semiannual payments. The tax rate is 38 percent. What is the company’s WACC? (Do not round intermediate calculations. Enter your answer as a percent rounded to 2 decimal places, e.g., 32.16.)
In: Finance