Answer:
FALSE
Explanation:
Write a python program to find the volume of the pepsi present in the can which is in the shape of cylinder accepting the radius and height of the can from user.(Note :Apply float input and display Radius ,Height, Volume of Pepsi in can)
(V = pi r^2 h )
Answer:
r=float(input("Enter radius: "))
h=float(input("Enter height: "))
v=3.14*r**2*h
print(r)
print(h)
print(v)
This is the answer, hope it helped!
can help me biii and d? also help me check my answer is correct or not if wrong please help me correct it thanks
Answer:
b(ii) prices[1]= 20.50; // do not declare with double again
b (iii) scanf("%lf", &prices[4]); //prices[4] is last element
d) See below
Explanation:
/* This program uses the string.h header file
The strncat() function in this file concatenates two strings. It takes three arguments, dest and source strings and number of characters to concatenate
*/
#include <stdio.h>
#include <string.h>
int main() {
char s1[10] = "Happy";
char s2[10] = " Birthday";
char s3[10]="";
strncat(s3, s1, 5); //concatenate 5 characters of s1 to end of s3 and
//store result in s3; s = "Happy"
strncat(s3, s2, 10); //concatenate s2 with current contents of s3
//s3 becomes "Happy Birthday
printf("%s", s3);
return 0;
}
If you can photoshop please text me i need help for my digital media class 7862381441
Answer:
I don't know what that is but what type of work you need help with
have a good day :)
Explanation:
Explain Importance of flowchart in computer programming
Answer:
Flow charts help programmers develop the most efficient coding because they can clearly see where the data is going to end up. Flow charts help programmers figure out where a potential problem area is and helps them with debugging or cleaning up code that is not working.
creds to study.com (please don't copy it work by word, make sure to paraphrase it. otherwise plagiarism is in the game.)
Explanation:
C++ code
Your task is to write a program that parses the log of visits to a website to extract some information about the visitors. Your program should read from a file called WebLog.txt which will consist of an unknown number of lines. Each line consists of the following pieces of data separated by tabs:
IPAddress Username Date Time Minutes
Where Date is in the format d-Mon-yy (day, Month as three letters, then year as two digits) and Time is listed in 24-hour time.
Read in the entire file and print out each record from April (do not print records from other months) in the format:
username m/d/yy hour:minuteAM/PM duration
Where m/d/yy is a date in the format month number, day number, year and the time is listed in 12-hour time (with AM/PM).
For example, the record:
82.85.127.184 dgounin4 19-Apr-18 13:26:16 13
Should be printed as something like:
dgounin4 4/19/18 1:26PM 13
At the top of the output, you should label the columns and the columns of data on each row should be lined up nicely. Your final output should look something like:
Name Date Time Minutes
chardwick0 4/9/18 5:54PM 1
dgounin4 4/19/18 1:26PM 13
cbridgewaterb 4/2/18 2:24AM 5
...(rest of April records)
Make sure that you read the right input file name. Capitalization counts!
Do not use a hard-coded path to a particular directory, like "C:\Stuff\WebLog.txt". Your code must open a file that is just called "WebLog.txt".
Do not submit the test file; I will use my own.
Here is a sample data file you can use during development. Note that this file has 100 lines, but when I test your program, I will not use this exact file. You cannot count on there always being exactly 100 records.
Hints
Make sure you can open the file and read something before trying to solve the whole problem. Get your copy of WebLog.txt stored in the folder with your code, then try to open it, read in the first string (195.32.239.235), and just print it out. Until you get that working, you shouldn't be worried about anything else.
Work your way to a final program. Maybe start by just handling one line. Get that working before you try to add a loop. And initially don't worry about chopping up what you read so you can print the final data, just read and print. Worry about adding code to chop up the strings you read one part at a time.
Remember, my test file will have a different number of lines.
You can read in something like 13:26:16 all as one big string, or as an int, a char (:), an int, a char (:), and another int.
If you need to turn a string into an int or a double, you can use this method:
string foo = "123";
int x = stoi(foo); //convert string to int
string bar = "123.5";
double y = stod(bar); //convert string to double
If you need to turn an int or double into a string use to_string()
int x = 100;
string s = to_string(x); //s now is "100"
A good example C++ code that parses the log file and extracts by the use of required information is given below
What is the C++ code?C++ is a widely regarded programming language for developing extensive applications due to its status as an object-oriented language. C++ builds upon and extends the capabilities of the C language.
Java is a programming language that has similarities with C++, so for the code given, Put WebLog.txt in the same directory as your C++ code file. The program reads the log file, checks if the record is from April, and prints the output. The Code assumes proper format & valid data in log file (WebLog.txt), no empty lines or whitespace.
Learn more about C++ code from
https://brainly.com/question/28959658
#SPJ1
Mary and Joanne would like to start their own jewelry business. They do not want to file a bunch of papers, but also do not want to be personally liable for debts incurred by the company. Which form of ownership should they pursue?\
A-Partnership
B-Sole proprietorship
C-Limited Partnership
(helping my friend do his work cos hes sick)
In the United States, an LLC is a type of organizational structure where the owners are not held personally responsible for the debts or obligations of the business. Limited liability companies are hybrid legal entities with traits shared by corporations, partnerships, and sole proprietorship.
What personally liable for debts incurred by the company?A business where some people hold the bulk of the company's shares is known as a closely held corporation. Shares cannot be purchased by the public because they are not openly traded on an exchange. The majority shareholders have a large impact on and control over the company.
Therefore, The simplest and most straightforward type of business ownership is a sole proprietorship. One individual is the owner of it. The distinction between the individual and the company does not exist. Profits and losses from the company are shared by the owner.
Learn more about personally liable here:
https://brainly.com/question/14682274
#SPJ1
Suppose your network support company employs 75 technicians who travel constantly and work at customer sites. Your task is to design an information system that provides technical data and information to the field team. What types of output and information delivery would you suggest for the system?
Answer:
Proceso mediante el cual el SI toma los datos que requiere para procesar la información. Las entradas pueden ser manuales o automáticas. Las unidades típicas ...
Explanation:
Assume the variable s is a String and index is an int. Write an if-else statement that assigns 100 to index if the value of s would come between "mortgage" and "mortuary" in the dictionary. Otherwise, assign 0 to index.
Using the knowledge in computational language in python it is possible to write a code that Assume the variable s is a String and index is an int.
Writting the code:Assume the variable s is a String
and index is an int
an if-else statement that assigns 100 to index
if the value of s would come between "mortgage" and "mortuary" in the dictionary
Otherwise, assign 0 to index
is
if(s.compareTo("mortgage")>0 && s.compareTo("mortuary")<0)
{
index = 100;
}
else
{
index = 0;
}
See more about JAVA at brainly.com/question/12975450
#SPJ1
how would you feel if the next version of windows becomes SaaS, and why?
If the next version of Windows becomes SaaS, SaaS or Software as a Service is a software delivery model in which software is hosted on the cloud and provided to users over the internet.
Moving Windows to a SaaS model means that Microsoft will continue to deliver updates and new features through a subscription-based service rather than through major new versions of the operating system.
This approach has its own advantages and challenges.
Benefits of the SaaS model for Windows:
Continuous Updates: Users receive regular updates and new features, ensuring they always have access to the latest improvements and security patches.
Flexibility: Subscriptions offer different tiers and plans so users can choose the features they need and customize their experience.
Lower upfront costs: A subscription model could reduce the upfront cost of purchasing Windows, making Windows more accessible to a wider audience.
Improved security: Continuous updates can help address vulnerabilities and security threats more rapidly, enhancing overall system security.
Challenges and concerns with a SaaS model for Windows:
Dependency on internet connectivity: Users would need a stable internet connection to receive updates and access features, which may not be ideal for those in areas with limited or unreliable internet access.
Privacy and data concerns: Users might have concerns about data collection, privacy, and the potential for their usage patterns to be monitored in a subscription-based model.
Cost considerations: While a subscription model may provide flexibility, some users may find it less cost-effective in the long run compared to purchasing a traditional license for Windows.
Compatibility issues: Continuous updates could introduce compatibility challenges for legacy software and hardware that may not be updated or supported in the new model.
Whether you view Windows' migration to a SaaS model as a positive or negative is ultimately determined by your personal perspective and specific implementations by Microsoft.
Cost: SaaS is a subscription-based model, which means users have to pay recurring fees to use the software.
They have to rely on the provider to update, maintain, and improve the software.To sum up, I would feel hesitant about using SaaS if the next version of Windows becomes SaaS.
For more questions on Software as a Service:
https://brainly.com/question/23864885
#SPJ8
what is the first computer company
Electronic Controls Company it was founded on 1949 by J.Presper and John Mauchly
Answer: Electronic Controls Company
Explanation: The first computer company was Electronic Controls Company and was founded in 1949 by J. Presper Eckert and John Mauchly, the same individuals who helped create the ENIAC computer.
Hope this helps^^
What Is Red Hat OpenShift Deployment?
You will use video store tables and data for this lab.
Please insert your SQL statement and add a result table/output as a screenshot. The code and further instruction is linked below
Create table film with below attributes, respective data types, primary key
create table film(
FID varchar2(4),
The SQL statementsQuestion 2)
-- select columns c.CID, c.CNAME
select c.CID, c.CNAME
from rent r -- from rent table with an alias name r
inner join customer c -- inner join customer to rent with an alias name c
on r.CID = c.CID -- on condition to join both the tables
group by c.CID, c.CNAME -- group by to aggregate per customer
having count(*) = -- having clause to get number of rentals is equal to
(select max(t.numrent) -- select column max(t.numrent) to get most frequent rentals
from -- from the below select query
(select CID, count(*) as numrent -- select column CID, count(*) as numrent
from rent -- from rent table, group by to aggregate per customer
group by CID) t);
Question 3)
-- select all columns using * from customer table
select *
from customer;
Question 4)
-- select all columns using * from film table
select *
from film;
Question 5)
-- select all columns using * from film table
-- using where clause to get TYPE is 'HORROR', 'ACTION'
select *
from film
where TYPE in ('HORROR', 'ACTION');
Question 6)
-- select all columns using * from customer table
-- using where clause to get CITY is 'London'
select *
from customer
where CITY = 'London';
Read more about SQL here:
https://brainly.com/question/25694408
#SPJ1
Which part of project management involves determining the required materials?
A.) Money
B.)Resources
C.)Scope
D.)Time
Answer:
Resources I think because what you have all depends on resources which required money
PLZ CORRECT ME IF I AM Wrong please and thank you
Explanation:
Need help with Exercise 6
The program based on the question requirements are given below:
The Programimport java.io.File;
import java.io.IOException;
import java.util.Scanner;
public class EncryptText {
// read file and return all content as a String
public static String readFile(String filename) throws IOException {
Scanner scanner = new Scanner(new File(filename));
String content = "";
while(scanner.hasNextLine()){
content += scanner.nextLine();
}
return content;
}
// fills entire grid with stars "*"
public static void initializeGrid(char [][] grid, int m, int n) {
for(int i = 0; i<m; i++)
for(int j = 0; j<n; j++)
grid[i][j] = '*';
}
// does the encryption
public static void fillGrid(char [][] grid, int m, int n, String filename) throws IOException {
// read file
String text = readFile(filename);
// fill entire grid with stars
initializeGrid(grid, m, n);
// i = row, j = column, for grid
int i = 0, j = 0;
// picks a char c from file text and populates the grid
for(int k=0; k<text.length(); k++) {
char c = text.charAt(k);
// even row - fill left to right
if(i % 2 == 0) {
grid[i][j] = c;
j++;
}
// odd row - fill right to left
else {
grid[i][n-j-1] = c;
j++;
}
// if end of column, go to next row and restart column
if(j == n) {
i++;
j = 0;
}
// if end of rows, stop populating grid
if(i == m) {
break;
}
}
}
// extract chars in column-major order
public static void displayGrid(char [][] grid, int m, int n) {
for(int j = 0; j<n; j++) { // cols
for(int i = 0; i<m; i++) // rows
System.out.print(grid[i][j]);
}
}
// start
public static void main(String[] args) throws IOException {
String filename = "input.in";
// define grid dimensions, m = rows, n = cols
int m = 4, n = 8;
// define the grid
char grid[][] = new char[m][n];
// call the function to fill grid
fillGrid(grid, m, n, filename);
// show encrypted text
displayGrid(grid, m, n);
}
}
Read more about programs here:
https://brainly.com/question/23275071
#SPJ1
Pseudocode finding the sum of the number 12, 14, 16
Answer:
Pseudocode:
1. Initialize a variable named 'sum' and set it to 0.
2. Create an array named 'numbers' containing the numbers 12, 14, and 16.
3. Iterate over each number in the 'numbers' array.
3.1 Add the current number to the 'sum' variable.
4. Print the value of 'sum'.
Alternatively, here's an example of pseudocode using a loop:
1. Initialize a variable named 'sum' and set it to 0.
2. Create an array named 'numbers' containing the numbers 12, 14, and 16.
3. Initialize a variable named 'index' and set it to 0.
4. Repeat the following steps while 'index' is less than the length of the 'numbers' array:
4.1 Add the value at the 'index' position in the 'numbers' array to the 'sum' variable.
4.2 Increment 'index' by 1.
5. Print the value of 'sum'.
Explanation:
1st Pseudocode:
1. In the first step, we initialize a variable called 'sum' and set it to 0. This variable will be used to store the sum of the numbers.
2. We create an array named 'numbers' that contains the numbers 12, 14, and 16. This array holds the numbers you want to sum.
3. We iterate over each number in the 'numbers' array. This means we go through each element of the array one by one.
3.1 In each iteration, we add the current number to the 'sum' variable. This way, we accumulate the sum of all the numbers in the array.
4. Finally, we print the value of the 'sum' variable, which will be the sum of the numbers 12, 14, and 16.
2nd Pseudocode using a loop:
1. We start by initializing a variable called 'sum' and set it to 0. This variable will store the sum of the numbers.
2. Similar to the first pseudocode, we create an array named 'numbers' containing the numbers 12, 14, and 16.
3. We initialize a variable called 'index' and set it to 0. This variable will be used to keep track of the current index in the 'numbers' array.
4. We enter a loop that will repeat the following steps as long as the 'index' is less than the length of the 'numbers' array:
4.1: In each iteration, we add the value at the 'index' position in the 'numbers' array to the 'sum' variable. This way, we accumulate the sum of all the numbers in the array.
4.2: We increment the 'index' by 1 to move to the next position in the array.
5. Finally, we print the value of the 'sum' variable, which will be the sum of the numbers 12, 14, and 16.
currentScore = 7
highScore= currentScore
currentScore = 3
(Display highScore)
O 3
O7
O4
O2
Answer:
the current score is 3 because it says in the guidelines that the current score is 3
Meenakshi has created a presentation of six slides. The slides have the same background, but s wants to change the background of each slide. Which option can help her in doing so?
The local library dealing with a major computer virus checked its computers and found several unauthorized programs, also known as ______.
A. Software
B. Hardware
C. Malware
D. Torrents
Answer:
malware
Explanation:
Answer: C. Malware
i just did it
List the languages in order from highest level to lowest.
O Python, binary, bytecode
O binary, Python, bytecode
O Python, bytecode, binary
O binary, bytecode, Python
Answer:
Python, bytecode, binary
Explanation:
Python is a high-level multi-purpose programming language. it is very popular and is easy to learn. Its syntax is more English-like compared to other programming languages.
Binary is a form representing data in digital form. It only uses numbers 1 and 0. Binary can be in the form of a machine code or a bytecode.
bytecode is a form of binary for virtual microprocessors which can only be interpreted to machine code for direct processing.
I need help finishing this coding section, I am lost on what I am being asked.
Answer:
when cmd is open tell me
Explanation:
use cmd for better explanatios
When you start your computer then which component works first?
Which three statements about RSTP edge ports are true? (Choose three.) Group of answer choices If an edge port receives a BPDU, it becomes a normal spanning-tree port. Edge ports never generate topology change notifications (TCNs) when the port transitions to a disabled or enabled status. Edge ports can have another switch connected to them as long as the link is operating in full duplex. Edge ports immediately transition to learning mode and then forwarding mode when enabled. Edge ports function similarly to UplinkFast ports. Edge ports should never connect to another switch.
Answer:
Edge ports should never connect to another switch. If an edge port receives a BPDU, it becomes a normal spanning-tree port. Edge ports never generate topology change notifications (TCNs) when the port transitions to a disabled or enabled status.Given an array A[a1,a2,a3,...an] of size n.Create an array B[] from A[] where b1=a1,b2=a1+a2,b3=a1+a2+a3, bn=a1+a2+a3+...+an.
(Java or c++)
public static void main(String[] args) {
int A[] = {1,2,3,4};
int B[] = new int[A.length];
for (int x = 0; x < A.length; x++){
if (x == 0){
B[x] = A[x];
}
else{
B[x] = B[x-1] + A[x];
}
}
for (int w:B){
System.out.println(w);
}
}
}
I created my solution in java. I hope this helps!
Write 4 do loops and a for loop, one that counts from 1-10, one that counts from 11-20, one that counts from 21-30, one that counts from 31-40 and one that counts from 41-50. Use a different type of loop for each.
Using the knowledge in computational language in python it is possible to write a code that Write 4 do loops and a for loop, one that counts from 1-10, one that counts from 11-20, one that counts from 21-30, one that counts from 31-40 and one that counts from 41-50.
Writting the code:timestoloop = int(input("How many numbers would you like to count up? "))
number = 1 # the number starts at 1.
for x in range(timestoloop): # this will loop it the amount of times you entered into the input
print(number)
number += 1 # this will add 1 to it each time it loops.
from time import sleep
sleep(1) #put how many seconds you would like the delay to be there, in this case it is 1 second.
import pyautogui #if you haven't already use pip install pyautogui
timestoloop = int(input("How many numbers would you like to count up? "))
h = 1
for x in range(timestoloop): #you can also just put any number instead of the input if that's easier
print(h)
pyautogui.write(f" {h},") #this is what types it
h += 1
See more about python at brainly.com/question/18502436
#SPJ1
Part 2: Code the Program
Use the following guidelines to code your program.
1. Use the Python IDLE to write your program.
2. Using comments, type a heading that includes your name, today’s date, and a short description.
3. Set up your def main(): statement. (Don’t forget the parentheses and colon.)
4. Write one if-else statement using user input.
5. Include a print message for both conditions (True and False).
6. Conclude the program with the main() statement.
7. Follow the Python style conventions regarding indentation in your program.
8. Run your program to ensure it is working properly. Fix any errors you may observe.
When you've completed writing your program code, save your work by selecting 'Save' in the Python IDLE
u get brianliest if u can help
Answer:
You can try something like this:
# YOUR NAME
# May 16th 2022
# This program
def main():
age = input("Enter your name: ")
if not age.isnumeric():
print('Invalid input.')
return
if (int(age) >= 18):
print('You are an adult.')
else:
print('You are a minor.')
main()
A student is creating a school newspaper.
The space at the top where the student puts the title is the blank
The space at the top where the student puts the title is the known to be title bar.
What is title bar Bar?The title bar is known to be a kind of an horizontal bar that is known to be found at the very top of a window in a MS word or GUI.
Note that this is said to be a bar that tends to show or displays the title of the said document or software, as well as the name of the current file, or other text that tells about the contents of that window.
Therefore, one can say that the space at the top where the student puts the title is the known to be title bar.
Learn more about title bar from
https://brainly.com/question/20380901
#SPJ1
explain the two basic approches that use the concept of pipeling at data link layer
The two basic approaches that use the concept of pipeline at data link layer is given below
Asynchronous pipelineSynchronous pipelineWhat is the data link layer?In the data link layer of the OSI model, the concept of pipelining can be used in two basic approaches:
Asynchronous pipeline: In this approach, a pipeline is used to transmit data in an asynchronous manner, meaning that the data is transmitted without a predetermined clock signal.
Synchronous pipeline: In this approach, a pipeline is used to transmit data in a synchronous manner, meaning that the data is transmitted using a predetermined clock signal.
Therefore, Both approaches can be used to improve the efficiency of data transmission by allowing multiple pieces of data to be transmitted at the same time. However, the synchronous pipeline approach may be more complex to implement and requires more accurate timing, as the clock signal must be carefully coordinated with the transmission of data.
Learn more about data link layer from
https://brainly.com/question/13439307
#SPJ1
A reference is _____.
Answer:
a written or spoken comment that mentions somebody/something
How does a file reader know where one line starts and another ends?
Every line in a text file has a hidden EOL (end of line) set of characters.
Python knows how many characters to expect in a line.
The last item in a line of data does not have a comma after it.
Every line starts with a BOL (beginning of line) character.
Answer:
Every line in a text file has a hidden EOL (end of line) set of characters.
Explanation:
The EOL characters are CR+LF, a.k.a. carriage return (13) + line feed (10).
Some text files only use LF characters to denote a line ending.
What additional uses of technology can u see in the workplace
Answer:
Here are some additional uses of technology in the workplace:
Virtual reality (VR) and augmented reality (AR) can be used for training, simulation, and collaboration. For example, VR can be used to train employees on how to operate machinery or to simulate a customer service interaction. AR can be used to provide employees with real-time information or to collaborate with colleagues on a project.Artificial intelligence (AI) can be used for a variety of tasks, such as customer service, data analysis, and fraud detection. For example, AI can be used to answer customer questions, identify trends in data, or detect fraudulent activity.Machine learning can be used to improve the accuracy of predictions and decisions. For example, machine learning can be used to predict customer churn, optimize marketing campaigns, or improve product recommendations.Blockchain can be used to create secure and transparent records of transactions. For example, blockchain can be used to track the provenance of goods, to manage supply chains, or to record financial transactions.The Internet of Things (IoT) can be used to connect devices and collect data. For example, IoT can be used to monitor equipment, track assets, or collect data about customer behavior.These are just a few of the many ways that technology can be used in the workplace. As technology continues to evolve, we can expect to see even more innovative and creative uses of technology in the workplace.