1answer.
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
Vika [28.1K]
3 years ago
12

What is one advantage of hard-disk recording?

Computers and Technology
1 answer:
NemiM [27]3 years ago
7 0

Answer:

It allows for Non-linear editing

You might be interested in
Write a program called DeliveryCharges for the package delivery service. The program should use an array that holds the 10 zip c
Vlad [161]

Answer:

import java.util.Scanner;

public class DeliveryCharges

{

public static void main(String[] args) {

 

       String[] zips = {"01234", "11234", "21234", "31234", "41234", "51234", "61234", "71234", "81234", "91234"};

    double[] prices = {2.2, 1.0, 3.6, 6, 9, 7.1, 0.8, 4.7, 3.3, 5.2};

    int index = -1;

    Scanner ob = new Scanner(System.in);

    System.out.print("Enter the zip code for your delivery: ");

    String zip = ob.next();

   

    for (int i=0; i<10; i++) {

        if (zip.equals(zips[i])) {

            index = i;

        }

    }

       

    if (index!= -1)

       System.out.println("Delivery charge to " + zips[index] + " is: " + prices[index]);

    else

       System.out.println("No delivery to " + zip);

}

}

Explanation:

Initialize the zips and prices

Initialize index that represents the index of the zip code. If the entered zip code is in the array

Ask the user to enter the zip code

Create a for loop that iterates through the zips. If the entered zip is in the zips, set its index to index

When the loop is done, check if the index. If the index is not -1, that means zip code was found in the zips array, print the corresponding price from the price array. Otherwise, print no delivery for the entered zip code

8 0
4 years ago
LAB: Praising dates
blsea [12.9K]

Answer:

Explanation:

The following is the entire modified code, it takes in the date as an input and continues changing the dates to the desired format. If the input format is wrong it says "Wrong Format" and requests another input. If -1 is passed as an input the program terminates.

        import java.util.Scanner;

        class DateParser {

public static int getMonthAsInt(String monthString) {

        int monthInt;

        switch (monthString) {

            case "January" :

                monthInt = 1;

                break;

            case "February":

                monthInt = 2;

                break;

            case "March":

                monthInt = 3;

                break;

            case "April":

                monthInt = 4;

                break;

            case "May":

                monthInt = 5;

                break;

            case "June":

                monthInt = 6;

                break;

            case "July":

                monthInt = 7;

                break;

            case "August":

                monthInt = 8;

                break;

            case "September":

                monthInt = 9;

                break;

            case "October":

                monthInt = 10;

                break;

            case "November":

                monthInt = 11;

                break;

            case "December":

                monthInt = 12;

                break;

            default:

                monthInt = 0;

                }

        return monthInt;

       }

        public static void main(String[] args) {

        Scanner scnr = new Scanner(System.in);

               // TODO: Read dates from input, parse the dates to find the one

        // in the correct format, and output in m/d/yyyy format  

 

                String date = "";

                while (!date.equals("-1")) {

                    String month = "";

                    String day = "";

                    String year = "";

                    System.out.println("Enter date:");

                    date = scnr.nextLine();

                    try {

                        year = date.substring((date.length()-4), date.length());

                        if (Character.isDigit(date.charAt(date.length()-8))) {

                            day = date.substring((date.length()-8), date.length()-6);

                            month = date.substring(0, date.length()-9);

                        } else {

                            day = date.substring((date.length()-7), date.length()-6);

                            month = date.substring(0, date.length()-8);

                        }

                        if ((year.length() == 4) && (day.length() > 0) && (day.length() <= 2) && (month.length() >= 3)) {

                            System.out.println(getMonthAsInt(month) + "/" + day + "/" + year);

                        } else {

                            System.out.println("Wrong Format");

                        }

                    } catch (Exception e) {

                        System.out.println("Wrong Format");

                    }

                }    

        }

}

4 0
3 years ago
Which of the followings is design tool?[2 marks]
aalyn [17]

Answer:

Data Flow Diagram

Explanation:

Data flow diagram is representation of data which is processed in terms of input and output.It is a tool for designing the structure for a software.Rectangles,square and circles are used in representing the flow of information.

DFD consists two components

  • Layers-It consist many layers,the top layer is called context diagram.
  • Levels-The first level shows the main process of the system.
6 0
3 years ago
Relational tables need to be​ ______________ to help avoid duplicate data.
Svetlanka [38]
Relational tables need to be DISTINCT to help avoid duplicate data.

Distinct is defined as readily distinguished or recognizably different in nature from something of similar type.

Being distinct is the first integrity rule that a relational table follows. It ensures that the data in the table are always accurate and accessible.
5 0
3 years ago
Array, destination contains the number of 10 cities numbered 1 to 10 that the products were shipped to. Hence, 10 quantities of
Naddik [55]

Answer:

#include <stdlib.h>

#include <stdio.h>

void func1(int product[]){

int orders[6]={0};

for(int i=0;i<70;i++){

orders[product[i]]++;

}

printf("Total number of each type of products that were bought\n");

for(int i=1;i<=5;i++){

printf("Product %d = %d\n",i,orders[i]);

}

}

void func2(int product[],int quantity[],float price[]){

float total_cost=0;

for(int i=0;i<70;i++){

total_cost+= price[product[i]]* quantity[i];

}

printf("The total cost of all 70 orders = %.2f\n",total_cost);

}

void func3(int product[],int quantity[],int destination[],float price[]){

float total_cost=0;

for(int i=0;i<70;i++){

if(destination[i]==8){

total_cost+= price[product[i]]* quantity[i];

}

}

printf("The total cost of all products shipped to destination 8 = %.2f\n",total_cost);

}

void func4(int product[],int quantity[],float price[]){

int total_orders=0;

for(int i=0;i<70;i++){

if(price[product[i]]* quantity[i]>=50){

total_orders++;

}

}

printf("The total number of orders where each order is $50 or more = %d\n",total_orders);

}

void func5(int product[],int quantity[],int origination[],float price[]){

int total_orders=0;

for(int i=0;i<70;i++){

if(origination[i]==3 && price[product[i]]* quantity[i]>=50){

total_orders++;

}

}

printf("The total number of orders that originated from 3 where each order is $50 or more. = %d\n",total_orders);

}

void func6(int product[],int quantity[],int origination[],float price[]){

float total_cost=0;

for(int i=0;i<70;i++){

if(origination[i]==3 && price[product[i]] * quantity[i]>=50){

total_cost += price[product[i]] * quantity[i];

}

}

printf("The total number of orders that originated from 3 where each order is $50 or more. = %.2f\n",total_cost);

}

void func7(int origination[],int destination[]){

int total_orders=0;

for(int i=0;i<70;i++){

if(origination[i]==3 && destination[i]==8){

total_orders++;

}

}

printf("The total number of orders that originated from 3 and shipped to 8. = %d\n",total_orders);

}

void func8(int product[],int quantity[],int origination[],int destination[],float price[]){

float total_cost=0;

for(int i=0;i<70;i++){

if(origination[i]==3 && destination[i]==8){

total_cost += price[product[i]] * quantity[i];

}

}

printf("The total cost of orders that originated from 3 and shipped to 8. = %.2f\n",total_cost);

}

void func9(int destination[]){

int total_orders=0;

for(int i=0;i<70;i++){

if(destination[i]!=8){

total_orders++;

}

}

printf("The total number of orders that was shipped to all destinations except to 8. = %d\n",total_orders);

}

void func10(int product[],int quantity[],int destination[],float price[]){

float total_cost=0;

for(int i=0;i<70;i++){

if(destination[i]!=8){

total_cost += price[product[i]] * quantity[i];;

}

}

printf("The total cost of orders that was shipped to all destinations except to 8. = %.2f\n",total_cost);

}

int main(){

int product[70] = {4, 2, 4, 2, 4, 5, 5, 2, 2, 5, 5, 4, 3, 5, 4, 2, 5, 3, 1, 2, 2, 3, 3, 4, 5, 5, 4, 5, 3, 5, 5, 1, 4, 5, 1, 5, 3, 2, 4, 1, 2, 4, 5, 1, 5, 5, 5, 5, 5, 2, 5, 1, 4, 4, 4, 2, 3, 3, 3, 3, 4, 3, 5, 5, 3, 2, 3, 5, 3, 2};

int quantity[70] = {10, 9, 6, 4, 10, 4, 9, 6, 10, 7, 3, 4, 4, 9, 1, 8, 9, 1, 5, 8, 7, 2, 3, 4, 10, 5, 6, 2, 1, 7, 2, 8, 6, 9, 8, 8, 7, 7, 9, 10, 6, 7, 8, 2, 1, 7, 6, 3, 3, 1, 8, 4, 10, 7, 1, 10, 6, 9, 8, 2, 4, 6, 1, 8, 2, 6, 10, 2, 6, 2};

int origination[70] = {2, 7, 5, 5, 7, 2, 7, 2, 7, 7, 5, 2, 5, 5, 5, 2, 2, 7, 2, 7, 7, 2, 2, 2, 2, 5, 7, 5, 7, 7, 5, 5, 2, 2, 5, 7, 2, 5, 7, 2, 5, 7, 2, 5, 7, 2, 2, 7, 2, 7, 5, 2, 2, 2, 5, 7, 2, 5, 5, 5, 7, 7, 2, 5, 2, 7, 5, 2, 5, 7};

int destination[70] = {8, 7, 3, 10, 2, 6, 4, 5, 1, 3, 5, 9, 5, 8, 6, 4, 3, 7, 1, 2, 7, 2, 8, 2, 2, 1, 2, 6, 10, 2, 7, 7, 8, 6, 8, 8, 4, 8, 3, 10, 6, 9, 4, 9, 5, 1, 7, 3, 1, 7, 5, 5, 4, 9, 3, 10, 8, 1, 1, 1, 1, 8, 10, 3, 5, 2, 8, 7, 4, 10};

float price[6]={0,11.95,7.95,19.95,24.95,15.25};

func1(product);

func2(product,quantity,price);

func3(product,quantity,destination,price);

func4(product,quantity,price);

func5(product,quantity,origination,price);

func6(product,quantity,origination,price);

func7(origination,destination);

func8(product,quantity,origination,destination,price);

func9(destination);

func10(product,quantity,destination,price);

}

Explanation:

The program inputs order, products and cities products are shipped.

After a series of conditional requirements being met, will output the destination each product os going to and the number of products with its associated price.

3 0
4 years ago
Read 2 more answers
Other questions:
  • List the final state of the cache, with each valid entry represented as a record of &lt; index, tag, data &gt;.
    15·1 answer
  • Which type of computer graphic can be resized without affecting image quality or getting distorted?
    9·1 answer
  • Henry created a software that manages all of his music. He wishes to run software on another computer system that runs an operat
    8·1 answer
  • What is the TAG to begin a Web page, as recommended by the W3C?
    13·1 answer
  • What data unit is addressed based on the IP address of the recipient?
    8·1 answer
  • The government now requires physicians to store patient information in databases that are accessible in multiple locations by mu
    8·1 answer
  • This is a type race kindly join.
    11·1 answer
  • Core to resource management system is the _________that coordinates the server hardware.
    8·1 answer
  • Based on three scores that the user inputs, display the average of the score and the letter grade that is assigned fort he test
    5·1 answer
  • Text to appear
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!