Questions
Search the internet for 5 open source reporting software packages of your choice? Explain why you...

Search the internet for 5 open source reporting software packages of your choice? Explain why you think these software packages are the best for BI/DSS Reporting? Choose one of them and do associated with the reporting software package. Explain how easy it was for you to use the software?

In: Computer Science

Complete the following task in C++. You may use the following libraries cstdlib, string, iostream. 1...

Complete the following task in C++. You may use the following libraries cstdlib, string, iostream.

1 dLL
The class is described according to the simple UML diagram below:


dLL<T>
-head: item<T>*
-tail: item<T>*
-size: int
----------------------------
+dLL()
+~dLL()
+getHead(): item<T>*
+getTail(): item<T>*
+push(newItem:item<T>*):void
+pop():item<T>*
+getItem(i:int):item<T>*
+minNode():T
+getSize():int
+printList():void


The class variables are as follows:


head: The head pointer of the doubly linked list.
tail: The tail pointer of the doubly linked list.
size: The current size of the doubly linked list. This starts at 0 and increases as the list grows in size.


The class methods are as follows:
dLL: The class constructor. It starts by setting the variables to null and 0 respectively.
~dLL: The class destructor. It will deallocate all of the memory in the class.
getHead: This returns the head pointer of the doubly linked list.
getTail: This returns the tail pointer of the doubly linked list.
push: This adds a new item to the doubly linked list, by adding it to the front of the list.
pop: This returns the top item of the linked list. The item is returned and removed from the list.
getItem: This returns the item of the linked list at the index specified by the argument but without removing it from the list. If the index is out of bounds, return null.
minNode: This returns the value of the item that has the lowest value in the linked list.
getSize: This returns the current size of the linked list.
printList: This prints out the entire list in order, from head to tail. Each item's data value is separate by a comma. For example: 3.1,5,26.6,17.3. Remember to add a newline to the end of the output.

2. item


The class is described according to the simple UML diagram below:


item <T>
-data:T
-------------------
+item(t:T)
+~item()
+next: item*
+prev: item*
+getData():T


The class has the following variables:


data: A template variable that stores some piece of information.
next: A pointer of item type to the next item in the linked list.
prev: A pointer of item type to the previous item in the linked list.


The class has the following methods:


item: This constructor receives an argument and instantiates the data variable with it.
~item: This is the destructor for the item class. It prints out "Item Deleted" with no quotation marks and a new line at the end.
getData: This returns the data element stored in the item.

In: Computer Science

Convert -99.999 into double precision floating format show all steps and explanations

Convert -99.999 into double precision floating format

show all steps and explanations

In: Computer Science

Python Language - Cant seem to get the correct output. Also, need through explanation if possible....

Python Language - Cant seem to get the correct output. Also, need through explanation if possible. much appreciative

XXXXX PYTHON>>>>>>>>>

Write a function named shareOneLetter that takes one parameter, wordList a list of words.

Create and return a dictionary in which each word in wordList is a key and the corresponding value is a list of all the words in wordList that share at least one letter with that word. There should be no duplicate
words in any value in the dictionary.

For example, the following is correct output:
print(shareOneLetter(horton))
{'I': ['I'], 'say': ['say', 'what', 'mean', 'and'], 'what': ['say', 'what', 'mean',
'and'], 'mean': ['say', 'what', 'mean', 'and'], 'and': ['say', 'what', 'mean', 'and']}

In: Computer Science

This laboratory is designed to get you started with the project and random access file I/O....

This laboratory is designed to get you started with the project and random access file I/O.

  1. Open your source file and write or copy the code for the class interface for the Sdisk.
    Class Sdisk
    {
    public :
    Sdisk(string diskname, int numberofblocks, int blocksize);
    int getblock(int blocknumber, string& buffer);
    int putblock(int blocknumber, string buffer);
    int getnumberofblocks(); // accessor function
    int getblocksize(); // accessor function
    private :
    string diskname;        // file name of software-disk
    int numberofblocks;     // number of blocks on disk
    int blocksize;          // block size in bytes
    };
  2. You can copy a sample main program from here.
    // You can use this to test your Sdisk class 
    
    int main()
    {
      Sdisk disk1("test1",16,32);
      string block1, block2, block3, block4;
      for (int i=1; i<=32; i++) block1=block1+"1";
      for (int i=1; i<=32; i++) block2=block2+"2";
      disk1.putblock(4,block1);
      disk1.getblock(4,block3);
      cout << "Should be 32 1s : ";
      cout << block3 << endl;
      disk1.putblock(8,block2);
      disk1.getblock(8,block4);
      cout << "Should be 32 2s : ";
      cout << block4 << endl;;
    }
  3. Create function stubs (functions with no code) for the class functions.
  4. Work first on the constructor that creates the Sdisk.
  5. Now work on putblock to open the file and write a block.
  6. Finally work on getblock to open the file and get a block.
  7. Now test with the example main program.

In: Computer Science

Instructions:  Save this file as YourName_PracticeDebuggingTest. - Part 1 – 4 Debugging Exercises – there are things...

Instructions:  Save this file as YourName_PracticeDebuggingTest.

- Part 1 – 4 Debugging Exercises – there are things wrong – either logic or syntax errors.  Correct the pseudocode and one Java program. Add the corrected code in BOLD and change the corrected color to RED.  

Part 1

Debugging 1:  Add the missing code in bold and red.

start

         Declarations

                                    num firstNum

                                    num secondNum

                                    string MSG = “Got it!”

                  housekeeping()

                  detail()

                  finish()

         stop

         housekeeping()

                  output “Enter three numbers: ”

                  input firstNum, thirdNum

         return

         detail()

                  if ((firstNm + secondNum) = thirdnum) OR

                     ((secondNum + thirdNum) = firstNum)) OR

                     ((firstNum + thirdNum) = secondNum) then

                                    output MSNG

                  endif                          

return

finish()

         output “End of program”

return

In: Computer Science

Convert 103.375 into double precision floating format show all steps and explanations

Convert 103.375 into double precision floating format

show all steps and explanations

In: Computer Science

- Part 1 – 4 Debugging Exercises – there are things wrong – either logic or...

- Part 1 – 4 Debugging Exercises – there are things wrong – either logic or syntax errors.  Correct the pseudocode and one Java program. Add the corrected code in BOLD and change the corrected color to RED.  

Debugging 2:  Add the missing code in bold and red.

start

                  Declarations

                           num number

         

                  housekeeping()

                  while number >= 15

                           detailLoop()

                  endwhile

         

                  finish()    

stop

housekeeping()

         number = 1

return

detailLoop()

         output number

         num = number + 1

return

finishUp()

         output “End of program”

return

In: Computer Science

8.25 Lab 6b Switching Up Months Objectives Use Boolean expressions involving String comparison Use String methods...

8.25 Lab 6b Switching Up Months

Objectives

  • Use Boolean expressions involving String comparison
  • Use String methods substring, toUpperCase, equals, and charAt
  • Use switch program control statement
  • Print out a program and turn it in for "eyes-on" grading

Introduction

In this lab you will continue using the other type of conditional statements: the switch-case.

For switch-case conditional statements, the idea is that you have a variable (the switch) that will determine the next course of action depending on its value (the case).

Example structure would be:

int someVariable = 2;
switch (someVariable){
    case 1: /*do something*/;
            break;
    case 2: /*do something else*/;
            break;

}

someVariable is your swtich and the program will decide a case according to its value.

Assignment

Write the class SwitchingUpMonths.java. This program will be completing exactly the same task as Lab3c, however you will need to use switch-case conditional statements instead of if-else.

That is, your program must:

  1. Asks a user to enter the name of a month
  2. Confirms the User's input.
  3. Prints the abbreviation and number corresponding to that month.

The sample output for input February:

Enter the month: 
You entered February
Its abbreviation is FEB
This is month number 2

In: Computer Science

Adding code that will keep cumulative count of characters? Hello, I am having issues in figuring...

Adding code that will keep cumulative count of characters?

Hello, I am having issues in figuring out how to keep letter from a .txt file with the declaration of independence, this is my code, I can keep track of the frequency but can't figure out the way to keep adding the total characters, as the you go down the alphabet the number is supposed to be counting up

#define _CRT_SECURE_NO_WARNINGS
#include
#include
#include
#include

#define DEBUG

void main()
{
   FILE* fp;

   int numChars[26] = { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 }; //26 characters
   unsigned char c;
   int ndx;
   if ((fp = fopen("DOI.txt", "r")) != NULL)
   {
       while (1)
       {
           c = fgetc(fp);

           if (feof(fp))
           {
               break;
           }

           if (!isalpha(c))
           {
               continue;
           }

           ndx = toupper(c) - 'A';
           numChars[ndx]++;
       }

       printf("Letter\tFrequency\tTotal Characters\n");
       printf("------\t---------\t---------------\n");
       for (int i = 0; i < 26; i++)
       {
           printf("%c\t%3d\t%d\n", i + 'A', numChars[i]); //Here is where I should add the counter but can't figure out how to make it work
       }

       fclose(fp);
   }
   else
   {
       perror("Unable to open file");
   }

   getchar();
}

In: Computer Science

1. Write a program that will do file processing. 2. First, create a data file (A7_in.txt)....

1. Write a program that will do file processing.
2. First, create a data file (A7_in.txt). It can contain any number (no fewer than 3) integers, each integer on it’s own line.
3. Your program will read and sum each integer until the EOF.
4. Your program will then find the average of the integers and output the average to another file (A7_out.txt).

c++

In: Computer Science

Host A and B are communicating over a TCP connection, and Host B has already received...

Host A and B are communicating over a TCP connection, and Host B has already received from A all bytes up through byte 99. Suppose Host A then sends two segments to Host B back-to-back. The first and second segments contain 30 and 70 bytes of data, respectively. In the first segment, the sequence number is 100, the source port number is 4321, and the destination port number is 80. Host B sends an ACK whenever it receives a segment from Host A, i.e., no delayed ACK.

  1. In the second segment sent from Host A to B, what is the sequence number?
  2. If the first segment arrives before the second segment, in the ACKs of two arriving segments, what are the acknowledgment numbers of the first and second arriving segment, respectively? What are the source port number and the destination port number in ACK?
  3. If the second segment arrives before the first segment, in the ACKs of two arriving segments, what are the acknowledgment numbers of the first and second arriving segment, respectively?
  4. Suppose the two segments sent by A arrive in order at B. The first ACK is lost and the second ACK arrives before the first timeout interval. What will happen at Host A? If Host A needs to retransmit some segment, what are the sequence number and the number of bytes of the data? Now assume the first ACK is lost and the second ACK arrives after the first timeout interval. What will happen at Host A? If Host A needs to retransmit some segment, what are the sequence number and the number of bytes of the data?

In: Computer Science

Your friend has a company leading textile enterprise in your city and needs to develop a...

Your friend has a company leading textile enterprise in your city and needs to develop a next generation (information system) strategic plan. Select the most powerful technique of strategic planning which can be used to help him achieve his goals

In: Computer Science

CREATE TABLE Hotel ( roomNumber     INTEGER         PRIMARY KEY, type                  CHAR(1

CREATE TABLE Hotel

(

roomNumber     INTEGER         PRIMARY KEY,

type                  CHAR(10)         NOT NULL,

rate                   INTEGER         NOT NULL,

--

CONSTRAINT IC1 CHECK (type IN ('suite', 'king', 'queen')),

CONSTRAINT IC2 CHECK (type <> 'suite' OR rate > 200),

CONSTRAINT IC3 CHECK (NOT (type = 'king' AND (rate < 80 OR rate > 220))),

CONSTRAINT IC4 CHECK (NOT (type = 'queen' AND rate >= 100))

);

which 8 of these inserts will be rejected only 8 are rejected

1.

INSERT INTO Hotel VALUES (21, 'king', 90);

2.

INSERT INTO Hotel VALUES (42, 'suite', 230);

3.

INSERT INTO Hotel VALUES (52, 'suite', 200);

4.

INSERT INTO Hotel VALUES (40, 'queen', 230);

5.

INSERT INTO Hotel VALUES (31, 'king', 50);

6.

INSERT INTO Hotel VALUES (30, 'queen', 50);

7.

INSERT INTO Hotel VALUES (22, 'suite', 90);

8.

INSERT INTO Hotel VALUES (10, 'queen', 210);

9.

INSERT INTO Hotel VALUES (20, 'queen', 90);

10.

INSERT INTO Hotel VALUES (51, 'king', 220);

11.

INSERT INTO Hotel VALUES (41, 'king', 230);

12.

INSERT INTO Hotel VALUES (32, 'suite', 50);

13.

INSERT INTO Hotel VALUES (11, 'king', 210);

14.

INSERT INTO Hotel VALUES (12, 'suite', 210);

15.

INSERT INTO Hotel VALUES (50, 'queen', 100);

In: Computer Science

Create a List Create a class that holds an ordered list of items. This list should...

Create a List

Create a class that holds an ordered list of items. This list should have a variable size, most importantly this class should implement the interface SimpleArrayList. Feel free to add as many other functions and methods as needed to your class to accomplish this task. In other words, you have to write the code for each of the functions specified in the SimpleArrayList interface.

You are not allowed to use any 3rd party data structures or libraries such as Java.Utils.ArrayList or Java.awt.ArrayList

Please use the class SimpleArrayListUnitTest.java to test your code, it is a JUnit test that contains 49 different tests that test all the functions of your class.

(using Eclipse.. I don't have any idea :()

In: Computer Science