Questions
JAVA PROGRAM Question : Design and implement two classes called InfixToPostfix and PostFixCalculator. The InfixToPrefix class...

JAVA PROGRAM

Question : Design and implement two classes called InfixToPostfix and PostFixCalculator. The InfixToPrefix class converts an infix expression to a postfix expression. The PostFixCalculator class evaluates a postfix expression. This means that the expressions will have already been converted into correct postfix form. Write a main method that prompts the user to enter an expression in the infix form, converts it into postfix, displays the postfix expression as well as it's evaluation. For simplicity, use only these operators, + , - , * , / and %.

I need help answering the programming question, not sure how this really functions. If you can please explain how it works with comments. Thank you I greatly appreciate the help.

In: Computer Science

1. In a few sentences, describe how the functionality of vApps would be useful in a...

1. In a few sentences, describe how the functionality of vApps would be useful in a multi-tier application.

In: Computer Science

In this lab, you will learn to read data from a sequential-access text file. To read...

In this lab, you will learn to read data from a sequential-access text file. To read data from a file, you need one FileStream object and one StreamReader object. The StreamReader object accepts the FileStream object as its argument.
To read data from a sequential-access text file, here's what you need to do:

  1. From the desktop, open Visual Studio 2017.
  2. From the menu bar, navigate to File > New > Project.
  3. In the New Project window, select Windows Forms App (.NET Framework).
  4. Type Name as StudentData and verify that the Solution name is automatically set as StudentData and click OK to create a new project with a textbox and button to open file information that contains student details.
  5. From the left side, navigate to Toolbox > All Windows Forms, drag Label and drop it on the blank area of the Form1 section.
  6. In the right pane, in the Properties side panel, under the Appearance section, remove the Text field's default value, i.e., label1.
  7. From the left side, navigate to Toolbox > All Windows Forms, drag Button, and drop it on the blank area of the Form1 section.
  8. In the right pane, in the Properties section, type Text as Open File.
  9. Double-click the Open File button.
  10. In the Form1.cs window, under using System.Windows.Forms, type the following code to include the System.IO library:Copy
    using System.IO;
  11. In the Form1.cs window, under private void button1_Click(object sender, EventArgs e), type the following code to declare and define an object, obtain a path for the text file, and display the file name encoded to UTF8 as output:Copy
     
    1. OpenFileDialog openFileDialog1 = new OpenFileDialog();
    2. openFileDialog1.ShowDialog();
    3. String file_name = openFileDialog1.FileName;
    4. string text = File.ReadAllText(@file_name, Encoding.UTF8);
    5. label1.Text = text;
  12. From the menu bar, navigate to Debug > Start Without Debugging and wait for the Form1 window to appear.
  13. In the Form1 window, click Open File.
  14. In the Open window, in the left pane, navigate to Local Disk (C:), select (say) the ip.txt file and click Open. You will see the file name encoded to UTF8.
  15. Close all the windows.

In: Computer Science

IN MIPS ASSEMBLY LANGUAGE Write an assembly program to read three 32-bit signed integers from the...

IN MIPS ASSEMBLY LANGUAGE

Write an assembly program to read three 32-bit signed integers from the user. Determine the smallest of these three numbers and display this result. Don’t use loops. Prompt the user for each entered integer.

Your output should look something like the following example.

Enter an integer: 7556

Enter an integer: -22984

Enter an integer: 8875

-22984

In: Computer Science

Question 1: As you know that “the base address or the starting address of any array...

Question 1: As you know that “the base address or the starting address of any array is its name”. Keeping this information, answer

a. Why the first index of any array always starts from zero. Although it points to the first location of an array.

b. The reason why the last index is always one less than array length is “the first index starts from zero”. Does it seems to be a correct reason justify.

c. What is the offset address of any array NAMED AS ARR1 who starting address is A011234h.

d Can you find the offset address of the 6th element of array given in 3? If its data type is INT.

e. What is the offset address of last element of an array stated in 3? If the length of array is 5 and data type is char.

Kindly solve the complete Questions with all parts......

In: Computer Science

who to write a program c++ that reads in an integer between 0 and 1000 and...

who to write a program c++ that reads in an integer between 0 and 1000 and adds all the digits in the integer?

In: Computer Science

Write a program in python that counts the number of words in President Abraham Lincoln’s Gettysburg...

Write a program in python that counts the number of words in President Abraham Lincoln’s Gettysburg Address from the file provided. Replace all instances of "nation" with country, and all instances of "we" with "Americans". Write the revised address to a new file

its for a txt file

In: Computer Science

javascritp Gallery On the gallery page, include a JavaScript driven photo gallery with at least five...

javascritp

Gallery On the gallery page, include a JavaScript driven photo gallery with at least five (5) images of original work (web pages screen shots, photographs, illustrations, etc) that you have created. The photo gallery must have previous and next buttons to change the image being displayed. Images must wrap to the first image when the next button is clicked while the last image is being displayed. Similarly, images must wrap to the last image when the previous button is clicked while the first image is being displayed. The next image must be displayed after five (5) seconds if the user has not clicked the next button. Use gallery.html as the filename for the Gallery page.

In: Computer Science

Please no plagiarism and must be in your own 800 words. Discuss the company, its approach...

Please no plagiarism and must be in your own 800 words.

Discuss the company, its approach to big data analytics with business intelligence, what they are doing right, what they are doing wrong, and how they can improve to be more successful in the implementation and maintenance of big data analytics with business intelligence

In: Computer Science

Write java code to reverse a linked list. Fill in reverseLists() ReverseLinkedList.java package mid; public class...

Write java code to reverse a linked list. Fill in reverseLists()



ReverseLinkedList.java

package mid;

public class ReverseLinkedList {

    private static class ListNode {

        int val;

        ListNode next;

        ListNode() {

        }

        ListNode(int val) {

            this.val = val;

        }

        ListNode(int val, ListNode next) {

            this.val = val;

            this.next = next;

        }

    }

    public static void printList(ListNode l1) {

        ListNode cur = l1;

        while(cur != null) {

            System.out.println(cur.val);

            cur = cur.next;

        }

    }

    public static ListNode reverseLists(ListNode h1) {

    }

    public static void main(String[] args) {

        ListNode l1_4 = new ListNode(4);

        ListNode l1_3 = new ListNode(3, l1_4);

        ListNode l1_2 = new ListNode(2, l1_3);

        ListNode l1_1 = new ListNode(1, l1_2);

        ListNode h1 = l1_1;

        System.out.println("list is:");

        printList(h1);

        ListNode h2 = reverseLists(h1);

        System.out.println("Reversed list is:");

        printList(h2);

    }

}

In: Computer Science

Write python code which displays the sales commission based on the total sale and the employee’s...

Write python code which displays the sales commission based on the total sale and the employee’s region, using on the following table.

Total Sale

Region

Commission

Under $2,500

East

5%

$2,500 or more

East

7.5%

Under $2,500

West

10%

$2,500 or more

West

12.5%

In: Computer Science

A professor wants to do some research on students who use different kinds of computers. They...

A professor wants to do some research on students who use different kinds of computers. They are curious if there is any difference in average test scores between , for instance, Mac users and Windows users. Write a program to help with this, that behaves as follows.

  • The user repeatedly enters a computer type, picking Mac, Windows or Other by entering "m", "w", or "o", along with a test score from 0 to 100. The user enters "x" to indicate they are done inputting data.
  • The program will calculate the average test score for each computer type separately.
    • Note that this means you need 3 separate counters and 3 separate accumulators, one for each computer type. Each time a computer type and score is entered, you need to update the appropriate accumulator and counter. A switch would be very useful here!
  • When all input is complete, calculate and display the average test score for each computer type, with one decimal place.
  • If there are no students for a particular computer type, instead of outputting an average test score, only output "No Windows users", "No Mac users" or "No Other users".
  • Your program must work for upper or lowercase. In other words, all of these are valid inputs for computer type: "M", "m", "W", "w", "O", "o", "X", "x". This is easiest to do with a String variable and a switch statement with cases "stacked" on top of each other, or convert the string to upper or lower case before starting the switch.

In: Computer Science

Please complete a program that will be an order entry program for a store or organization....

Please complete a program that will be an order entry program for a store or

organization. The program will accept order entry input from two customers, calculate

the total order amount of each order and display data about each order to the

customer. There will be two orders, one will be a “delivery” order and the other will be a “pickup” order.

The data entered by each customer will be:

Customer name

Item purchased

Quantity purchased

Price of the item

The information displayed for each customer order will be:

Order Date (system generated)

Delivery Location (hardcoded in constructor)

Order Type (program supplied)

Item description

Price

Quantity

Order total (program calculates)

Delivery Charge (constant = $10.00)

You can follow these steps to guide you through the process.

1. Create a public class named Order.

2. The Order class will have instance variables for each object to hold data pertaining to each

object as needed (for the input from the customer, program calculated and system generated

values).

3. The Order class will have two constructors (both considered overloaded) of which will set the

current system date for the order as well as the delivery type (Hint: use the LocalDate class for

the date).

a. One constructor will accept a parameter for the address and will be called when a

delivery order is placed. It will set a delivery type instance variable value as “delivery”.

b. The second overloaded constructor will not require a parameter for the address when a

pickup order is placed. It will set a delivery type instance variable value as “pickup”.

4. Create a second public class named OrderCart.

5. Create a main() method within the OrderCart class that will do the following:

a. Display a greeting.

b. Instantiate two Order class objects one for “pickup” and one for “delivery”.

o The “delivery” class object will pass a delivery address argument to the constructor.

At this time, you should hard code an address into the call to the constructor to

keep it simple. (Decision structures are not needed and therefore not used for this

program).

o The “pickup” class object will not pass any delivery information to the constructor.

c. Prompts and accepts input from the user for the all of the instance variables (customer

name, item description, quantity and price).

d. Calls two overloaded methods named calculateOrderTotal() to calculate the order total of

each order (no sales tax is charged in this example). Each method accepts an “Order”

object as it’s parameter.

o One overloaded method will accept a delivery charge of $10.00 and will be used to

calculate the order total for the “delivery” order. The total should include the

delivery charge (total = price * quantity + delivery charge).

o The second overloaded method will not accept any delivery charges and will used

to calculate the order total for the “pickup” order. The total charge will not include

a delivery charge (total = price * quantity).

o

e. Calls two overloaded methods named displayOrderData() to output the data for each

order. Each method accepts an “Order” object as it’s parameter.

o One overloaded method will accept a delivery charge of $10.00 and will be used to

display the order details including the delivery charge.

o The second overloaded method will not accept any delivery charges and will used

display the order specifics.

In: Computer Science

Assignment task Use your favorite search engine to find details about (1) virus/piece of malware. Upload...

Assignment task

Use your favorite search engine to find details about (1) virus/piece of malware. Upload an MS Word or .PDF document that summarizes each of the following

Item 1: Introduction - What is meant by malware/viruses? What is their history? Are malware and/or viruses recent developments in computer technology or have they been around for a while? What piece of malware/virus are choosing to write about and why?  

Item 2: Virus/Malware details:

  1. Name of malware/virus
  2. When and where was this virus/malware first discovered?
  3. How prevalent is this virus/malware? Is it regionalized by geography or business sector? Is it worldwide? How many computers/victims has it claimed?
  4. What has been the impact of this particular virus/malware? Has it damaged computers/data? Has it caused the loss of revenue or reputation? Has it physically damaged anything?
  5. Description of the virus/malware:

What specifically does the virus/malware do? How does it infect targets? What does it do once it infects a host? Does it change registry settings, does it leave behind malicious code, etc...? Is it destructive? If so how?

In: Computer Science

""don't use hand write"" The software design/development team and test engineers need to develop a strategy...

""don't use hand write""

The software design/development team and test engineers need to develop a strategy for planning, design, execution, data collection, and test evaluation”. Discuss this statement.

In: Computer Science