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
svlad2
13 days ago
7

What term best describes the grammatical rules for writing proper code? paths syntax hyperlinks declarations

Computers and Technology
2 answers:
Harlamova29_29 [932]13 days ago
8 0
In my opinion, the most appropriate response to this question is D., "conventions." Every era and style of literature has distinct conventions about spelling, punctuation, capitalization, and grammar. These standards evolve over time and vary among different authors. You can also arrive at this answer through the process of elimination, as clarity, context, and coherence are not directly tied to these conventions. I hope this information is useful.
ivann1987 [930]13 days ago
5 0
I believe that's the correct answer.
You might be interested in
Write a function solution that returns an arbitrary integer which is greater than n.
Harlamova29_29 [932]

Answer:

public static int greaterThanInt(int n) {

       return n + 10;

   }

Explanation:

This Java method is quite straightforward. It takes an integer n as an argument and will return n+10 because the requirement is to provide an integer that exceeds n; adding any integer to n will fulfill that condition.

A complete Java program that calls this method is presented below:

import java.util.Scanner;

public class ANot {

   public static void main(String[] args) {

       Scanner in = new Scanner(System.in);

       System.out.println("Please enter an integer");

       int n = in.nextInt();

       int greaterInt = greaterThanInt(n);

       System.out.println("You entered " + n + ", " + greaterInt + " is larger than it");

   }

   public static int greaterThanInt(int n) {

       return n + 10;

   }

}

4 0
1 month ago
Write a program with total change amount as an integer input, and output the change using the fewest coins, one coin type per li
zubka84 [945]

Answer:

The following program is written in python programming language:

amount = int(input("Enter Amount: "))

#Check if the input is less than 1

if amount<=0:

print("No Change")

else: #If input is valid

#Convert input into different coins

dollar = int(amount/100) #Dollar conversion

amount = amount % 100 #Calculate remainder

quarter = int(amount/25) #Quarter conversion

amount = amount % 25 #Calculate remainder

dime = int(amount/10) #Dime conversion

amount = amount % 10 #Calculate remainder

nickel = int(amount/5) #Nickel conversion

penny = amount % 5 #Calculate remainder

#Display results

if dollar >= 1:

if dollar == 1:

print(str(dollar)+" dollar")

else:

print(str(dollar)+" dollars")

if quarter >= 1:

if quarter == 1:

print(str(quarter)+" quarter")

else:

print(str(quarter)+" quarters")

if dime >= 1:

if dime == 1:

print(str(dime)+" dime")

else:

print(str(dime)+" dimes")

if nickel >= 1:

if nickel == 1:

print(str(nickel)+" nickel")

else:

print(str(nickel)+" nickels")

if penny >= 1:

if penny == 1:

print(str(penny)+" penny")

else:

print(str(penny)+" pennies")

Explanation:

The program is implemented using python and includes comments for clarification.

The variable amount is defined as an integer.

The check in line 3 determines if the amount is less than or equal to 0.

If it is, "No Change" is printed.

If not, it converts the entered amount into smaller coins.

Line 7 converts the input amount to its dollar counterpart.

Line 8 calculates the remainder.

Line 9 converts the remainder to quarters.

Line 10 calculates the new remainder.

Line 11 converts the current remainder to dimes.

Line 12 calculates the adjusted remainder.

Line 13 calculates the nickel equivalent.

Line 14 gets the penny equivalent of what's left.

Lines 16 and beyond display the result using the correct terminology (singular or plural).

3 0
26 days ago
This question refers to a standard deck of playing cards. If you are unfamiliar with playing cards, there is an explanation in P
Amiraneli [921]

Answer:

Explanation:

The number of combinations to select 10 girls is 35C₁₀

The number of combinations to select 10 boys is also 35C₁₀

Thus, the total combinations for selection is 35C₁₀ x 35C₁₀

4 0
16 days ago
Read 2 more answers
More Loops: All versions of foods.py in this section have avoided using for loops when printing to save space. Choose a version
8_murik_8 [892]

Response:

The following is a program written in Python.

#Initialize a list variable and set its elements

myPizza = ['Margarita', 'Capsicum and onion', 'Chicken']

#Create a variable and duplicate the elements

frndPizzas = myPizza[:]

#Add an item to the list

myPizza.append('Corn')

#Add an item to the friend's pizza list

frndPizzas.append('paperica')

#Display a message

print("My pizzas are:")

#Use a for loop to display the elements of the first list

for pizza in myPizza:

print(pizza)

#Display another message

print("\nFriend's pizzas are:")

#Use a for loop to display the elements of the second list

for frndsPizza in frndPizzas:

print(frndsPizza)

Output:

My pizzas are:

Margarita Capsicum and onion Chicken Corn

Friend's pizzas are:

Margarita Capsicum and onion Chicken paperica

Explanation:

This program can be summarized as follows:

  • Define a list variable called 'myPizza' and initialize it.
  • Define another list variable called 'frndPizzas' and duplicate the items.
  • Add elements to both lists.
  • Utilize for loops to print items in each list.
5 0
27 days ago
A year in the modern Gregorian Calendar consists of 365 days. In reality, the earth takes longer to rotate around the sun. To ac
Rzqust [894]

Answer:

import java.util.Scanner;

public class LabProgram {

    public static void main(String[] args) {

        Scanner scnr = new Scanner(System.in);

        int inputYear;

        boolean isLeapYear;

        isLeapYear = false;

        inputYear = scnr.nextInt();

        // A year is considered a leap year if it can be divided evenly by 400,

        if (inputYear % 400 == 0)

            isLeapYear = true;

        // However, if a year can be evenly divided by 100, it is not a leap year

        if (inputYear % 100 == 0)

            isLeapYear = false;

        // If a year can be divided by 4, that year will be a leap year

        if (inputYear % 4 == 0)

            isLeapYear = true;

        if(isLeapYear)

            System.out.println(inputYear + " is a leap year.");

        else

            System.out.println(inputYear + " is not a leap year.");

    }

}

Explanation:

If a year is divisible by 400, then the variable isLeapYear is set to true. If a year is a century, divisibility by 100 means it can't be a leap year. When a year meets the criteria of divisibility by 4, it is considered a leap year.

Finally, check the value of isLeapYear; if true, declare it as a leap year. Otherwise, indicate it is not a leap year.

Output:

1712

1712 is a leap year.

5 0
1 month ago
Read 2 more answers
Other questions:
  • This program outputs a downwards facing arrow composed of a rectangle and a right triangle. The arrow dimensions are defined by
    15·1 answer
  • Write a sequence of statements that create a file named "greeting" and write a single line consisting of "Hello, World!" to that
    5·1 answer
  • Edhesive 2.3 code practice question 1​
    11·1 answer
  • Until 2015, each new Roblox user automatically had one friend. What was he called?
    12·2 answers
  • Sarah works in a coffee house where she is responsible for keying in customer orders. A customer orders snacks and coffee, but l
    13·2 answers
  • Some early computers protected the operating system by placing it in a memory partition that could not be modified by either the
    5·1 answer
  • array of String objects, words, has been properly declared and initialized. Each element of words contains a String consisting o
    11·1 answer
  • RADIAC instruments that operate on the ionization principle are broken down into three main categories based on what?
    15·1 answer
  • What type of memory can support quad, triple, and dual channels?
    5·1 answer
  • Suppose that a 10-Mbps wireless station is transmitting 50-byte frames one immediately after the other.
    6·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!