In: Computer Science
Java How to Program Exercise 4.11
Explain what happens when a Java program attempts to divide one
integer by another. What happens to the fractional part of the
calculation? How can you avoid that outcome?
My instructor want me to do that exercise with these details and I
am so confuse. I don't know where to start.
"Random number of Trips"
"Enter gallon and miles as whole numbers"
"NPG decimal number"
In: Computer Science
In a few paragraphs what are the pros and cons on the usefulness of open source projects. Specifically speaking about QA
In: Computer Science
Answer each question. 250 words max. with the source of the answer
- What IT function impacts user satisfaction the most?
What would you do to ensure high user satisfaction?
In: Computer Science
Java
Write a program that reads 4 integer numbers from the user combine it into a single number. You need to ask the user to first specify how to combine the numbers (forward or backward). Note that for the backward option you need to check that the last digits should be 0, also for the forward option you need to check that the fist digit is not 0. Use for loops and switch for the menu. 4. Write an application that prompts the user to enter an integer limit and then print the numbers from 1 to this limit in the following format. The number read should not be greater than 10 and should not be negative. Enter a number: 3 Enter a number: 6 Enter a number: 2 Enter a number: 0 1.Forward 2.Backward Choose an option: 1 The number is 3620 Enter a number: 3 Enter a number: 6 Enter a number: 2 Enter a number: 0 3.Forward 4.Backward Choose an option: 2 Error!
In: Computer Science
Create your own function in C that accepts one input number and returns a double number. The themes for the functions should be one of the following: Calculates 3.14 times of the square of input number. For example, if 2 is input then 12.56 should be returned. (e.g. 3.14*2*2 = 12.56)
In: Computer Science
Do online research and Describe the ethical and legal issues in information systems security. It should not exceed 1 page
In: Computer Science
The solution should be written in Java.
Your POSmain program should take three file names from command
line arguments. The first file contains a list of products and
their prices; the second and third files are lists of items in two
shopping carts of two customers. The POSmain program should first
read the price file, then read each of the cart files to load a
list of items in a shopping cart and store them in a ShoppingCart
objects. The price file may contain a variable number of products
and the cart files may contain a variable number of items.
POSmain then will create a CashRegister object by passing the price
list to it. The POSmain program then will use the CashRegister
object to scan items in a cart and print a receipt for each
shopping cart one by one. At last, POSmain will use the
CashRegister object to print a report for the day.
The students of CSIT111 and CSIT811 will print a different report
for the day, which requires different design of your CashRegister
class.
The output should be like this:-
One customer is checking out ...
========================================
Product Price Qty Subtotal
----------------------------------------
Bed $499.99 2 $999.98
Char $45.49 4 $181.96
TV $999.99 1 $999.99
Table $199.0 2 $398.0
-------------------------
Total $2579.93
========================================
One customer is checking out ...
========================================
Product Price Qty Subtotal
----------------------------------------
Bread $1.75 2 $3.5
Butter $2.84 1 $2.84
Ham $2.5 1 $2.5
Lettuce $1.0 1 $1.0
Milk $3.0 2 $6.0
Onions $0.54 3 $1.62
Tomato $0.76 5 $3.8
-------------------------
Total $21.26
========================================
Report for the day
========================================
Number of customers: 2
Total sale: $2601.19
List of products sold:
----------------------------------------
Product Qty
----------------------------------------
Bed 2
Bread 2
Butter 1
Char 4
Ham 1
Lettuce 1
Programming Fundamentals - 3/4 -
Milk 2
Onions 3
TV 1
Table 2
Tomato 5
In: Computer Science
Create a Java program with a method that searches an integer array for a specified integer value **(see help with starting the method header below). If the array contains the specified integer, the method should return its index in the array. If not, the method should throw an Exception stating "Element not found in array" and end gracefully. Test the method in main with an array that you make and with user input for the "needle".
starting header
**
public static int returnIndex(int[ ] haystack, int needle) {
In: Computer Science
Code should be written in C
Use pointer variables for parameter passing, where appropriate and pointer arithmetic when working with arrays.
1) Using initialization lists, create 5 one-dimensional arrays, one for each of these:
Use the data from the example below.
* Your C program should take the data in the arrays and produce the output below, neatly formatted as shown:
Candidates Subdivisions Totals
Brampton Pickering Markham
Aubrey 600 800 800 2200
Blake 700 700 600 2000
Chubbs 800 700 800 etc
Oliver 400 450 300
Zamier 900 900 900
Totals 3400 etc etc
In: Computer Science
Consider the computer attacks in the previous chapters. How would a VPN protect a user from one or more of them?
In: Computer Science
Starting a Family Video, This is an SQL Assingment
Each family video has a store number, a street address, city, state, zipcode, and phone number. Each store will have a number of employees. Each staff member should have an employee number, name, salary, phone number. Each store should have a single employee that is the manager for that store.
assume that every DVD is a movie. Every movie will have a title and a single category (Action, Drama, Horrow, SciFi, etc.). Any given store will have any number of DVD copies of a movie. The rental cost is set for the movie and is the same across all stores.
Family Video track of all borrowers (borrower number,name, phone number). A borrower is allowed to rent from any store, and may rent any number of items, but each rented item must record the day it was rented and its return date.
1. Identify and list the strong entities. 2. Identify and list the weak entities. 3. For each entity list its attributes. 4. Identify and list the relationships between entities. If the relationship has any attributes, list them. 5. Draw the E/R diagram for your model.
In: Computer Science
In: Computer Science