Answer:
B, and C
Explanation:
they look like the only two answers that make sence
Write the definition of a function that takes as input three numbers. The function returns true if the floor of the product of the first two numbers equals the floor of the third number; otherwise it returns false. (Assume that the three numbers are of type double.) (4)
Answer:
Written in C++
bool checkfloor(double num1, double num2, double num3) {
if(floor(num1 * num2) == floor(num3)){
return true;
}
else {
return false;
}
}
Explanation:
The function written in C++
This line defines the function
bool checkfloor(double num1, double num2, double num3) {
The following if condition checks if the floor of num1 * num2 equals num3
if(floor(num1 * num2) == floor(num3)){
return true; It returns true, if yes
}
else {
return false; It returns false, if otherwise
}
}
See attachment for full program including the main
Using complete sentences post a detailed response to the following.
What are the advantages and disadvantages of top-down and bottom-up programming? How would you decide which one to use? Do you approach problems in your real life from a bottom-up or top-down approach?
Answer:
some advantages of top down is that you can start off from what you know and figure out what you need to complete it, advantages to bottom up is that you can make something new . if you are starting something from scratch and you dont know what the end goal might be you would use bottom up but if you already have an idea or the final product of what you want you would go the top down approach.
Explanation: just saying you shouldnt just copy and paste my response but rather pick out what you want to say and use this to complete what ever your working on. hope i helped :)
Answer:
the guy on top of me is super right follow him
Explanation:
How do I charge my ACDC Halo bolt?
Answer:
To recharge your HALO Bolt, using the provided AC wall adapter cable, plug the AC adapter tip into the charger's charge input DC 20V/0.6A port. Next, connect the AC adapter into a wall outlet. Your HALO Bolt will automatically begin charging. Charge your HALO Bolt for a full eight hours.
Explanation:
The ball in the program was an instance of a sphere.
Which quantity do you change to move the ball?
vector
pos
radius
axis
Answer:
axis
Explanation:
i hop is correct don geve my 5 start in to is conform
Answer:
Pos
Explanation:
Edge2020
Write an expression that prints 'You must be rich!' if the variables young and famous are both True.
young = True
famous = False
if ''' Your solution goes here ''':
print('You must be rich!')
else:
print('There is always the lottery...')
Python 3 language
Answer:
Following are the expression to this question:
if (young and famous==True):
Explanation:
For print, the given expression the code requires some modification that can be defined as follows:
young = True#defining a bool variable that holds a value True
famous = True#defining a bool variable that holds a value True
if (young and famous==True):#defining if block that check variable value
print('You must be rich!')#print message
else:#else block
print('There is always the lottery...')#print message
Output:
You must be rich!
Code explanation:
In the above-given code, two variable "young and famous" is declared, that hold a "True" which is a bool value, in this code, a conditional statement has used, that checks variable value, which can be defined as follows:
In the if block, it uses the above declared variable with and gate to check its value is equal to true. If the condition is true, it will print the true block message, otherwise, go to the else block in this, it will print the else block message.Which input value causes the loop body to execute a 2nd time, thus outputting "In loop" again? { String s = "Go"; while ((!s.equals("q"))&& (!s.equals("")) System.out.println("In loop"); 5 - scnr.nextO;
a) "Quit"
b) "q" only
c) "Q only
d) Either "q" or "Q"
Answer:
a) "Quit"
c) "Q only
Explanation:
Given
String s = "Go";
while ((!s.equals("q"))&& (!s.equals(""))) {
System.out.println("In loop");
s = scnr.next();
}
Required
What input causes another execution
Analyzing the while condition
while ((!s.equals("q"))&& (!s.equals("")))
This can be split into:
!s.equals("q")) && (!s.equals(""))
Meaning
When s is not equal to "q" and when s is not an empty string
In other words,
the loop will be executed when user input is not "q" and user input is not empty.
So, from the list of given options: The loop both will be executed when:
a) Input is "Quit"
c) Input is Q only
Input of q will terminate the loop, hence b and d are incorrect
Write a method called rotate that moves the value at the front of a list of integers to the end of the list. For example, if a variable called list stores the values [8, 23, 19, 7, 45, 98, 102, 4], then the call of list.rotate(); should move the value 8 from the front of the list to the back of the list, changing the list to store [23, 19, 7, 45, 98, 102, 4, 8]. If the method is called for a list of 0 elements or 1 element, it should have no effect on the list. You may neither construct any new nodes to solve this problem nor change any of the data values stored in the nodes. You must solve the problem by rearranging the links of the list.
Answer:
Explanation:
public void rotate()
{
if(front == null)
return;
ListNode current = front;
ListNode firstNode = current;
while(current.next != null)
{
current = current.next;
}
current.next = front;
front = firstNode.next;
firstNode.next = null;
}
Write pseudocode for a function that translates a telephone number with letters in it (such as 1-800-FLOWERS) into the actual phone number. Use the standard letters on a phone pad.
Answer:
Explanation:
Function telToNumbers with one parameter of a String input for the telephoneNumber
String var newTelephoneNum;
for loop through telephoneNumber {
Char var currentChar = current Character in the loop;
currentChar to lower Case;
Switch statement (currentChar) {
case "a" or "b" or "c" : newTelephoneNum += "2"; break;
case "d" or "e" or "f" : newTelephoneNum += "3"; break;
case "g" or "h" or "i" : newTelephoneNum += "4"; break;
case "j" or "k" or "l" : newTelephoneNum += "5"; break;
case "m" or "n" or "o" : newTelephoneNum += "6"; break;
case "p" or "q" or "r" or "s" : newTelephoneNum += "7"; break;
case "t" or "u" or "v" : newTelephoneNum += "8"; break;
case "w" or "x" or "y" or "z" : newTelephoneNum += "9"; break;
default : newTelephoneNum += currentChar; break;
}
}
print newTelephoneNum;
Define a function print_total_inches, with parameters num_feet and num_inches, that prints the total number of inches. Note: There are 12 inches in a foot.
Sample output with inputs: 5 8
I wrote my code in python 3.8:
def print_total_inches(num_feet, num_inches):
return ((num_feet)*12) + num_inches
print("There are a total of {} inches".format(print_total_inches(5,8)))
I hope this helps!
Shrink-wrap, box-top, and click-wrap agreements are inherent to e-commerce. How you feel about them often depends on whether you are the vendor or purchaser. What are the best practices to assure shrink-wrap, box-top, and click-wrap agreements are legal? What are the best ethical practices that the e-commerce industry should adopt?
Answer:
Shrink-wrap, Box-top, and Click-wrap Agreements
a) The best practices to assure that shrink-wrap, box-top, and click-wrap agreements are legal include
1) having e-commerce terms and conditions separate from the normal trade terms and conditions,
2) ensuring that customers agree to the terms before entering into a transaction, and
3) laying the code of conduct for all visitors interacting with your site or doing any business transaction on your site.
b) The best ethical practices that the e-commerce industry should adopt are:
1) Put additional layers of protection like a web application firewall to their websites.
2) Ensure they always adhere to PCI (Payment Card Industry) compliance guidelines.
3) They should not store customers' data which they do not need.
4) Ensure privacy and security of customers' data.
5) Establish trust by safeguarding intellectual property rights.
6) Consider some environmental issues (customers care about them).
Explanation:
a) Websites' Terms and Conditions (T&C) establish some form of legal contract between the organization and its clients.
b)To ensure that organizations that process, store, or transmit credit card information maintain secure online environment, they are required to comply with PCI DSS. It is a set of Payment Card Industry requirements for all organizations involved in the use of online cards for payment for their goods and services.
how has the Internet of Things affected business
Answer:
Business equipment can be continually adjusted based on analysis of data
Explanation:
A P E X
a rectangle is 12 cm long and 9 cm wide.Its perimeter is doubled when each of its sides is increased by a fixed length.what is the length?
Answer:
length = 12 cm
breadth = 9 cm.
perimeter of rectangle = 2( l+b)
= 2(12+9) = 2(21) = 42cm.
New length = (12+x) cm
New breath = (9+x) cm
2(12+x+9+x) = 42×2
2(21+x) = 84
21+ x = 84/2
21+x = 42
x= 42-21= 21
x= 21.
Therefore, length = (12+x)cm
=( 12+21) cm = 33cm.
Explanation:
Firstly we have written the length and breadth of the rectangle.
And the perimeter of rectangle i.e. 2(l+b)
Then, as it is in question we have doubled the perimeter
And at last, we have got the value of x.
and by putting the value in the new length we will get our answer.
hope you have got your answer dear.
Help me! I’ll mark you brainly and give extra points!
Answer:
52 5,
Explanation:
g You and your friend both send documents to the printer, but the printer can only print one document at a time. What does it do with the other document
Answer:
It places the document in a buffer
Explanation:
Since the printer can only print a document at a time, the other document is going to be placed in a buffer.
The print buffer can be described as a location in memory that has the function of holding data that is going to be sent to a computers printer. A print job such as in this scenario may remain in the buffer because another document is to be printed first.
Sometimes a document could be put in the buffer because the computer is waiting for the printer to respond. This is just another reason why documents are placed in a buffer.
A database has one physical schema and one conceptual (logical) schema but many external schemas (views).
a) True
b) False
Answer:
true
Explanation:
A database has one physical schema and one conceptual (logical) schema but many external schemas (views): a. True.
A database refers to a structured (organized) collection of data that are stored on a computer system and usually accessed in various ways such as electronically.
In database management, a database schema can be defined as a structure which is typically used to represent the logical design of the database. Thus, it denotes how data are stored (organized) and the relationships existing in a database management system (DBMS).
Generally, there are two (2) main types of a database schema and these include;
Physical database schema: it is only one per database.Conceptual (logical) schema: it is only one per database.However, there are multiple number of external schemas (views) for each database because it is what an end user is interested in.
Read more on database here: https://brainly.com/question/3259292
Write a python application to simulate a Password Storage and Management system. The purpose of this assignment is to gain experience in python loop (while and for) structure, condition structure, sequence, and basic I/O.
Answer:
Explanation:
Udueuheyeheehhehehehejjejejejehebbevevsvevebebehehh
The standard library for Python includes modules for storing and retrieving serialized data in a number of different data structures, including JSON and XML. A standardized method of working with relational databases is offered by Python's DB-API.
What application of python to Storage and Management?Python's ability to swiftly generate and maintain data structures is one of its most popular applications; Pandas, for example, provides a wealth of tools to modify, analyze, and even depict data structures and complex datasets.
It will be easier to debug memory problems and create memory-efficient apps if you have a superpower for memory management. Join Rupesh Mishra for a thorough examination of CPython's inner workings.
Therefore, Python stores all of its objects and data structures in a private heap that it utilizes to manage memory. The internal management of this private heap is the responsibility of the Python memory manager.
Learn more about python here:
https://brainly.com/question/3533553
#SPJ5
Create a new program with a struct, Data, that contains: an int a char[80] Write a function newData(char[]), that takes char[] as a parameter
Answer:
#include <iostream>
#include <cstring>
using namespace std;
struct Data {
int userId;
char name[80];
}
void newData(string data char[]){
int counts= 0;
struct Data name;
data.userId = ++counts;
data.name = char[];
cout<< data.userId << "\n"<< data.name ;
}
int main( ) {
char myName;
string mydata;
cin>> myName;
cin>> mydata;
newData( myName, mydata);
}
Explanation:
The c++ source code above stores its data in a struct called "Data". The function newData dynamically creates new data from the struct defined.
if you make homemade knitted garments and you sell them to individuals online, what e-commerce are you participating in?
is it B2B or B2C or C2C or SaaS
The Answer Of This Question Is C2C.
The Electronic Age began in the
A. 1940s
B. 1970s
C. 1980s
D. 1990s
Answer:
1940
Explanation:
20 pts, please write in JAVA. need this ASAP
In the Lesson Slides for this activity, we developed a method findChar for figuring out if a character was in a String.
The implementation was:
public boolean findChar(String string, String key)
{
for(int index = 0; index < string.length(); index++)
{
String character = string.substring(index,index+1);
if(character.equals(key))
{
return true;
}
}
return false;
}
However, there is a much more efficient and simple algorithm that we can use to determine if a character is in a String. Using the method signature public boolean findChar(String string, String key), figure out a more efficient method with a lower exection count.
Hint: We’ve learned a couple of methods that can tell us what index a character is at - can we use those to determine if the character is in a String?
public class JavaApplication78 {
public boolean findChar(String string, String key){
if (string.contains(key)){
return true;
}
return false;
}
public static void main(String[] args) {
JavaApplication78 java = new JavaApplication78();
System.out.println(java.findChar("hello", "h"));
}
}
First I created the findChar method using the contains method. It checks to see if a certain sequence of characters is in another string. We returned the result. In our main method, we had to create a new instance of our main class so we could call our findChar method.
Given two integer variables distance and speed, write an expression that divides distance by speed using floating point arithmetic, i.e. a fractional result should be produced.
1. Calculate the average (as a double) of the values contained in the integer variables num1, num2, num3 and assign that average to the double variable avg. Assume the variables num1, num2, and num3 have been declared and assigned values, and the variable avg declared.
Creating objects
2. Declare a reference variable of type File named myFile.
3. Declare a variable named myMenu suitable for holding references to Menu objects.
4. Suppose a reference variable of type File called myFile has already been declared. Create an object of type File with the initial file name input.dat and assign it to the reference variable myFile.
invoking methods
Answer:
Following are the solution to this question:
Explanation:
In this question, the result value which would be produced are as follows:
[tex]= \frac{distance}{(double) \ speed}[/tex]
In point 1:
The formula for the avg variable:
[tex]\to avg = \frac{(num_1 + num_2 + num_3)}{(double)\ 3};[/tex]
In point 2:
The variable for the file is:
File myFile;
In point 3:
The variable for the mymenu:
Menu myMenu;
In point 4:
myString = new String();
PLzzzzzz help me!! I will mark brainiest to the one who answers it right!!
Answer it quickly!!
Write a pseudo code for an algorithm to center a title in a word processor.
Answer: abstract algebra
Explanation: start with the algorithm you are using, and phrase it using words that are easily transcribed into computer instructions.
Indent when you are enclosing instructions within a loop or a conditional clause. ...
Avoid words associated with a certain kind of computer language.
Answer:
(Answers may vary.)
Open the document using word processing software.
In the document, select the title that you want to center. The selected word is highlighted.
On the Menu bar, select the Format tab.
In the Format menu, select Paragraph.
The Paragraph dialog box opens with two sub tabs: Indents and Spacing, and Page and Line Breaks. The first tab is selected by default.
Adjust the indentation for the left and right side. Ensure that both sides are equal.
Preview the change at the bottom of the dialog box.
Click OK if correct, otherwise click Cancel to undo changes.
If you clicked OK, the title is now centered.
If you clicked Cancel, the title will remain as it is.
Explanation:
I took the unit activity
This is my paragraph
. The type of color is ude in this code line is ..............................What is the role of CPU in the computer system?
Answer:
role of cpu in computer is ut is a brain nd a power point if a computer
Explanation:
It helps of shut down and open it
Answer:
CPU is considered as the brain of the computer. CPU performs all types of data processing operations. It stores data, intermediate results, and instructions (program). It controls the operation of all parts of the computer.
Why would an information systems security practitioner want to see network traffic on both internal and external network traffic?
Answer:
To see who is accessing data and also where it is going
Explanation:
An information systems practitioner is a person who is involved in the planning and and also implementation of IT resources for any organization which he at she works.
The information systems practitioner would want to want to see network traffic on both internal and external network traffic so as to know who is accessing data and to also know where it is going.
Write code which takes a sentence as an input from the user and then prints the length of the first word in that sentence.
Hint: think about how you know where the first word ends - you may assume that the sentence contains more than one word.
Input a code in the following:
/* Lesson 3 Coding Activity Question 4 */
import java.util.Scanner;
public class U2_L3_Activity_Four{
public static void main(String[] args){
/* Write your code here */
}
}
import java.util.Scanner;
public class U2_L3_Activity_Four {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
System.out.println("Enter a sentence.");
String sent = scan.nextLine();
int count = 0;
for (int i = 0; i < sent.length(); i++){
char c = sent.charAt(i);
if (c != ' '){
count++;
}
else{
break;
}
}
System.out.println("The first word is " + count +" letters long");
}
}
We check to see when the first space occurs in our string and we add one to our count variable for every letter before that. I hope this helps!
Following are the java code to the given question:
import java.util.Scanner;//import package
public class U2_L3_Activity_Four //defining a class U2_L3_Activity_Four
{
public static void main(String[] args) //defining main method
{
String s;//defining String variable
int x,v=0;//dclaring integer variable x,v
Scanner obx = new Scanner(System.in);//creating Scanner class Object
System.out.println("Enter a sentence.");//print message
s = obx.nextLine();//input string value
for (x = 0; x < s.length(); x++)//defining loop to count string length
{
char c = s.charAt(x);//defining char variable that hold char value
if (c != ' ')//defining if that check space value
{
v++;
}
}
System.out.println("The first word is " + v +" letters long");//print length of first word
}
}
Output:
Please find the attached file.
Program Explanation:
Import package.Defining a class U2_L3_Activity_Four, inside the class main method is declared.Defining a string variable "s" and an integer variable "x,v=0", and a scanner class object is created that inputs string value.In the next step, a for loop is defined that checks the first word in the string value and prints its length value.Learn more:
brainly.com/question/16092924
Why is it useful to teach Karl new commands
Answer:
It's important to teach karl more commands so karl can do more tasks and create more complex algorithms
Explanation:
please help me!!!!!! all of the following may be benefits of a technical or vocational college except
Answer:
im not sure
Explanation: is their supposed to be a picture or something?
Answer: better scholarship opportunities
Explanation:
Write a script that inputs a line of plaintext and a distance value and outputs an encrypted text using a Caesar cipher.
The script should work for any printable characters. An example of the program input and output is shown below:
Enter a message: Hello world!
Enter the distance value: 4
Output: Lipps${svph%
Answer:
def encrypt_text(text,value):
encoded = ""
for i in range(len(text)):
char = text[i]
if (char.isupper()):
encoded += chr"po"ord'po'char'pc' + value -65'pc' % 26 + 65'pc'
else:
encoded += chr'po'ord'po'char'pc' + value -97'pc' % 26 + 97'pc'
return encoded
plaintext = input("Enter sentence of encrypt: ")
dist_value = int(input("Enter number: "))
encrypted = encrypt_text(plaintext, dist_value)
print(encrypted)
Explanation:
The python program above is a Ceasar cipher implementation. The encrypt_text function is defined to accept text input and a distance value, which is used to encrypt the plaintext.
The user can directly input text and the distance value from the prompt and get the encrypted text printed on the screen.
Help me! I’ll mark you brainly ! Please help me I need this now
Explanation: For number 3 I would say shade and darkness.