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 multi-tier application.
In: Computer Science
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:
using System.IO;
In: Computer Science
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 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 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 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 (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 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 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 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 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.
In: Computer Science
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 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:
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 for planning, design, execution, data collection, and test evaluation”. Discuss this statement.
In: Computer Science