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
lesya692 [45]
3 years ago
11

In a style sheet, what must you use to separate multiple declarations for one selector within a rule?

Computers and Technology
1 answer:
ExtremeBDS [4]3 years ago
4 0
You must use a semicolon (;)
You might be interested in
Write a program sum.cpp that reads a sequence of integers from cin, and reports their sum. Example If you have a file numbers.tx
Katarina [22]

Answer:

The solution code is as follows:

  1. #include <iostream>
  2. #include <fstream>
  3. #include <string>
  4. using namespace std;
  5. int main()
  6. {
  7.    ifstream data;
  8.    float number;
  9.    float sum = 0;
  10.    
  11.    data.open("numbers.txt");
  12.    
  13.    while (data >> number) {
  14.        sum = sum + number;
  15.    }
  16.    cout<<sum;
  17.    return 0;
  18. }

Explanation:

Firstly, we create a ifstream object, <em>data</em> (Line 9). Then we can use the ifstream object to open the "numbers.txt" (Line 13) and use while loop to traverse through the number in the text file line by line (Line 15). White the loop is ongoing the number in each line is read by >> operator in a similar way to cin and then add each read number to sum variable (Line 16).

At last, display the output (Line 18).

8 0
3 years ago
(Displaying a Sentence with Its Words Reversed) Write an application that inputs a line of text, tokenizes the line with String
Serjik [45]

Answer:

I am writing a JAVA and Python program. Let me know if you want the program in some other programming language.

import java.util.Scanner; // class for taking input from user

public class Reverse{ //class to reverse a sentence

public static void main(String[] args) { //start of main() function body

Scanner input = new Scanner(System.in); //create a Scanner class object

   System.out.print("Enter a sentence: "); //prompts user to enter a sentence

   String sentence = input.nextLine(); // scans and reads input sentence

   String[] tokens = sentence.split(" "); // split the sentence into tokens using split() method and a space as delimiter

   for (int i = tokens.length - 1; i >= 0; i--) { //loop that iterates through the tokens of the sentence in reverse order

       System.out.println(tokens[i]); } } } // print the sentence tokens in reverse order

Explanation:

In JAVA program the user is asked to input a sentence. The sentence is then broken into tokens using split() method. split method returns an array of strings after splitting or breaking the sentence based on the delimiter. Here the delimiter used is space characters. So split() method splits the sentence into tokens based on the space as delimiter to separate the words in the sentence. Next the for loop is used to iterate through the tokens as following:

Suppose the input sentence is "How are you"

After split() method it becomes:

How

are

you

Next the loop has a variable i which initialized to the tokens.length-1. This loop will continue to execute till the value of i remains greater than or equals to 0.

for (int i = tokens.length - 1; i >= 0; i--)

The length of first token i.e you is 3 so the loop executes and prints the word you.

Then at next iteration the value of i is decremented by 1 and now it points at the token are and prints the word are

Next iteration the value of i is again decremented by i and it prints the word How.

This can be achieved in Python as:

def reverse(sentence):

   rev_tokens = ' '.join(reversed(sentence.split(' ')))

   return rev_tokens

   

line = input("enter a sentence: ")

print((reverse(line)))

The method reverse takes a sentence as parameter. Then rev_tokens = ' '.join(reversed(sentence.split(' ')))  statement first splits the sentence into array of words/tokens using space as a delimiter. Next reversed() method returns the reversed sentence.  Next the join() method join the reversed words of the sentence using a space separator ' '.join(). If you want to represent the reversed tokens each in a separate line then change the above statement as follows:

rev_tokens = '\n'.join(reversed(sentence.split(' ')))  

Here the join method joins the reversed words separating them with a new line.

Simply input a line of text and call this reverse() method by passing the input line to it.

4 0
3 years ago
At a company function, a top executive corners you and complains that your department is wasting too much money. The executive d
Alex777 [14]

Answer:

Report:  

Shields focuses for the for shut source programs and working frameworks  

The shut source program is over the top expensive when contrasted with open source programs at whatever point the help and support administrations gave by the nearby source program designers are generally excellent.  

The shut source association will have propelled improvement and supporting group so the innovations and philosophies utilized will be propelled when contrasted with open source frameworks.  

The equipment bolster will be additionally acceptable contrasted with open source frameworks, a committed inner creating bunch is required if open source frameworks is embraced.  

For little reason or general purposes the utilization of shut framework is gainful.  

Focuses to clarify how OSS and the Linux working framework can be utilized to diminish these expenses in the long haul.  

The open source programming or working framework needn't bother with any permit or option to explore upon.  

For long haul use or committed purposes it is smarter to make an indigenous group so the product can make according to prerequisites and no compelling reason to pay remotely for help and support.  

The open source programming and working frameworks can be altered with no assent from its unique designers it empowers to change the product or working as we required.  

For long haul use applications or working framework it is monetarily plausible to keep an inside advancement group for creating applications instead of depending outside close programming items.

8 0
3 years ago
Programming Project: N-Queens Prerequisites: Chapter 5 For this project you will create a class that solves a variation of the 8
Alex
Socractic Would Definitely Help With An Answer Like This
5 0
3 years ago
This lab has two parts:
Nana76 [90]
13 is the difference I hope it works
5 0
4 years ago
Other questions:
  • Manipulate the SQL statement to pull ALL fields and rows from Customers table that have a PostalCode of 44000. TIP: Since Postal
    13·1 answer
  • During the charging of a storage battery, what is the temperature that the electrolyte solution must never exceed?
    6·1 answer
  • (50 points) Write a program arrays1.cthat checks if two integer arrays are different by one and only one elementwhen compared el
    5·1 answer
  • What is the problem with assigning a port number to more than one server application?
    8·1 answer
  • An organization is building a new customer services team, and the manager needs to keep the tream focused on customer issues and
    13·1 answer
  • 2. Name the type of product the United States used to<br> first enter the arena of technology.
    9·1 answer
  • A customer has a computer for a home business, but wants to have another computer as a web server. What would be the best soluti
    11·2 answers
  • What is a spreadsheet program?<br> A spreadsheet program is a computerized version of _______
    5·1 answer
  • Summary about Interface Design in system analysis
    12·1 answer
  • (40 PTS) Be specific
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!