What is my problem in Mathematics ?
While programming I did not have this mathematical formula in my mind : n*(n-1)/2 . The skill itself . So I was unable to find a solution because of lacking this formua in my mind.
What is my problem niow ? What should I reverse ? Algebra or what?
What is my problem in Mathematics ? While programming I did not have this mathematical formula...
Hello, I have my piece of C programming code and I have a pointer initialized to point to my array and I need help to display the contents of my array using a while loop or do-while loop. The stop condition should be when the pointer reaches '\0'. The code is below: #include <stdio.h> int main () { char array[80]; printf("Enter a string: "); scanf("%[^\n]", &array); printf("%s\n", array); char * p; p = array; }
I want to know why did my professor modify the formula in this problem? When solving for depreciation, I know the formula is (depreciation = [initial cost - residual value / # of useful years]). However, my professor did this instead: depreciation = initial cost / # of useful years. The problem states that you should find the deprecation using the straight line method. Here is the problem for reference: Using the operating cash flow information from the previous problem,...
I have a question on an assignment for C++. I have my code available here and just want someone to look over it using MS VS 2010 express, for that is what my instructor is using. Write a program that mimics a calculator. The program should take as input two integers and the opreation to be performed. It should then output the numbers, the operator, and the result. (For division, if the denominator is zero, output an appropriate message.) //**This...
PHILOSOPHY: 1. What is the mind-body problem? a.) Why does my body not do what my mind tells it to? b.) How does the mind relate to the body? c.) How can there be thoughts and no souls? d.) How can it be 'mind over matter' in certain contexts? The mind-body problem is a very, very, old puzzle in philosophy. It is trying to explain how our 'what-it's-likenesses' relate to our bodily states. It's trying to explain how our thoughts,...
Discrete mathematics 2) Let be eumber of ternary strings (of 0s, 1s and 2s) of length n that have no adjacent even digits. For example, so (the empty string), s3 (the strings 0, 1 and 2), while s2 5: 01, 0, 12, 2 because the strings 00,02, 20, 22 are not allowed, as they have adjacent even digits. As another example, the string 10112 is allowed, while the strings 10012 and 120121 are not allowed (a) Find #3; (b) find...
8. I was working on a trading desk. One year, my team did not make its number, which meant no bonuses and maybe even some of us would be fired. My boss was a good friend of the head of our division so the head agreed to “reallocate” some of the profit from other teams to ours. So my team got a bonus. When I asked my boss about the ethics of this action, she was annoyed that I was...
So i have the solution for this problem, but my questions is that when they were finding the sound intensity level where did they get the initial intensity? ( 1 × 10−12) A speaker with a power of 58 W is playing music. What is the sound intensity level of the music at a distance of 22 m? Assume that the sound can only be heard in front of the speaker and not behind it. Solution: In order to find...
getchar() redirect to input textfile in ASCI C programming. Hello, underneath is the code I did and it works. However, my professor is asking to use getchar() and have an input text file to redirect it. How would i do that on my code? Thank you for the help. #include <stdio.h> #include <string.h> int main() { char string[100]; int c = 0, Lcase[26] = {0}, x; int Ucase[26] = {0}; printf("Enter a string\n"); gets(string); while (string[c] != '\0') {...
Could you also please leave notes so I can follow what you did. Thanks With the same DLLNode definition as in the previous problem, implement a method to reverse the sequence of items in a OLL, bur code should NOT creste any new nodes- it should simply the original nodes. The method should return the front of the resulting list. public static DLLNode reverse(DLLNode front) COMPLETE THIS METHOD
Design a dynamic programming algorithm for the problem. Define the original problem as a function that takes parameters, and return some results. Define the subproblems Write recursive formula that relates a problem's solution to solutions of smaller subproblems. Finally write out pseudocode for the algorithm (using top-down memoization or bottom-up) Suppose a list Р[L..n] gives the daily stock price of a certain company for a duration of n days, we want to find an optimal day di to buy the...