[solved] – Question 84416
I am on a project, I design an interactive platform, but when the student send his message the supervisor reads if the student send another the message fails to pop up please can someone help me out on this
Expert Answer
[solved] – Question 8449
Write a program that calculates how much money you’ll end up with if you invest an amount of money at a fixed interest rate, compounded yearly. Have the user furnish the initial amount, the number of years, and the yearly interest rate in percent. Some interaction with the program might look like this: Enter initial amount: 3000 Enter number of years: 10 Enter interest rate (percent per year): 5.5 At the end of 10 years, you will have 5124.43 dollars. At the end of the first year you have 3000 + (3000 * 0.055), which is 3165. At the end of the second year you have 3165 + (3165 * 0.055), which is 3339.08. Do this as many times as there are years. A for loop makes the calculation easy.
Expert Answer
[solved] – Question 84494
Write a program that is a database for tests/projects assigned by professors. It needs to be in a calendar format and send out an error message when more than one assignment is due on the same day. First, I need determine some of the general algorithms that will be necessary to implement for the project
make your program will read at least three relevant inputs from the keyboard, store them in variables and output three comments to the display including at least one that includes input. This will be done in Microsoft visual studio. Thank you
Expert Answer
[solved] – Question 8450
can someone help me with this…the program should exit it shounld go back to the start…help .it is forloop…help me fast…email me the ans..plzzzz.. 🙂
#include <iostream.h>
#include <stdlib.h>
int main()
{
double princple_amount,rate;
int years,x;
cout<<“Enter initial amount : t” ;
cin>>princple_amount;
cout <<endl;
cout<< “number of years: t”;
cin>>years;
cout <<endl;
cout<<“Enter interest rate (percent per year):t” ;
cin>>rate;
cout <<endl;
for ( x=1;x<=years; x=x+1)
{
princple_amount= princple_amount+(princple_amount*rate/100);
}
cout<< ” At the end of “<<years<< ” years, you will have t$”;
cout<<princple_amount<<endl;
system(“PAUSE”);
return 0;
}
Expert Answer
[solved] – Question 84554
Is the statement true or false?
If the primal Linear Programming Problem has an unbounded solution, the dual Linear Programming Problem cannot have a feasible solution.
Expert Answer
[solved] – Question 84556
Is the statement true or false?
The forward and backward recursive formulation in Dynamic programming techniques can result in different optimum solutions to the same problem.
Expert Answer
[solved] – Question 84586
Find the time complexity of the following algorithms in terms of Big O.
1)A function (or set of statements) that doesn’t contain loop, recursion and call to any other non-constant time function.
2)A loop or recursion that runs a constant number of times, such as follows:
for (int i = 1; i <= c; i++) // Here c is a constant
{
// some O(1) expressions
}
3)A loop where the loop variables is incremented / decremented by a constant amount, as follows:
// Here c is a positive integer constant
for (int i = 1; i <= n; i += c) {
// some O(1) expressions
}
4)Time complexity of nested loops as follows:
// Here c is a positive integer constant
for (int i = 1; i <=n; i += c) {
for (int j = 1; j <=n; j += c) {
// some O(1) expressions
}
}
//Or the following nested loop
for (int i = n; i > 0; i += c) {
for (int j = i+1; j <=n; j += c) {
// some O(1) expressions
}
Expert Answer
[solved] – Question 84587
Find the time complexity of the following algorithms in terms of Big O.
1)Time Complexity of a loop if the loop variables is divided / multiplied by a constant amount as follows:
for (int i = 1; i <=n; i *= c) {
// some O(1) expressions
}
2)Time Complexity of a loop if the loop variables is reduced / increased exponentially by a constant amount as follows:
// Here c is a constant greater than 1
for (int i = 2; i <=n; i = pow(i, c)) {
// some O(1) expressions
}
//Here fun is sqrt or cuberoot or any other constant root
for (int i = n; i > 0; i = fun(i)) {
// some O(1) expressions
}
3)What is the returned value of the following function?
int Fun(int n) {
int i, j, k = 0;
for (i = n/2; i <= n; i++)
for (j = 2; j <= n; j = j * 2)
k = k + n/2;
return k;
}
Expert Answer
[solved] – Question 84599
Q12. A user has written a cpp program in capital case and saved it as “my.cpp”. Since C++ recognizes only lower case, write a program to read the above file and convert the entire program to lower case and save it to another file named “mynew.cpp”.
Expert Answer
[solved] – Question 846
Suppose we have several lines in a file and we have 10 values in each line. For example,
1 5 5 5 5 5 5 3 5 5
3 4 4 4 2 4 4 4 4 4
5 2 2 2 2 2 4 4 4 4
6 5 5 5 5 5 5 3 5 5
8 4 4 4 2 4 4 4 4 4
9 2 2 2 2 2 4 4 4 4
. The first value in each line represents student ID, and the following 9 values represent 9 homework grades. As we will do in this class, we would like to find the sum of the best eight homework grades (in another words, subtract the lowest homework grade from the sum of nine homework grades). Then we would like to write student ID and the sum of the best eight homework grade into output-hw05.txt file
Expert Answer

