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
Nikolay [14]
3 years ago
9

n physics, a common useful equation for finding the position s of a body in linear motion at a given time t, based on its initia

l position s0, initial velocity v0, and rate of acceleration a, is the following: s = s0 + v0 t + ½ at2 Write code to declare variables for s0 with a value of 12.0, v0 with a value of 3.5, a with a value of 9.8, and t with a value of 10, and then write the code to compute s on the basis of these values. At the end of your code, print the value of your variable s to the console.
Computers and Technology
1 answer:
Alinara [238K]3 years ago
7 0
<span>I presume the 2 at the end of the formula is a typo (as the 2 and half will cancel each other out if it means to multiply by 2)

pseudocode excludes it: float s0 = 12.0
float v0 = 3.5
float a = 9.8
float t = 10
s = s0 + v0 * t + (a * t) / 2 Output(s) </span>
You might be interested in
First, launch NetBeans and close any previous projects that may be open (at the top menu go to File ==&gt; Close All Projects).
Mars2501 [29]

Answer:

See explaination

Explanation:

// LetterCount.java

import java.io.File;

import java.io.IOException;

import java.io.PrintWriter;

import java.util.NoSuchElementException;

import java.util.Scanner;

public class LetterCount {

public static void main(String[] args) {

// setting up a Scanner to read from keyboard

Scanner scanner = new Scanner(System.in);

try {

// asking and reading input file name

System.out.print("Enter name of input file: ");

String file = scanner.nextLine();

// reinitializing scanner to read from input file. this will throw

// file not found exception if file is not found.

scanner = new Scanner(new File(file));

// opening a file writer to create and write into output.txt file

PrintWriter writer = new PrintWriter(new File("output.txt"));

// creating a String containing all 26 alphabets

String alphabet = "abcdefghijklmnopqrstuvwxyz";

// creating an array containing 26 integers, all initialized to 0

int counts[] = new int[26];

// looping through the file

while (scanner.hasNext()) {

// reading next line, converting to lower case

String word = scanner.next().toLowerCase();

// looping through each character in current word

for (char c : word.toCharArray()) {

// finding index of c in alphabet

int index = alphabet.indexOf(c);

// if c is an alphabet, the index value will not be -1

if (index != -1) {

// incrementing counter at index position

counts[index]++;

}

}

}

// closing input file

scanner.close();

int largestCount = 0; // to store largest count of a character

String mostCommon = ""; // to store the character(s) that occur the

// most

// looping through counts array, finding the largest value

for (int i = 0; i < counts.length; i++) {

if (counts[i] > largestCount) {

// updating largestCount and mostCommon

largestCount = counts[i];

mostCommon = alphabet.charAt(i) + "";

} else if (counts[i] == largestCount) {

// same largest count, appending to mostCommon string

mostCommon += " " + alphabet.charAt(i);

}

}

// writing results to output file

writer.println("The most common letter(s): " + mostCommon);

writer.println("Count of occurrances: " + largestCount);

// closing file, saving changes, alerting user

writer.close();

System.out

.println("done! please check output.txt file for results.");

} catch (IOException e) {

// will be executed when the input/output file cant be opened or

// found, or if there is an error while reading the file

System.out.println(e.getMessage());

} catch (NoSuchElementException e) {

// will occur when there is no input provided for input file name.

System.out.println("No input!");

}

}

}

8 0
3 years ago
What automatically created subdomain holds all the SRV records for Microsoft-hosted services, such as the global catalog, LDAP,
nevsk [136]

Answer:

The correct answer to the following question will be "_msdcs".

Explanation:

Msdcs directory known as Microsoft Domain Controller Catalog requires SRV documents that are used to identify domain controller for certain operations.

  • It automatically generated subdomain keeps all Microsoft-hosted resources SRV data, so it's the correct answer.
  • It includes common SRV documents, documents of LDAP, documents of Kpass, CNAME, etc.
7 0
4 years ago
The process known as AAA (or “triple A”) security involves three components. _____________ means ensuring that an authenticated
kirill115 [55]

Answer:

The process known as AAA (or “triple A”) security involves three components. Authorization means ensuring that an authenticated user is allowed to perform the requested action.

7 0
4 years ago
How would you share information and communicate news and events​
MariettaO [177]

Answer:

You could use Print things (mail, books, etc.) or Online things (internet, social media, etc.)

Hope this helps :)

4 0
4 years ago
A web client is sending a request for a webpage to a web server. from the perspective of the client, what is the correct order o
earnstyle [38]
From the perspective of the client,  the correct order of the protocol stack that is used to prepare the request for transmission <span>for a webpage to a web server </span><span>is:
</span>HTTP<span> - The Hypertext Transfer Protocol </span>
TCP  -
Transmission Control Protocol
IP  -
Internet Protocol
Ethernet
8 0
3 years ago
Other questions:
  • When a router fails to send messages in a timely fashion, this is a problem of the _____.
    8·1 answer
  • _ are typically comprised of a mix of _ and _
    11·2 answers
  • What machine is considered by many to be the first all-programmable electronic digital computer?
    15·1 answer
  • A(n)___ is divided into rows and columns.<br> What goes in the blank?
    7·1 answer
  • A hard drive that is running slowly may not have been properly?
    7·1 answer
  • What is the code for loading image in matlab
    15·1 answer
  • Special instruments can be attached to a telescope's _______________to enable astronomers to enhance by brightening or enlarging
    8·1 answer
  • What is the meaning of the title Two Kinds Of Stupid whose fault is it that Eduardo got in trouble
    8·1 answer
  • Jade has to present a paper on the basic architecture of the Princeton microcomputer architecture model. Which option will he hi
    5·1 answer
  • Question 1 of 10
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!