Questions
State four limitations of tangible interactions


State four limitations of tangible interactions

In: Computer Science

Identify which cloud computing service model is appropriate to use in each of the following cases:...

Identify which cloud computing service model is appropriate to use in each of the following cases:

A company needs to build a web portal for clients all over the world to access web pages.

Google allows customers to do computing on their system. A customer does not need to have a powerful computer, just some means to access the Internet.

A small business does not want to purchase software, such as visio drawing tools and database.

In: Computer Science

. Give an example of a string represented by each of the following regular expressions •...

. Give an example of a string represented by each of the following regular expressions

• 0+ 1+ (11)* 0?

• [0-9]+ ( (E|e) (\+|\-)? [0-9]+ )?

• ([a..z] ([a..z] | [0..9])*)

In: Computer Science

5. A wireless LAN using direct sequence spread spectrum (DSSS) needs 224 Mbps for sending data...

5. A wireless LAN using direct sequence spread spectrum (DSSS) needs 224 Mbps for sending data that was originally sent at 32 Mbps. How many bits are in the chip code? please show your work....

In: Computer Science

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

What is Gustafson law? (detailed answer). Compare Amdahl’s law and Gustafson law.

What is Gustafson law? (detailed answer). Compare Amdahl’s law and Gustafson law.

In: Computer Science

Given the Java code: double x =15; int n=15; Find the return value: a. x/2 b....

Given the Java code: double x =15; int n=15;

Find the return value: a. x/2

b. n/2

c. n/2.0

d. (double)(n/2)

In: Computer Science

Interaction styles are methods to communicate between users and machines through the user interface. List four...

Interaction styles are methods to communicate between users and machines through the user interface. List four types of interaction styles with at least two strengths and limitations of each style. Also, present one example screenshot of each interaction style

In: Computer Science

Describe and explain two multicore hardware systems which can be used for multithread programming. Define the...

Describe and explain two multicore hardware systems which can be used for multithread programming. Define the advantages and disadvantages. (Detailed answer)

In: Computer Science

Interaction styles are methods to communicate between users and machines through user interface. List four types...

Interaction styles are methods to communicate between users and machines through user interface. List four types of interaction styles with at least two strengths and limitations of each style. Also present one example screenshot of each interaction style

In: Computer Science

Can you please tell me why my code isn't working? It won't calculate the values I...

Can you please tell me why my code isn't working? It won't calculate the values I have using my input file.

/*******************************************************************************
AUTHOR SECTION

ENGR 200.07 DATE: 10/23/2020

PROGRAM:
********************************************************************************
PROGRAM DESCRIPTION
This program takes a pre-made .txt file’s input values, and calculates the
kinetic energy wind farms produce from moving air into electrical energy.
Using 3 different formulas this program calculates the available power in the
wind, the maximum available power that can be produced, and the amount of
electricity produced by the turbines in kW. Only the diameter of the wind
blades, number of turbines, and power in kW will be printed on screen. These
3 values will also be output to a designated .txt file. The input and output
file locations can be found in the preprocessor directives section of the
program. These file locations can also be altered, allowing for other .txt
files with different input values to be used.

DESCRIPTION OF VARIABLES
NAME | TYPE | DESCRIPTION
-----------------------------------------------------------------------------
PW | double | Power available in wind
PWM | double | Maximum power the wind turbine can produce
PE | double | The amount of electricity (in Watts) that can be
produced for each turbine
BD | double | Diameter of blades
BR | double | Radius of blades
NT | double | Number of turbines available
A | double | Area swept by blades (m^2)
V | double | Velocity of the wind (9.5 m/s)
P | double | Density of the air (1.2754 kg/m^3)
CP | double | Benz Limit (0.48 unitless)
N | double | Combined electricity of gear box, generator, and
bearings (.33)
PI | symbolic | Constant for pi (3.14159)
i | int | Loop control variable
ndata | int | Number of record lines in input file
*******************************************************************************/

/* Preprocessor directives */
#include
#include
#define PI 3.14159
#define inputfile "C:\\Users\\16614\\Desktop\\ENG 200\\farms.txt"
#define outputfile "C:\\Users\\16614\\Desktop\\ENG 200\\power.txt"

/* Main function */
int main(void)
{
/* Declare variables */
double PW, PWM, PE, BD, BR, NT, A, V, P, CP, N;
int i, ndata;
FILE *INP = NULL, *OUTP = NULL;

/* Open Files */
INP = fopen(inputfile, "r");
OUTP = fopen(outputfile, "w");

/* Print headings */
printf("\n********************************************");
printf("\n WIND FARM CONFIGURATIONS"
"\n\nDIAMETER NUMBER OF TURBINES POWER"
"\n (m) (kW)");

fprintf(OUTP,"\n********************************************");
fprintf(OUTP,"\n WIND FARM CONFIGURATIONS"
"\n\nDIAMETER NUMBER OF TURBINES POWER"
"\n (m) (kW)");
  
/* Verify input file */
if(INP==NULL)
{printf("\n\n COULD NOT FIND FILE"
"\n PROGRAM TERMINATED"
       "\n********************************************");
return 1;
}   

else
{
   
/* Read Control numbers */
fscanf(INP, "%i",&ndata);

/* Calculate Values using Formulas and Print Results */
for(i=1;i<=ndata;i++)
{
fscanf(INP,"%lf %lf",&BD,&NT);
V = 9.5;
P = 1.2754;
CP = 0.48;
N = 0.33;
BR = 1/2*BD;
A = PI*pow(BR,2);
PW = 1/2*P*A*pow(V,3);
PWM = CP*PW;
PE = N*PWM;
printf("\n %3.1f %3.0f %5.1f",BD,NT,BR);
fprintf(OUTP,"\n %3.1f %3.0f %5.1f",BD,NT,BR);
}
}
printf("\n********************************************\n\n\n");
fprintf(OUTP,"\n********************************************\n\n\n");

/* Exit the program */
return 0;
}
/******************************************************************************/

In: Computer Science

In C++ Create a class called Rational (separate the files as shown in the chapter) for...

In C++

Create a class called Rational (separate the files as shown in the chapter) for performing arithmetic with fractions. Write a program to test your class. Use integer variables to represent the private data of the class-the numerator and the denominator. Provide a constructor that enables an object of this class to be initialized when it's declared. The constructor should contain default values in case no initializers are provided and should store the fraction in reduced form. For example, the fraction 2/4 would be stored in the object as 1 in the numerator and 2 in the denominator. Provide public member functions that perform each of the following tasks: add - Adds two Rational numbers. The result should be stored in reduced form. subtract - Subtracts two Rational numbers. Store the result in reduced form. multiply - Multiples two Rational numbers. Store the result in reduced form. divide - Divides two Rational numbers. The result should be stored in reduced form. (toRationalString) - Returns a string representation of a Rational number in the form a/b, where a is the numerator and b is the denominator. display - Display the Rational number a/b. toDouble - Returns the Rational number as a double. (make sure the driver tests out all the functions)

  1. add - Adds two Rational numbers. The result should be stored in reduced form.
  2. subtract - Subtracts two Rational numbers. Store the result in reduced form.
  3. multiply - Multiples two Rational numbers. Store the result in reduced form.
  4. divide - Divides two Rational numbers. The result should be stored in reduced form.
  5. (toRationalString) - Returns a string representation of a Rational number in the form a/b, where a is the numerator and b is the denominator.
  6. display - Display the Rational number a/b.
  7. toDouble - Returns the Rational number as a double.

(make sure the driver tests out all the functions)

In: Computer Science

Question 2 (30 marks) (a) Identify any THREE (3) input devices and THREE (3) output devices...

Question 2

(a) Identify any THREE (3) input devices and THREE (3) output devices which are common used in our life. Discuss the benefits of using these devices in our daily life.

[18 marks]

Each point 3 marks.

In: Computer Science

b. Propose a Disaster Recovery Plan (DRP) to the organization to eliminate the problem in the...

b. Propose a Disaster Recovery Plan (DRP) to the organization to eliminate the problem in the future.

[25 marks]

Guideline:

Google search and download a business continuity plan or DR plan template.
DR team, DR servers DR backup.

Testing DR monthly.

Plan A failure then failover to Plan B.

In: Computer Science

Write a function intLog of type Integer -> Integer that returns the exponent of the largest...

Write a function intLog of type Integer -> Integer that returns the exponent of the largest power of 2 less than its integer argument.

This needs to be a haskell function

In: Computer Science