answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
pashok25
19 days ago
10

Which command backs up the single database called 'websites' to the file 'websites_backup.sql'?

Computers and Technology
You might be interested in
Write a complete Java program that: Prompts an employee to enter the number of hours that they have worked in a given week and s
Natasha_Volkova [1026]
The answer can be found in the explanation section. For a detailed breakdown of each step, please refer to the comments.
4 0
2 months ago
there is a structure called employee that holds information like employee code, name, date of joining. Write a program to create
oksian1 [950]

Answer:

The following is the C program:

#include<stdio.h>

#include<conio.h>

struct employee{

char empname[50]; int empcode, day, mon, yr;

} employees[30];

int main(){

int total;

printf("Numbers of Employees: "); scanf("%d",&total);

for(int kt=0; kt<total; kt++){

printf("Employee Code: "); scanf("%d",&employees[kt].empcode);

printf("Name: "); scanf("%s", employees[kt].empname);

printf("Date of Joining [dd mm yyyy]: "); scanf("%d%d%d",&employees[kt].day,&employees[kt].mon,&employees[kt].yr); }

int year;

printf("\nCurrent Date [Year only]: "); scanf("%d", &year);

printf("Code\t\t\t Name\t\t\t Date of Joining\n");

for(int kt=0; kt<total; kt++)

if((year - employees[kt].yr) >= 15)

printf("%d\t\t\t %s\t\t\t %d/%d/%d\n", employees[kt].empcode, employees[kt].empname, employees[kt].day, employees[kt].mon, employees[kt].yr);

}

Explanation:

Refer to the attached document for clarification, including comments that elucidate certain lines

Download txt
3 0
2 months ago
In three to five sentences, describe whether or not files should be deleted from your computer. Explain your answer.
Amiraneli [1052]
I can see points from both sides here. First, files that should be deleted would be those we no longer need. The extra space on our computers is valuable. If a file was significant and you’ve handled it, it’s time to remove it since it’s no longer relevant. Now, on the contrary, we shouldn’t delete files because there might come a time when we need them again... For example, you may possess vital documents that you'd definitely want to keep. Or perhaps you’d like to reminisce by looking back at old photos or videos with friends or a significant other.
5 0
3 months ago
Read 2 more answers
Your company is developing a new marketing campaign and wants to know which customers have never placed an order. You will need
maria [1035]

Answer:

Refer to the explanation

Explanation:

By utilizing the left outer join:

select custid,companyname,contactname,country,phone from sales.customers left outer join sales.orders on sales.customers=sales.order;

4 0
3 months ago
7. Test Average and Grade Write a program that asks the user to enter five test scores. The program should display a letter grad
Amiraneli [1052]

Answer:

The solution code is written in Java.

  1. import java.util.Scanner;
  2. public class TestScore {
  3.    public static void main(String[] args) {
  4.        Scanner input = new Scanner(System.in);
  5.        System.out.print("Please enter first score: ");
  6.        double firstScore = input.nextDouble();
  7.        System.out.println("Grade: " + determineGrade(firstScore));
  8.        System.out.print("Please enter second score: ");
  9.        double secondScore = input.nextDouble();
  10.        System.out.println("Grade: " + determineGrade(secondScore));
  11.        System.out.print("Please enter third score: ");
  12.        double thirdScore = input.nextDouble();
  13.        System.out.println("Grade: " + determineGrade(thirdScore));
  14.        System.out.print("Please enter fourth score: ");
  15.        double fourthScore = input.nextDouble();
  16.        System.out.println("Grade: " + determineGrade(fourthScore));
  17.        System.out.print("Please enter fifth score: ");
  18.        double fifthScore = input.nextDouble();
  19.        System.out.println("Grade: " + determineGrade(fifthScore));
  20.        System.out.println("Average score: " + calcAverage(firstScore, secondScore, thirdScore, fourthScore, fifthScore));
  21.    }
  22.    public static double calcAverage(double score1, double score2, double score3, double score4, double score5){
  23.        double average = (score1 + score2 + score3 + score4 + score5) / 5;
  24.        return average;
  25.    }
  26.    public static String determineGrade(double score){
  27.        if(score >= 90){
  28.            return "A";
  29.        }
  30.        else if(score >= 80 ){
  31.            return "B";
  32.        }
  33.        else if(score >=70){
  34.            return "C";
  35.        }
  36.        else if(score >=60){
  37.            return "D";
  38.        }
  39.        else{
  40.            return "F";
  41.        }
  42.    }
  43. }

Explanation:

First, implement the method, calcAverage(), to handle five test scores. Calculate the average within this method and return it.

Then, create a separate method, determineGrade(), which accepts a single score and returns the corresponding grade based on defined ranges.

After establishing the two methods, you can prompt the user for five test scores via the Java Scanner class. Initialize a Scanner object to receive user input (Line 7). Subsequently, use the getDouble() method for entering the scores which are assigned to variables firstScore, secondScore, thirdScore, fourthScore, and fifthScore, accordingly. Each time a score is provided, invoke determineGrade() using that score and print out the resulting grade.

Finally, call calcAverage() with the first score variables as inputs and output the average result.

5 0
3 months ago
Other questions:
  • When using the Python shell and code block, what triggers the interpreter to begin evaluating a block of code
    14·1 answer
  • Discussion Question 10: A bank in California has 13 branches spread throughout northern California , each with its own minicompu
    13·1 answer
  • Write an expression that will print "Dollar or more" if the value of num_cents is at least a dollar (100 cents is a dollar). Sam
    6·1 answer
  • Suppose that we have a set of activities to schedule among a large number of lecture halls, where any activity can take place in
    8·1 answer
  • Write a function in the cell below that iterates through the words in file_contents, removes punctuation, and counts the frequen
    6·1 answer
  • A feedback mechanism that can be used to measure the effectiveness of a CSIRT is the ____. a. after action review b. IR plan tes
    8·1 answer
  • Which are the common database operations that can help organize data for easy retrieval? helps return search results faster in a
    5·2 answers
  • Why should the data in a reservation system that is constantly being updated be stored on a magnetic disk instead of a CD or DVD
    15·1 answer
  • Fiona is drawing polygons on a computer. She wants to map a regular 9-sided polygon back onto itself using a reflection. Which s
    15·2 answers
  • What tool extends the basic functionality provided in task manager with additional features and tools?
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!