[solved] – Question 82355
//Answer Code attached; I try to compile it but it doesn’t work
#include<iostream>
#include<ctime>
#include <string>
using namespace std;
class List
{
struct Node
{
int data;
Node *next;
};
Node *head;
public:
List()
{
head = NULL;
}
~List()
{ // delete the list while(head != NULL) {
Node * n = head->next;
delete head;
head = n;
}
void add(int value)
{
Node * n = new Node;
n->data = value;
n->next = head;
head = n;
}
void show()
{
while(head !=NULL)
{
Node * n = head->next;
cout<< head->data <<“, “; head = n;
}
cout << endl;
}
};
int main()
{
time_t t=time(NULL);
List MyList;
MyList.add(5);
MyList.add(12);
MyList.add(24);
MyList.add(32);
MyList.add(47);
MyList.add(54);
MyList.add(65);
MyList.show();
cout<<“Today is: “<< ctime(&t) << endl;
system(“pause”);
return 0;
}
Expert Answer
[solved] – Question 82363
For an airlines company, identify three operational applications that would feed into the data warehouse. What would be the data load and refresh cycles?
Expert Answer
[solved] – Question 8238
write a c plus plus program to input the set of array elements and print it in reverse order.
Expert Answer
[solved] – Question 82413
Write an if/else statement that assigns True to fever if temperature is greater than 98.6; otherwise it assigns False to fever.
Expert Answer
[solved] – Question 82466
The Harrison Group Life Insurance company computes annual policy premiums based on the age the customer turns in the current calendar year. The premium is computed by taking the decade of the customer’s age, adding 15 to it, and multiplying by 20. For example, a 34-year-old would pay RM360, which is calculated by adding the decades (3) to 15, and then multiplying by 20. Write C++ program that prompts a user for the current year and a birth year. The program calculates and display the premium amount
Expert Answer
[solved] – Question 8247
Hello! How can I measure time of executing of this program? Thanks!
package hanoi;
public class Test {
/**
* @param args
*/
public static void main(String[] args) {
final byte size = 35;
Tower t = new Tower(size);
t.MoveTower(size, 1, 3, 2);
System.out.println(t.getSteps());
System.out.println(Math.pow(2, size) – 1);
}
}
Expert Answer
[solved] – Question 82491
Sum Series
m(i) = 1/i + 2/i-1 + 3/i-2… t-1/2 + i/1
define a function that returns m(i) for a given i. The function header looks like:double m(int i) Write a test program that prompts the user to enter a positive integer and displays a table that prints values m(i) from 1 to i, as shown below. In the second column, format the outputs with 4 digits after decimal point.Note, do not accept an input integer which is less than or equal to 0.
Expert Answer
[solved] – Question 82492
Gas PumpA gas pump calculates the cost of gas at a local gas station. The station charges $2.59 per gallon for regular grade gas, $2.79 per gallon for special grade gas, and $2.99 per gallon for super grade gas. Create an application that simulates the functionality of the gas pump. The user picks a grade of gas, and then enters the number of gallons. The program then displays the purchase details and the charge of the purchase.Define a void function namedgasCost, which accepts a char as the gas grade selected and a double as the number of gallons purchased as arguments. The function then calculates and displays the purchase details and total cost. For example: You purchased 38.25 gallons Regular grade gas at $2.59 per gallon. Your payment is $ 99.07. Write a program that prompts the user for the gas grade, and number of gallons, passes the values to the gasCost() function and then displays the charge on the console.
Expert Answer
[solved] – Question 82552
2 How Buffering can improve the performance of a Computer system?
course name (Operating System)
Expert Answer
[solved] – Question 82553
how to make a game server. like cs source and the port forwarding procedure. and in the end when i give my ip to the other friend the server has to bee shown
Expert Answer

