Questions
How to make this problem? in C language Build an algorithm that, upon receiving as input...

How to make this problem? in C language

Build an algorithm that, upon receiving as input the ID and salary of the professors of a university, determines the following:
-Total payroll of teachers.
-The average salaries of teachers.
-ID of the employee with the highest salary as well as what's his salary

thanks

In: Computer Science

Write an application that reads three integers, adds all three together and computes an average of...

Write an application that reads three integers, adds all three together and computes an average of the three entries and computes any remainder of the integer division. A remainder represents the modulus result of dividing an even by an odd number or vice versa. Display the output.

Enter an integer score 3
Enter an integer score 6
Enter an integer score 4
The average of 3, 6, 4 is 4 with a remainder of 1
Press any key to continue . . .

or

Enter an integer score 3
Enter an integer score 6
Enter an integer score 9
The average of 3, 6, 9 is 6 with a remainder of 0
Press any key to continue . . .

Submit only the .cs file with your code in it.

In: Computer Science

Explica que es un Algoritmo?

Explica que es un Algoritmo?

In: Computer Science

SQL A manufacturing company’s data warehouse contains the following tables. Region region_id (p) region_name super_region_id (f)...

SQL

A manufacturing company’s data warehouse contains the following tables.

Region

region_id (p)

region_name

super_region_id (f)

101

North America

102

USA

101

103

Canada

101

104

USA-Northeast

102

105

USA-Southeast

102

106

USA-West

102

107

Mexico

101

Note: (p) = "primary key" and (f) = "foreign key". They are not part of the column names.

Product

product_id (p)

product_name

1256

Gear - Large

4437

Gear - Small

5567

Crankshaft

7684

Sprocket

Sales_Totals

product_id (p)(f)

region_id (p)(f)

year (p)

month (p)

sales

1256

104

2020

1

1000

4437

105

2020

2

1200

7684

106

2020

3

800

1256

103

2020

4

2200

4437

107

2020

5

1700

7684

104

2020

6

750

1256

104

2020

7

1100

4437

105

2020

8

1050

7684

106

2020

9

600

1256

103

2020

10

1900

4437

107

2020

11

1500

7684

104

2020

12

900

Answer the following questions using the above tables/data:


6. Write a set of SQL statements which will add a row to the Region table for Europe, and then add a row to the Sales_Total table for the Europe region and the Sprocket product (product_id = 7684) for October 2020, with a sales total of $1,500. You can assign any value to the region_id column, as long as it is unique to the Region table. The statements should be executed as a single unit of work. Please note that since the statements are executed as a single unit of work, additional code is needed.

In: Computer Science

Data modeling is a key component to creating a database. There are all different aspects of...

Data modeling is a key component to creating a database. There are all different aspects of data modeling, with concerns from various things to the methodology of modeling, to software, to interfaces used between each model.

Paper: Write a 3 page paper (at model 1.2 spacing, 12 pt font, 1 inch margins with at most one half of the paper including a figure, citations not included) on some aspect of data modeling in industry. You must use reliable academic and industry resources. You must have at least one resource that connects your topic to industry. Write up should not exceed 4 pages, excluding citations. Example topics include:

  • Data modeling challenges in transportation industry (logistics)

In: Computer Science

Explain how modern-day analysis and design on a large-scale software project affect the business world. In...

Explain how modern-day analysis and design on a large-scale software project affect the business world. In great details

In: Computer Science

Create a table with name “S_YOURStudentID” with the following fields with required constraints. Screenshots are to...

  1. Create a table with name “S_YOURStudentID” with the following fields with required constraints. Screenshots are to be attached.                                                                                              

For example, if your botho student id is 1212121, your table name should be “S_1212121”.                                  

  1. Student id
  2. Student Name
  3. Age
  4. Gender
  5. City
  6. Course name
  7. Module Name
  8. Internal mark 1
  9. Internal mark 2
  10. Internal mark 3
  11. Total internal mark
  1. Insert minimum 10 records/rows to the table. Input the data based on Question 5. Screenshots are to be attached.                                                                                                                             
  2. Create two users and assign different default and temporary table spaces. Screenshots are to be attached for each step.                                                                                                             
  3. Create two roles named admin and user. Admin has the full privileges to access the table and user has only the READ privileges to the table. Screenshots are to be attached for each step.            
  4. Write a SQL query for the following scenario. Screenshots with queries and outputs are to be attached
  1. Write a Query in SQL to list all the students.
  2. Write a Query in SQL to list all the name of students of six characters long and name starts with ‘A’ and ends with ‘S’
  3. Write a Query in SQL to display all the information of the students together with the Total Internal mark.
  4. Write a Query in SQL to list the students whose gender is ‘male’ and the age is above 25.
  5. Write a Query in SQL to list the students whose total internal mark is greater than 80.

In: Computer Science

NON PLAGIARISED ANSER AND NON COPIED PLEASE OR I WILL DOWNVOTE AND REPORT. Word limit 400...

NON PLAGIARISED ANSER AND NON COPIED PLEASE OR I WILL DOWNVOTE AND REPORT. Word limit 400

Have you ever posted or viewed copyrighted material online that could be subject to a DMCA takedown request? Research the case of Lenz v. Universal Music Corp. to learn the key issues it raised in connection with takedown orders. Write a few paragraphs summarizing your findings, including the current status of the case. (Medium, 6 marks)

In: Computer Science

Respond to the following in a minimum of 175 words: Before you can perform data output,...

Respond to the following in a minimum of 175 words:

Before you can perform data output, you must first decide the form in which you want the output data to appear.

Onscreen and flat-file output are sometimes appropriate in a small system, such as a modest inventory application in which updated results display on a screen to be analyzed by a user, and in which output is designed for little more than backup on a local, secure machine. Displaying information onscreen can be a benefit, since the user does not have to produce and review a program-generated report, while saving small amounts of data to an easily-read file with no requirement to manage a database can be the best approach if program requirements do not dictate otherwise. However, in high-volume scenarios where one program "feeds" large amounts of data to another program, console output and flat-file data storage may not make practical sense.

In: Computer Science

It's java file 1. declare an vector without specifying the size 2. use push_back to add...

It's java file

1. declare an vector without specifying the size

2. use push_back to add random integers between 100 and 999 to the vector

3. write a function that returns the smallest, largest, and average of the numbers in the vector

3. display the smallest, largest, and average of the numbers in the vector

In: Computer Science

The Fast Freight Shipping Company charges the followingrates: Weight of Package(kilograms)         Rate per 500 miles shipped 2...

The Fast Freight Shipping Company charges the followingrates:

Weight of Package(kilograms)         Rate per 500 miles shipped

2 kg orless                                                   $1.10

Over 2 kg but not more than6kg                   $2.20

Over 6 kg but not more than 10kg                $3.70

Over 10 kg but not more than 20kg              $4.80

Write a program that asks for the weight of the package andthe distance it is to be shipped, and then displays thecharges.

Input Validation: Do not accept values of 0 or less for theweight of the package. Do not accept weights of more than 20 kg. Do not accept distances of less than 10 miles or more than 3,000miles.

Can someone do this in PYTHON please!

Sample Outputs

3kg and 501 miles = $4.40

7kg and 501 miles = $7.40

11 kg and 501 miles = $9.60

I don't know how to get these outputs

I JUST NEED THE IF/ELIF STATEMENTS IN ORDER TO GE THESE OUTPUTS, I ALREADY HAVE THE RESTRICTIONS IN CODE

weight=int(input("enter weight"))
while weight>=21 or weight<=0:
      print("weight must be greater than 0 but less than 20 ")
      weight=int(input("enter weight"))

shippingDistance=int(input("Enter Shipping Distance"))
while shippingDistance >= 3001 or shippingDistance <= 9:
    print("Distance must be between 10 and 3000 miles")
    shippingDistance=int(input("Enter Shipping Distance"))

In: Computer Science

Pick a pair of concrete classes in the JDK in a parent-child relationship and discuss a...

Pick a pair of concrete classes in the JDK in a parent-child relationship and discuss a few polymorphic and/or overloaded methods. Do not use Object as the parent class - it is too trivial to address the issues to be addressed here, and in any case, Object is the final parent of all classes in Java.

In: Computer Science

Using NetBeans, Modify your sales application so that it polymorphically processes any account objects that are...

Using NetBeans, Modify your sales application so that it polymorphically processes any account objects that are created. Complete the following:

    Create a 2-item array of type Account.
    Store each account object created into the array.
    For each element in this array, call the calculateSales() method, and use the toString() method to display the results.
    Code should be fully commented.
    Program flow should be logical.

Code before revision:

/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package inheritance;

/**
*
* @author Aaron Drury
*/
public class Inheritance {

/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic here
abstract class Account {
private int accountID;

public Account(int accountID) {
this.accountID = accountID;
}

public int getAccountID() {
return accountID;
}

public void setAccountID(int accountID) {
this.accountID = accountID;
}

public abstract double calculateSales();

@Override
public String toString() {
return "Account [\naccountID: " + accountID + "]";
}

}

class Sales extends Account {
private int numberOfHours;
private double ratePerHour;

public Sales(int accountID, int numberOfHours, double ratePerHour) {
super(accountID);
this.numberOfHours = numberOfHours;
this.ratePerHour = ratePerHour;
}

public int getHours() {
return numberOfHours;
}

public void setfHours(int numberOfHours) {
this.numberOfHours = numberOfHours;
}

public double getRate() {
return ratePerHour;
}

public void setRate(double ratePerHour) {
this.ratePerHour = ratePerHour;
}

@Override
public double calculateSales() {
return numberOfHours * ratePerHour;
}

@Override
public String toString() {
return "Sales [\naccountID: " + super.getAccountID() + "\nnumberOfHours: " + numberOfHours + "\nratePerHour: "
+ ratePerHour + "]";
}
}

class Service extends Account {
private int numberOfItems;
private int pricePerItem;

public Service(int accountID, int numberOfItems, int pricePerItem) {
super(accountID);
this.numberOfItems = numberOfItems;
this.pricePerItem = pricePerItem;
}

public int getNumberOfItems() {
return numberOfItems;
}

public void setNumberOfItems(int numberOfItems) {
this.numberOfItems = numberOfItems;
}

public int getPricePerItem() {
return pricePerItem;
}

public void setPricePerItem(int pricePerItem) {
this.pricePerItem = pricePerItem;
}

@Override
public double calculateSales() {
return numberOfItems * pricePerItem;
}

@Override
public String toString() {
return "Service [\naccountID: " + super.getAccountID() + "\nnumberOfItems: " + numberOfItems
+ "\npricePerItem: " + pricePerItem + "]";
}
}

}
  
}

In: Computer Science

Looking forward to current and future needs in your own industry or one in which you...

Looking forward to current and future needs in your own industry or one in which you desire to work, describe how the more advanced SQL server integration services (SSIS) data migration software, SQL server analysis services (SSAS) online analytical processing technology, or SQL server reporting services (SSRS) report software could be useful for the industry's current needs as well as to propel growth. Justify your ideas with support from the Topic Materials or relevant industry examples.

In: Computer Science

Virtual Memory. When processes are allowed to grow larger than memory, page tables also grow very...

Virtual Memory. When processes are allowed to grow larger than memory, page tables also grow very large. How could we organize page tables and TLB to keep access times as quick as possible for codes with good locality? For example, assume physical memory is 512K, each page is 1K, and a TLB of size 128. If we assume most processes are 256K or less, then we could allocate a fixed-size page table with 256 entries. Now in the unexpected case, where the page table grows larger than 256 entries, how should we organize it? What implications does your design have on average access time and on the maximum virtual memory size of a program?

In: Computer Science