Questions
The goal of designing a direct manipulation interface is to make use of the system intuitive...

The goal of designing a direct manipulation interface is to make use of the system intuitive to the end user. Direct-manipulation interfaces are now being used for a wide range of purposes.

Describe how direct manipulation interfaces are designed in the following applications.

1. Checkbook maintenance and checkbook searching interface

2. Airline reservation system

In: Computer Science

In at least 250 words explain how DSS, “big data”, OLAP, data mining, and predictive analytics...

  • In at least 250 words explain how DSS, “big data”, OLAP, data mining, and predictive analytics are used in business. When answering, be sure to cite your research sources.

In: Computer Science

Consider the following database schema: LIKE(person, sport), PRACTICE(person, sport), where person and sport are keys in...

Consider the following database schema:

LIKE(person, sport),

PRACTICE(person, sport),

where person and sport are keys in both tables. The table LIKE gives the sports a person likes, the table PRACTICE gives the sports a person practices. We assume that a person likes at least one sport and practices at least one sport. We assume also that a person does not like a sport if the sport is not listed among the sports that person likes

  1. List the people who practice at least one sport they do not like
  2. List pairs of people who practice at least one common sport
  3. List the people who like all the sports they practice
  4. List the people who practice all the sports they like
  5. List the people who practice all the sports John likes
  6. Who practices the largest number of sport (SQL only)?

In: Computer Science

Complete the following functions. You MUST, MUST, MUST add: 1) a doc comment in the proper...

Complete the following functions. You MUST, MUST, MUST add:

1) a doc comment in the proper location for EACH function that describes
the basic purpose of the function.
2) AT LEAST 5 doc test comments in EACH function that:
* test that the function does what it is supposed to do
* tests that it does what it's supposed to do with odd inputs
* tests "edge" cases (numbers at, just above, just below min/max, empty strings, etc.)

You MUST, MUST, MUST then test each of your methods by BOTH:

1) running the "main.py" script
2) running this module directly to run the doc tests

Except as noted, you can implement the functions however you like. And if your grade-school
math's out of date, Google's your friend for formulas (BUT NOT FOR CODE).

CHALLENGE: Use try/except blocks to avoid crashes when passing in unexpected parameters.

circle_area
-----------
RETURN the area of a circle with a radius supplied by the parameter.
Note that you MUST use the "pi" constant from the math module, so
use an import statement. If the radius passed is less than 1 or
greater than 1000, PRINT "ERROR" and RETURN 0.

sphere_surface_area
-------------------
RETURN the surface area of a sphere with the supplied radius. Slightly
different error check here: if the radius passed is less than 1 or
greater than 250, PRINT "ERROR" and RETURN 0.

sphere_volume
-------------
RETURN the volume of a sphere with the supplied radius. Again, slightly
different error check here: if the radius passed is less than 1 or
greater than 100, PRINT "ERROR" and RETURN 0.
'''

# IMPORT THAT PI CONSTANT HERE


def circle_area(radius):

def sphere_surface_area(radius):

def sphere_volume(radius):

if __name__ == "__main__":
import doctest
doctest.testmod()

In: Computer Science

An online air ticket reservation company is experimenting with a new interactive user interface design for...

An online air ticket reservation company is experimenting with a new interactive user interface design for its customers. Study any leading online air ticket reservation system to understand this interface and using it, give examples of any three social impact of interface design for following elements. You can use screenshots to elaborate your example.

  1. Describe the new system and its benefits
  2. Outline the development process

In: Computer Science

Operating Systems Concepts What difficulties arise from concurrency? What are the requirements necessary to support mutual...

Operating Systems Concepts

  1. What difficulties arise from concurrency?
  1. What are the requirements necessary to support mutual exclusion?
  1. Does interrupt disabling work on multiprocessors? Why?

In: Computer Science

Compare the segmented paging scheme with the hashed page table scheme for handling large address spaces....

Compare the segmented paging scheme with the hashed page table scheme for handling large address spaces. Under what circumstances is one scheme preferable to the other?

In: Computer Science

Company X database Create an ER Diagram using UML notation for the following tables, then write...

Company X database

Create an ER Diagram using UML notation for the following tables, then write out in the Relational model.

Company X is a manufacturing company that binds and sells books. They have hired you to create database to track their Employees, Products, customers and their orders. All employees work with book Binding, Only some are designated as Reps for customers. Reps may have many customers.

But each customer can only have 1 rep. They count to record each Books author, title, price, published year, publisher, and ISBN#

In: Computer Science

use cout to print the address at which the following array is stored in memory long...

use cout to print the address at which the following array is stored in memory

long double computers[24]

a. print the adress of the last element

b. print the address of the tenth element.

c. print the address of the first element in the array

In: Computer Science

What extra information is multimedia good at conveying? (a)What can spoken text convey that written text...

What extra information is multimedia good at conveying?
(a)What can spoken text convey that written text cannot?
(b)When might written text be better than spoken text?
2.Find and learn Autodesk3dsMax (formerly3DStudioMax) in your local labsoftware. Read the online tutorials to see this software’s approach to a 3Dmodeling technique. Learn texture mapping and animation using this product. Make a 3Dmodel after carrying out these steps.
3.Design an interactive webpage using Adobe Dreamweaver. HTML 4 provides layer functionality, as in Adobe Photoshop. Each layer represents an HTML object, such as text, animage, or a simple HTML page (and the Adobe HTML 5Pack is an extension to Adobe Dreamweaver). In Dreamweaver, each layer has a marker associated with it. Therefore, highlighting the layer marker selects the entire layer, to which you can apply any desire deffect. As in Flash, you can add buttons and behaviors for navigation and control. You can create animations using the Timelinebehavior.

In: Computer Science

Postfix notation is an unambiguous way of writing an arithmetic expression without parentheses. It is defined...

Postfix notation is an unambiguous way of writing an arithmetic expression without parentheses. It is defined so that if “(exp1)op(exp2)” is a normal, fully parenthesized expression whose operation is op, the postfix version of this is “pexp1 pexp2 op”, where pexp1 is the postfix version of exp1 and pexp2 is the postfix version of exp2. The postfix version of a sin- gle number or variable is just that number or variable. For example, the postfix version of "((5+2) * (8-3))/4" is "5 2 + 8 3 - * 4 /". Write a Python program that evaluate a postfix expression non-recursively if consider only binary operators "+", "*", "/", "-".

In: Computer Science

  Python-“Ship Dice” Ship Dice: Ship Dice is a game that you will be creating. The rules...

  Python-“Ship Dice” Ship Dice: Ship Dice is a game that you will be creating. The rules of the game are fairly simple. The game is normally played with 2-6 people, but our version will only be one player who is playing. The rules are simple, player rolls 3 dice randomly (Red, Green, and Blue), and the player has couple of options to choose from to win: 1- 3 chances to roll the dice randomly and get all dices 6 2- 3 chances to roll the dice randomly and get at least one dice equal 5 3- 3 chances to roll the dice randomly and get Red dice to be 6, Green dice to be 5, Blue dice to be 4 Dices will be selected randomly (random number between 1 – 6, as dice has six faces). If the program reaches any of the above options in less than 3 chances then the program will announce that the player won, otherwise player lost. Program Requirements:  Ask the player to choose an option.  In case user chooses option 1 : o 3 dices will be randomly rolled (Red, Green, and Blue). o After each roll, output the values of the dices and announce either “Player won” or “No matching”. (rule 1: all dice equal 6) o Player has 3 chances.  In case user chooses option 2 : o 3 dices will be randomly rolled (Red, Green, and Blue). o After each roll, output the values of the dices and announce either “Player won” or “No matching”. (rule 2: at least one dice equal 5) o Player has 3 chances.  In case user chooses option 3 : o 3 dices will be randomly rolled (Red, Green, and Blue). o After each roll, output the values of the dices and announce either “Player won” or “No matching”. (rule 3: Red dice to be 6, Green dice to be 5, Blue dice to be 4) o Player has 3 chances.  We have 3 options in the menu, so need to validate player input, make sure player not entering invalid number.  Once player knows if he/she won or not, you will need to ask the player if he/she wants to play again o If Yes/yes, then display the menu again and ask player to choose from the options and play the game. o If No/no, then display a message to the player and exit “Good Game!”  Output sample: Welcome to Ship Dice You have 3 chances to win! Here are game rules: 1- 3 chances for all dices are 6 2- 3 chances for at least one dice equal 5 3- 3 chances for Red dice is 6, Green dice is 5, Blue dice is 4 Enter your choice 5 Invalid input, please choose an option from the above menu Enter your choice 4 Invalid input, please choose an option from the above menu Enter your choice 1 Trial: 1 red 6 green 3 blue 1 No matching! Trial: 2 red 3 green 5 blue

In: Computer Science

How can you explain a database to a non technical person? How would you describe the...

How can you explain a database to a non technical person? How would you describe the advantages and disadvantages of using a database over tracking data in a spreadsheet?

In: Computer Science

Well our Data Structures and Algorithms professor had the incorrect date set for this assignment (was...

Well our Data Structures and Algorithms professor had the incorrect date set for this assignment (was November 7, 2019 and now is October 7, 2019) so I was putting it off until the end of this month, now I have two days to complete it which is going to be near impossible with the assignments I have for C Programming, Calculus II and Anthropology also all due on Monday, so I need some help. I have the general outline for this program from the last assignment we did but I am unsure how to implement the new methods we were shown Thursday.

I. General Description

In this assignment, you will create a Java program to read undergraduate and graduate students from an input file, shuffle them, and write them to an output file.

1. The input file name and the output file name are passed in as the first and second arguments at command line, respectively. For example, assume your package name is FuAssignment4 and your main class name is FuMain, and your executable files are in “C:\Users\2734848\eclipse-workspace\CIS 265 Assignments\bin”. The following command line will read from a local file “students.txt” and write to a local file “students_shuffled.txt”: C:\Users\2734848\eclipse-workspace\CIS 265 Assignments\bin > java FuAssignment4.FuMain students.txt students_shuffled.txt

2. If the program is run with incorrect number of arguments, your program must print an error message and exit. The error message must show correct format to run your program, e.g., “Usage: FuAssignment4.FuMain input_file output_file” where FuAssignment4 is the package and FuMain is the main class.

3. Each line in the input file represents a student. There are 5 fields in each line: name, id, gpa, “graduate” or “undergraduate”, isTransfer (for undergraduate) or college (for graduate). The fields are separated by comma, “,”. For example, the input file students.txt file may contain: Michelle Chang,200224,3.3,graduate,Cleveland State University Tayer Smoke,249843,2.4,undergraduate,false David Jones,265334,2.7,undergraduate,true Abby Wasch,294830,3.6,graduate,West Virginia

4. The program will read the lines and create undergraduate students or graduate students accordingly. The students are added to an ArrayList.

5. The program then shuffles the ArrayList, and write the shuffled list of students to the output file.

6. Given the previous input file students.txt, a possible output file, students_shuffled.txt, maybe like this: Abby Wasch,294830,3.6,graduate,West Virginia Michelle Chang,200224,3.3,graduate,Cleveland State University David Jones,265334,2.7,undergraduate,true Tayer Smoke,249843,2.4,undergraduate,false

II. Implementation Requirements

The program must implement a main class and three student classes (Student, UndergradStudent, GradStudent).

• You may reuse the code from previous assignments. You may use my code posted on Blackboard for previous assignments.

• However, the Student class must be declared as an abstract class now. It must also have an overloaded printStudent(PrintWriter output) method. The method will write student’s information to the file using the output PrintWriter.

• Accordingly, the UnderGradStudent and GradStudent classes must also have an overloaded printStudent(PrintWriter output) method. They must use the superclass’ method to write student’s information. The UnderGradStudent’s printStudent(PrintWriter output) writes “undergraduate” and 2 isTransfer after that. The GradStudent’s printStudent(PrintWriter output) writes “graduate” and college after that. • The UML class diagram should be as follows:

Student
-name: String
-id: int
-gpa: float
+Student()
+Student(name,id,gpa)
+printStudent():void
+printStudent(PrintWriter output:void
UndergradStudent GradStudent
-boolean: isTransfer -college:String

+UndergradStudent(name,id,gpa,isTransfer)

+GradStudent(name,id,gpa,college)

+printStudent():void

+printStudent(PrintWriter output):void

+printStudent():void

+printStudent(PrintWriter output):void

• All classes must be in the same package. The package name must start with your last name. For example, if your last name is “Trump”, your package name must start with “Trump” such as “TrumpCIS265AS3”, “TrumpAS3”, etc.

• You main class file name must start with your last name. For example, if your last name is “Spiderman”, your main class file name must start with “Spiderman” such as “Spiderman3.java”, “SpidermanAssign3.java”, etc.

• Since I/O exceptions are checked exceptions, your program must handle exceptions. You may use the try/catch or throw IOException. To throw exceptions, you declare it as: public static void main(String[] args) throws IOException {

• You must create an ArrayList of Students in the main class: import java.util.ArrayList; ArrayList students = new ArrayList<>();

• The ArrayList variable will store all Student objects created, both undergraduate students and graduate students.

• The Student class must have a constructor that takes a name, an id, and a gpa, to create a Student object.

• The UndergradStudent class must have a constructor that takes a name, an id, a gpa, and a transfer status to create an UndergradStudent object. The constructor must call the Student’s constructor using super.

• The GradStudent class should must a constructor that takes a name, an id, a gpa, and a college to create an GradStudent object. The constructor must call the Student’s constructor using super.

• The Student class must have a public method printStudent(PrintWriter output) that writes the student’s name, id, and gpa to the PrintWriter output.

• The UndergradStudent class must override the printStudent(PrintWriter output) method. It must write the student’s name, id, gpa, and transfer status to the PrintWriter output. It should call the Student’s printStudent(PrintWriter output) to write student’s name, id, and gpa.

• The gradStudent class must override the printStudent(PrintWriter output) method. It must write the student’s name, id, gpa, and college to the PrintWriter output. It should call the Student’s printStudent(PrintWriter output) to write student’s name, id, and gpa.

• To shuffle the ArrayList, you need to use the Collections’s shuffle method: import java.util.Collections; Collections.shuffle(students); //assume students is an ArrayList of Students

• The printing of students should use dynamic binding: for (Student s: students) //students is an ArrayList of Students s.printStudent(output); // output is a PrintWriter for output file

• Your program must close both input and output files after they are done.

• You can assume that input file has the correct format. You will earn bonus points for handling incorrect input formats.

V. Bonus features (optional)

If a line in the input file has incorrect format, your program should skip the line and continue. The following are possible formatting errors your program can handle:

1. (2 points) if the line does not have 5 fields;

2. (2 points) if the id is not an integer;

3. (2 points) if the gpa is not a float;

4. (2 points) if the 4th field is not “undergraduate” or “graduate”;

5. (2 points) if the 5th field for an undergraduate student is not true or false.

In: Computer Science

The use of computers in education is referred to as computer-assisted instruction (CAI). More sophisticated CAI...

The use of computers in education is referred to as computer-assisted instruction (CAI). More sophisticated CAI systems monitor the student’s performance over a period of time. The decision to begin a new topic is often based on the student’s success with previous topics. Modify the c++ program which I included to count the number of correct and incorrect responses typed by the student. After the student types 5 answers, your program should calculate the percentage of correct responses. If the percentage is lower than 75 percent, your program should print “Please ask for extra help” and then terminate. If the percentage is 75 percent or higher, your program should print “Good work!” and then terminate.

#include<bits/stdc++.h> //headerfile
using namespace std;
int main(){
int cont=0;
while(cont<5){ //we will come out of loop when we get 5 correct answers
// This program will create different sequence of
// random numbers on every program run because of srand
   srand(time(0));
int x=rand()%10; //we took modulo 10 because all numbers should be between 0 to 9
int y=rand()%10;
cout<<"How much is "<<x<<"*"<<y<<"?"<<endl;
  
int out;
int res=x*y;//actual output
cin>>out; //we enter the result as output
if(res==out){ //if actual output matches our solution
   cout<<"Very good!"<<endl;
cont++;
}else{ //if actual output doesn't match our solution
while(res!=out){ //we will repeatedly ask the user same question till we get answer
   cout<<"No. Please try again."<<endl;
cout<<"How much is "<<x<<"*"<<y<<"?"<<endl;
cin>>out;
}
cont++;
}   
}
}

In: Computer Science