Answer:
see picture to get started
Explanation:
A C++ class consists out of the class description in the .h file and the implementation in the .cpp file. The blue picture in your question is not using C++ syntax, it looks more like TypeScript.
The main program creates a DateClass object on the heap using the new operator. This is kept in a pointer called pMyDate. In actual production programs you will need to delete pMyDate again after use, to free up the memory.
We generated a "Person" class object in the main function and set its attributes using the dot notation. We then used the "displayInfo" function to print out the attributes of the object.
When an object is formed, which member function is called?A nice illustration of the use of static member functions is named constructors. Functions used to generate an object of a class without (directly) using its constructors are referred to as named constructors.
#include with the std namespace;
public members of the class Person include the following: string name, int age, string occupation, and void displayInfo () cout "Name: " cout "Name: " cout "Age: " cout "Age" cout "Occupation: " cout "Job title: "cout " Job title: "cout " Job title: "cout " Occupation: "cout
Person p1: int main(); p1.displayInfo(); return 0; p1.name = "John"; p1.age = 25; p1.occupation = "Engineer";
To know more about function visit:-
https://brainly.com/question/28939774
#SPJ1
Assembly code
Read 2 numbers. Each is 1 byte. Each is between 0 and 9. If number 1 is less than numer 2, print number 1 is less than number 2. If number 2 is less than number 1, then print number 2 is less than number one. Otherwise, print "they are equal"
Sample input
12
output
first number is less than second number
Sample input
21
Output
first number is greater than second number
Sample input
22
Output
They are equal
Below is an example of assembly code that reads two numbers and compares them according to the given conditions:
perl
section .data
prompt db 'Enter two numbers between 0 and 9: ', 0
format db '%c', 0
less1 db 'first number is less than second number', 0
less2 db 'second number is less than first number', 0
equal db 'they are equal', 0
section .bss
num1 resb 1
num2 resb 1
section .text
global _start
_start:
; display prompt and read first number
mov eax, 4
mov ebx, 1
mov ecx, prompt
mov edx, 35
int 0x80
mov eax, 3
mov ebx, 0
mov ecx, num1
mov edx, 1
int 0x80
; read second number
mov eax, 4
mov ebx, 1
mov ecx, prompt
mov edx, 35
int 0x80
mov eax, 3
mov ebx, 0
mov ecx, num2
mov edx, 1
int 0x80
; compare numbers
mov al, [num1]
cmp al, [num2]
je equal_numbers
jb first_less_than_second
jmp second_less_than_first
equal_numbers:
; print "they are equal"
mov eax, 4
mov ebx, 1
mov ecx, equal
mov edx, 13
int 0x80
jmp exit_program
first_less_than_second:
; print "first number is less than second number"
mov eax, 4
mov ebx, 1
mov ecx, less1
mov edx, 31
int 0x80
jmp exit_program
second_less_than_first:
; print "second number is less than first number"
mov eax, 4
mov ebx, 1
mov ecx, less2
mov edx, 31
int 0x80
exit_program:
; exit program
mov eax, 1
xor ebx, ebx
int 0x80
What is the Assembly code about?The code uses system calls to display prompts, read input, and print output.
Therefore, The cmp instruction is used to compare the two numbers, and then the program jumps to the appropriate section of code based on the result of the comparison. Finally, the program exits using a system call.
Read more about Assembly code here:
https://brainly.com/question/13171889
#SPJ1
BCC leadership has requested the chief information security officer (CISO) develop a feasibility study and recommendation for outsourcing the security department labor to a third-party vendor. The CISO will remain with the company as an internal BCC employee.
Part 1
Create an 8- to 10-slide Microsoft® PowerPoint® feasibility study and vendor selection criteria presentation for outsourcing the information security personnel. The feasibility study presentation should include the following:
Title slide
Analysis of the situation
Business case analysis comparing in-house vs outsourced
Cost-benefit analysis (CBA)
Total cost of ownership (TCO)
Return on investment (ROI)
Cost differential/net present value
Vendor selection process
At least three critical criteria for selecting a vendor to provide information security services
At least two significant challenges associated with managing a vendor within a hospital environment
The CISO will remain with the company as an internal BCC employee. Three critical criteria for selecting a vendor to provide information security services are:
Expertise and experience: The vendor should have expertise and experience in information security services that are relevant to the hospital environment. This includes but is not limited to access control, network security, data encryption, disaster recovery, and incident response. The vendor should also have a good reputation in the industry and a proven track record of delivering high-quality services to similar clientsCompliance and certification: The vendor should comply with all relevant laws, regulations, and industry standards for information security, such as HIPAA, HITECH, PCI-DSS, and ISO 27001. The vendor should also have the necessary certifications, such as CISM, CISSP, and CRISC, to demonstrate its competence and professionalism. Cost and value: The vendor should provide a cost-effective and competitive pricing model that aligns with the hospital's budget and expectations. The vendor should also provide a clear and transparent proposal that outlines the scope, deliverables, timelines, and milestones of the project, as well as the service level agreements (SLAs) and performance metrics that will be used to measure the vendor's performance.Two significant challenges associated with managing a vendor within a hospital environment are:Security and privacy: The hospital must ensure that the vendor complies with all security and privacy policies and procedures that are applicable to the hospital's data and systems. This includes but is not limited to data encryption, access control, user authentication, and incident response. The hospital must also monitor and audit the vendor's activities to detect and prevent any unauthorized access, use, or disclosure of confidential information.Communication and coordination: The hospital must establish and maintain effective communication and coordination channels with the vendor to ensure that the project is delivered on time, within budget, and with high quality. The hospital must also define and enforce the roles and responsibilities of both parties, and resolve any conflicts or issues that may arise during the project. The hospital must also ensure that the vendor understands the hospital's culture, values, and mission, and that the vendor's activities do not conflict with the hospital's interests.for more such question on professionalism
https://brainly.com/question/13964646
#SPJ11
The thing about this is nun of it makes sense to me
Anyone can help?
Answer:
To determine if a user was near a particular public event
Explanation:
Because the metadata is for the "location" the app was used you look for the answer which pertains to the location of the user. Also, the app is formulated around the user's interests, age, etc. So location would be pointless unless trying to figure out their interests with said location, such as buying preference.
A and B are all invalid because they are pointless.
A) You do not need location for determining if they are interested in sports unless they are at a particular event for sports , hence D
B) You would not be able to determine if the user likes cable TV with the metadata.
So it is either between C or D.
Now which is the most relevant pertaining to the mission of the app?
Well one of them are just stalkerish and the other is the only acceptable and appropriate one.
Consider the following client code and assume that it compiles correctly:
public class MyTesterClass
{
public static void main(String[] args)
{
MyClass myObject = new MyClass (12.4, 20);
int value1 = MyClass.SOME_VALUE;
int value2 = myObject.method1();
int value3 = MyClass.method2(20);
}
}
Which of the following is a class method?
a.method1
b.method2
c.MyClass
d.SOME_VALUE
e.This cannot be determined by examining the above code
The class method in the given code is "b.method2" because it is called using the class name "MyClass" and not an instance of the class. In Java, we refer to class methods by using the class name followed by a dot and the method name.
In Java, a class method is a method that belongs to the class rather than to an instance of the class. It can be called using the class name followed by a dot and the method name. In the given code, option b.method2 is a class method because it is called using the class name "MyClass". Option a.method1 is an instance method because it is called using an instance of the class "myObject". Option c refers to the name of the class and option d refers to a static final variable.
The class method in the given code is "b.method2" because it is called using the class name "MyClass" and not an instance of the class. In Java, we refer to class methods by using the class name followed by a dot and the method name.
The other options are as follows:
a. "a.method1" is an instance method because it is called using an instance of the class "myObject".
c. "c.MyClass" is the name of the class and not a method.
d. "d.SOME_VALUE" is a static final variable and not a method.
Visit to know more about code:-
https://brainly.com/question/26134656
#SPJ11
3.14.1: String access operations.
444686.3221032.qx3zqy7
Jump to level 1
Given string strInput, output "A question" if the string's last character is '?'. Otherwise, output "Not a question". End with a newline.
Ex: If the input is:
Where are you from?
then the output is:
A question
IN C++
Here's a possible C++ code solution for the given problem:
The Program#include <iostream>
#include <string>
using namespace std;
int main() {
string strInput;
getline(cin, strInput); // read the input string from standard input
if (strInput.back() == '?') {
cout << "A question" << endl;
} else {
cout << "Not a question" << endl;
}
return 0;
}
In this code, we use the std::string class from the <string> header to represent the input string. We read the input string from standard input using the getline function, which reads a whole line of input until a newline character is encountered.
Then we check if the last character of the string is '?' using the back member function, which returns a reference to the last character of the string. If it's '?', we output "A question", otherwise we output "Not a question", both followed by a newline character (\n) to match the problem statement.
Note that this code assumes that the input string does not contain any leading or trailing white space characters (spaces, tabs, etc.), since getline removes them by default. If you want to preserve them, you can use the std::getline function with a delimiter parameter, or a combination of std::cin >> std::ws and std::getline.
Read more about programs here:
https://brainly.com/question/26134656
#SPJ1
A company's legal and accounting teams have decided it would be more cost-effective to offload the risks of data storage to a third party. The IT management team has decided to implement a cloud model and has asked the security team for recommendations. Which of the following will allow all data to be kept on the third-party network?
A. VDI
B. SaaS
C. CASB
D. FaaS
The answer is (B) SaaS. SaaS (Software-as-a-Service) is a cloud computing model where the software application is hosted by a third-party provider, and users can access the application through the internet.
All the data is stored on the provider's network, and users can access it as needed. This model allows the company to offload the risks of data storage to the third-party provider, while still being able to access the data when needed.
VDI (Virtual Desktop Infrastructure) is a model where the desktop environment is hosted on a remote server, and users can access the desktop through the internet. However, the data is stored on the user's device, not on the provider's network.
CASB (Cloud Access Security Broker) is a security tool that provides visibility and control over cloud services. It does not store data on its own network.
FaaS (Function-as-a-Service) is a cloud computing model where the provider manages the infrastructure needed to execute a specific function or piece of code. It does not provide data storage capabilities.
To know more about SaaS click here:
brainly.com/question/24233315
#SPJ4
how to write a program in c language
INT PRI () Every programme written in C begins with the main() function. Printing data to the console is done using the printf() function.
What exactly are the fundamentals of the C programming language?The programming language C is all-purpose for computers. Dennis Ritchie came up with it back in the '70s, and it's still heavily utilised and important today. The features of C, by design, accurately mirror the capabilities of the CPUs it is intended to run on. The structural or procedural programming language C was utilised for system applications and low-level programming applications. C++, on the other hand, is an object-oriented programming language with some additional features like encapsulation, data hiding, data abstraction, inheritance, polymorphism, etc.At Bell Labs in 1972, Dennis Ritchie developed the general-purpose computer language C. Despite being ancient, it is a relatively common language. Due to its development for the UNIX operating system, C has a close connection to UNIX.To learn more about C language, refer to:
https://brainly.com/question/26535599
Answer:
Martin Fowler once said:
“ Any fool can write code that a computer can understand. Good programmers write code that humans can understand. ”
Explanation:
Header file: #include<stdio.h>
Main function: int main(){
//code here;
printing statement: printf("format string");
printing statement: printf("format string", specifiers if used);
user input statement: scanf("format specifiers", &variable);
// Format Specifiers Type of Output
%d or %i A decimal integer or signed integer
%c Signed character
%f Signed float
%e A floating-point number
%s A string
}
Example program:
#include<stdio.h>
int main(){
int i, j, a;
printf("enter two values:");
scanf("%d %d", &i, &j);
a=i*j;
printf("area: %d", a);
//return 0;
}
What kind of virtual machine uses the JAVA language, how does it work?
Answer:
there are two types of machine operates on two kinds of types primitive types and references types.
Explanation:
What would be the output of the following programs } int a = 300, b, c; if (a >= 400) b = 300; c = 200; printf ("\n%d %d", b, c);
The output of the program would be:
0 200
This is because the variable a has a value of '300', which is not greater than or equal to '400', so the statement b = 300 is not executed. Therefore, the value of b remains uninitialized and contains an unspecified value. The statement c = 200 is executed, so the variable c has a value of 200.
When the printf statement is executed, the value of b is printed, which is uninitialized and therefore has an unspecified value (in this case, 0), followed by the value of c, which is '200'. Therefore, the output is '0 200'.
[tex] \: [/tex]
what scap component provides a list of entries that contains an identification number, a description, and a public reference for each publicly known weakness in a piece of software? xccdf cve cce cpe see all questions back next question course content course content overview q
The scap component that provides a list of entries that contains an identification number, a description, and a public reference for each publicly known weakness in a piece of software is CVE
Security Content Automation Protocol (SCAP) is a comprehensive and standardized protocol for ensuring the security of computer systems. SCAP was created by the National Institute of Standards and Technology (NIST) to provide a framework for managing and maintaining system security.SCAP consists of several distinct parts, including:CVE - Common Vulnerabilities and Exposures, a database of known vulnerabilities CPE - Common Platform Enumeration, a standard way of identifying IT productsCCE - Common Configuration Enumeration, a standard way of describing system configurations XCCDF - Extensible Configuration Checklist Description Format, a standard language for defining security checklistsOVAL - Open Vulnerability and Assessment Language, a standard way of defining security testsBy using SCAP, system administrators can automate the process of vulnerability management and ensure that their systems remain secure and up to date with the latest security patches and updates.for more such question on vulnerabilities
https://brainly.com/question/29023779
#SPJ11
WRITE A PROGRAM IN QBASIC TO PRINT THE MULTIPLICATION TABLE FROM 1 TO 12.
Given string inputStr on one line and character userChar on a second line, output "Found match" if the fifth character of inputStr matches userChar. Otherwise, output "No match". End with a newline.
Ex: If the input is:
quart
t
then the output is:
Found match
If the fifth character of inputStr matches userChar, the result will read "Found match." Otherwise, it will read "InputStr not found" are:-
What does strchr in C do?A pointer to the first instance of c in a string that is transformed to a character is returned by the strchr() method. If failing to locate the requested character, the method returns NULL.
C lacks a String type that would allow for the quick creation of string variables, in contrast to many other programming languages. Instead, in order to generate a string in C, you must use the char type and an array of characters: Remember that you must use double quotes with greetings[] = "Hello World!" ( "" ).
//use respective lines for provided code
if (userInput.charAt(0) == firstLetter) {
System.out.println("Found match: " + firstLetter);
}
else {
System.out.println("No match: " + firstLetter);
}
//use remaining lines from the provided code
To know more about inputStr visit:-
https://brainly.com/question/30364578
#SPJ1
2. Which statements regarding client-server applications and their protocols used on networks and the Internet are FALSE (More than one statement applies)?
a.
The primary protocol used by Web servers and browsers (clients) is HTTP (Hypertext Transfer Protocol).
b.
In e-mail services, the recipient’s mail server delivers the message to the receiving client using one of two protocols: POP3 (Post Office Protocol, version 3) or IMAP (Internet Message Access Protocol, version 4). Using IMAP4, the email is downloaded to the client computer and typically removed from the server. Using POP3 the client application manages the email while it remains stored on the server.
c.
FTP (File Transfer Protocol) is a client-server application that transfers files between two computers, primarily using FTP. FTP uses encryption and is therefore extremely secure.
d.
The Telnet protocol is a command-line application included in many operating systems, but transmissions in Telnet are not encrypted. This has caused Telnet to be largely replaced by other, more secure programs, such as the ssh command in the Linux operating system.
The correct answer is There are two statements in the given options that are false. FTP File Transfer Protocol is a client-server application that transfers files between two computers, primarily using FTP.
However, FTP does not use encryption by default and is, therefore, not considered a secure protocol for transferring sensitive data over the internet. The Telnet protocol is a command-line application included in many operating systems, and transmissions in Telnet are not encrypted. This makes Telnet an insecure protocol for remote access to computers over the internet. As a result, it has largely been replaced by more secure alternatives, such as SSH (Secure Shell) in the Linux operating system The statement "The primary protocol used by Web servers and browsers (clients) is HTTP (Hypertext Transfer Protocol)" is true. HTTP is a client-server protocol used for the transfer of web-based data, including text, images, videos, and other multimedia files. The statement "Using IMAP4, the email is downloaded to the client computer and typically removed from the server. Using POP3 the client application manages the email while it remains stored on the server" is also true. IMAP and POP are two protocols used for email retrieval, and they differ in how they handle email storage and access. In summary, FTP is not considered a secure protocol, and Telnet is not a secure protocol for remote access, whereas HTTP is the primary protocol for web-based data transfer, and IMAP and POP are two protocols used for email retrieval.
To learn more about File Transfer Protocol click on the link below:
brainly.com/question/30725806
#SPJ1
basil telecommunications have hired you as a network manager for providing a network system that will include redundant processors, backup generators, and earthquake-resilient installation. you have decided that the average downtime per year cannot be more than 5 minutes 15 seconds. which of the following will you use in this scenario?
a. two 9s
b. five 9s
c. four 9s
d. three 9s
The correct option to use in this scenario is option b, five 9s of reliability.
A network system with five 9s of reliability means that it has an uptime of 99.999%, which corresponds to a maximum allowable downtime of just 5.26 minutes per year.
This level of reliability ensures that the network system experiences minimal downtime, providing uninterrupted service to customers of Basil telecommunications.
To achieve this level of reliability, the network system should have redundant components, such as processors and backup generators, as well as earthquake-resilient installations. These measures ensure that the network system can quickly recover from any outages, reducing the impact of any failure on the overall uptime of the system.
Overall, a network system with five 9s of reliability provides the highest level of availability and uptime, making it the best option to meet the uptime requirements of Basil telecommunications.
To know more about network system click here:
brainly.com/question/1326000
#SPJ4
I need help with my C++ class I need to learn how to do a multiplication table but in reverse please any help will do
Answer:
You can use a nested for loop to create a multiplication table in reverse. Start with the outer loop and set it to iterate from 10 down to 1. Inside the loop, set up a second loop to iterate from 10 to 1 and print out the result of the multiplication each time.
#include <iostream>
using namespace std;
int main()
{
for (int i = 10; i >= 1; i--)
{
for (int j = 10; j >= 1; j--)
{
cout << i << " * " << j << " = " << i*j << endl;
}
}
return 0;
}
This code initialises two variables, num1 and num2, to 12 before iterating through each pair of numbers in reverse order using a while loop. It prints the outcome of multiplying num1 by num2 inside the loop.
How can I print a table from 1 to 10 in C?Algorithm. Step 1: Input a value to print a table dynamically. Read that number off the keyboard in step two. Step 3: Print number*I ten times using the for loop. / for(i=1; i=10; i++) Print num*I 10 times, with I ranging from 0 to 10.
#include
num1 = 12 int main();
num2 (int) = 12;
"Table of 12 in reverse," std::cout, followed by std::endl;
as long as (num1 >= 1) num1 * num2 std::endl; num2--; if (num2 == 0) num2 = 12; num1--; std::cout num1 " by " std::cout num2 " = "
returning 0;
To know more about code visit:-
https://brainly.com/question/17293834
#SPJ1
in the shop class, complete the function definition for setnumemployees() that takes in the integer parameter newnumemployees. ex: if the input is 232 42 9, then the output is: items in stock: 232 years open: 42 number of employees: 9
The function setnumemployees() in the shop class is responsible for setting the number of employees in the shop object.
It takes an integer parameter newnumemployees, which represents the new number of employees to be set for the shop object.
The function simply sets the value of the private member variable numemployees to the value of the parameter newnumemployees.
In the given example, if the input is "232 42 9", the function call will set the number of employees of the shop to 9. The function does not return any value, but it modifies the state of the shop object by updating the value of its numemployees member variable.
Overall, this function allows for the number of employees of a shop object to be easily updated and modified as needed.
To know more about function click here:
brainly.com/question/29911729
#SPJ4
(Difficult) Introducing a New Programming Language:
Two Computer Science students, Drew and Jane, decided to create their own basic programming language which they called Drane (Drew + Jane). The following is a small subset of the statements available in the Drane programming language:
---------------------------------------------------------------------------------------------------
Statement--- Explanation
b = expression---
The result of the expression is assigned to variable b.
a + b, a - b, a * b, a / b---
+ = addition, - = subtraction, * = multiplication, / = division
WHEN [ condition ]
{
instructions1
}
OTHERWISE
{
instructions2
}---
This is a conditional statement. When the condition is true,
the statements represented by instructions1 are executed.
Otherwise the statements represented by instructions2 in the OTHERWISE block are executed.
Note: The WHEN statement can be used without the OTHERWISE clause.
LOOP [ n ]
{
instructions
}---
Loops n number of times and executes the instructions each time
---------------------------------------------------------------------------------------------------
You have been asked to code the following algorithm using the Drane programming language:
"You have been given two integers 'start' and 'stop' (both inclusive) and display the result. For example, if given the numbers 2 & 5, then the algorithm should display 14 (which is 2 + 3 + 4 + 5).
Which of the following would successfully code this algorithm in the Drane programming language?
A. sum = 0
num = start
LOOP [ stop ]
{
num = num + 1
sum = sum + num
}
SHOW [ sum ]
B. sum = 0
num = start
LOOP [ stop - start ]
{
sum = sum + num
num = num + 1
}
SHOW [ sum ]
C. sum = start
num = start + 1
LOOP [ stop - start ]
{
WHEN [ num < stop ]
{
sum = sum + num
num = num + 1
}
}
SHOW [ sum ]
D. sum = 0
num = start
LOOP [ stop - start + 1 ]
{
sum = sum + num
num = num + 1
}
SHOW [ sum ]
To code the given algorithm in the Drane programming language, the correct option is B. `sum = 0 num = start LOOP [ stop - start ]{sum = sum + numnum = num + 1}SHOW [ sum ]`
In the algorithm, two integers 'start' and 'stop' are provided, where 'start' and 'stop' are inclusive. The result is obtained by adding these integers with the numbers in between them.Code the given algorithm in the Drane programming language:1: Set sum and num to 0 and start respectively2: In a loop, loop through the range (stop - start) and add the value of num to the sum at each iteration. Increment the value of num by 1. The loop will execute until it has looped through the number of times equivalent to the difference between the stop and start value. `sum = 0 num = start LOOP [ stop - start ]{sum = sum + numnum = num + 1}`3: Output the final value of sum. `SHOW [ sum ]`Therefore, the correct option is B. `sum = 0 num = start LOOP [ stop - start ]{sum = sum + numnum = num + 1}SHOW [ sum ]` successfully code this algorithm in the Drane programming language.Learn more about algorithm: https://brainly.com/question/13902805
#SPJ11
Now that you have the discount_pct, use your code from that calculation and multiply it by the original_price to see if it matches the discount_amount you calculated . Again, do this calculation in a new column and name the column check.
Want a hint?
For this new column, use the same code that you used for the last column, but multiply it by the original_price field.
Remember, you cannot reference a column name (like discount_amount) within the same query, so you will have to copy the calculation you used previously. Be careful of parentheses
Use the formula "=ROUND((D2/C2-1)*C2,2)" to create a new column called "check." (assumed that original price is in column C, discount amount is in column F, and discount pct is in column E).
What does Excel's check formula do?Choose the worksheet you want to review for mistakes. Press F9 to perform a new calculation if the worksheet was calculated manually. Click the Formulas tab > Formula Auditing > Error Checking button if the Error Checking dialogue is not visible.
How should a formula be used in a column?After selecting the cell containing the formula, decide which of the adjacent cells you want to fill in. Choose either Down, Right, Up, or Left under Home > Fill. Shortcut key: Alternatively, you can use Ctrl+R or Ctrl+D to fill the formula in a row.
To know more about column visit:-
brainly.com/question/13602816
#SPJ1
Display items ordered for customer #10449, its standard price, and total price for all items ordered. Use label for Total Price. (HINT: Total price is Sum(quantity*price). Also, don’t forget the GROUP BY statement.
Answer:
Assuming you have a database with tables orders, order_details, and products with the necessary columns, here's an SQL query that retrieves the items ordered for customer #10449, their standard price, and the total price for all items ordered:
SELECT
products.productName AS ItemOrdered,
order_details.pricePerUnit AS StandardPrice,
SUM(order_details.quantity * order_details.pricePerUnit) AS TotalPrice
FROM
orders
INNER JOIN order_details ON orders.orderID = order_details.orderID
INNER JOIN products ON order_details.productID = products.productID
WHERE
orders.customerID = '10449'
GROUP BY
products.productName,
order_details.pricePerUnit;
Explanation:
This query joins the orders, order_details, and products tables and filters the result to only include rows where the customerID is '10449'. It then groups the result by productName and pricePerUnit, and calculates the total price for each group using the SUM function.
The result will have three columns: ItemOrdered, StandardPrice, and TotalPrice, where ItemOrdered is the name of the product ordered, StandardPrice is the standard price for that product, and TotalPrice is the total price for all items of that product ordered by customer #10449. The TotalPrice column is labeled "Total Price" based on the instructions.
which of the following can not be used as an argument to the collect method of the stream class. group of answer choices collectors.joining() collectors.toarray() collectors.tolist() collectors.toset()
Out of the given options, collectors.to array() cannot be used as an argument to the collect method of the stream class.
The collectors. to array () is an argument that cannot be used with the collection method of the Stream class. The collection method of the Stream class collects all of the elements in the stream into a specified collection or data structure. It returns the result of the final accumulation operation of the stream pipeline. The Collectors class, on the other hand, provides several predefined reduction operations that can be used with the collect method. The predefined operations can be used to collect data into different types of collections, like Lists, Sets, or Maps. The collectors. joining() argument returns a Collector that concatenates the input elements into a single string, with optional delimiters, prefixes, and suffixes. The collectors. to list () argument returns a Collector that accumulates the input elements into a new List. The collectors. to set () argument returns a Collector that accumulates the input elements into a new Set. Therefore, the collectors. array () argument is not a valid argument for the collect method.
learn more about array here:
https://brainly.com/question/30757831
#SPJ11
BONUS QUESTION WORTH 100!!
no links please and no copying and pasting .I will report you and you will be given a warning.
only answer if you know this please!.
Your Assignment, Part I
You decide that you want to open a flower shop. You want to sell premade arrangements, custom arrangements, bouquets containing either one or two types of flowers, and individual flowers.
Before you can open a shop though, you need to make sure your personal finances are in order. You can use spreadsheets in order to do this.
Submit any spreadsheets you create to your instructor at the end of this project.
1. Imagine you have $15,000 saved in a personal account to help supplement your income during the first year your business is open. Per month, the rent on your current apartment is $500, utilities are generally about $45, gas for your car is about $120, and food costs are about $350. In September, you know your rent will increase to $525 per month. Create a budget that divides the $15,000 across these categories for a full year. If there is any extra money, include that in your budget.
2. With your personal finances taken care of, you feel prepared to open your flower shop. You secure a small business loan for $60,000. You want to spend $30,000 of that loan renovating the space for your shop and $15,000 on equipment needed to store the flowers and create arrangements. Rent will be $700 per month or $4,200 for the first six months the shop is open and utilities will be approximately $76 per month or $456 for the first six months. You also want to spend $2,000 on flowers and supplies to stock the shop for the first month and $600 per month for the next five months to restock flowers and greenery.
a) Create a budget for the shop’s opening with this information.
b) Looking at these numbers in the spreadsheet starts to get a little overwhelming. You want to be able to look quickly at a chart and have a good idea of how much of your loan will be used in the first month of opening the business. What type of graph or chart would work best for this?
c) Create the graph or chart that will best show how you spent your loan in the first month of opening the business.
3. The shop has been open for a week now and you need to work on the first payroll for your two employees, Sean and Justine. Sean’s hourly pay is $8.25. He worked 10 hours this week and is taxed at a 5% rate. Justine’s hourly pay is $9.00. She worked 30 hours this week and is taxed at a 6% rate.
a) Create a spreadsheet for your payroll. Make sure you use a formula to automatically calculate Total Pay.
b) Did you use conditional formatting on any of the cells? If so, which ones? Explain why.
4. After working on payroll, you decide to take inventory of what’s in the shop because your next order date is coming up soon. You will just focus on your inventory of flowers.
a) Use the following information to create your inventory record:
254 red roses currently; 48 sold this week
102 yellow roses currently; 12 sold this week
40 pink hydrangeas currently; 3 sold this week
164 white daisies currently; 52 sold this week
132 yellow daisies currently; 48 sold this week
144 orange daisies currently; 18 sold this week
86 pink lilies currently; 4 sold this week
102 white peonies currently; 24 sold this week
98 pink peonies currently; 36 sold this week
b) If your current rate of sales continues, in how many weeks will you run out of pink peonies and red roses, assuming that all flowers remain fresh? Use your spreadsheet to calculate the answer.
5. Kimberly Melville comes in wanting to order a personalized flower arrangement. She wants an arrangement with 10 white daisies, 4 white peonies, and 2 pink lilies. White daises are $1 each, white peonies are $2.75 each, and pink lilies are $4 each. Kimberly also chooses a vase that costs $14.00. Each of these items is taxable, and the tax rate is 7.5%. You write down her address as 300 Starlight Court, Baltimore MD, 21228. Create an invoice for this order.
6. Three months after the shop first opens, you want to create an up-to-date balance sheet to see how the company is doing financially in its first quarter (January through March). Use the information below to create your balance sheet.
Your current assets include:
$3,546 for Accounts Receivable (from invoices)
$15,000 for Equipment
$3,200 for Inventories
$678 for Cash
Your current liabilities include:
$3,200 for Accounts Payable
$4,200 for Wages
$300 for Taxes Payable
Total expenses for the year: $12,280
The Budget PlanBased on the information provided, here's a budget plan that divides the $15,000 across the categories mentioned:
Rent:
$500 x 8 months = $4,000
$525 x 4 months = $2,100
Total rent expenses = $6,100
Utilities:
$45 x 12 months = $540
Gas:
$120 x 12 months = $1,440
Food:
$350 x 12 months = $4,200
Total expenses for the year: $12,280
With $15,000 in savings, this leaves $2,720 for unexpected expenses, emergencies, or any other miscellaneous costs that may arise throughout the year.
It's always a good idea to have some extra funds available in case of unforeseen circumstances, so this budget plan provides a cushion for those situations.
Read more about budgets here:
https://brainly.com/question/6663636
#SPJ1
what is touch pad ? computer of class:6
On laptops a touchpad or trackpad is a pointing device featuring a tactile sensor, a specialized surface that can translate the motion and position of a user's fingers to a relative position on the operating system that is made output to the screen
Answer:
A touchpad, also known as a trackpad, is an input device commonly found on laptops and some desktop computer keyboards. It is a rectangular or square pad usually located below the keyboard or in front of it. The touchpad allows the user to control the cursor or pointer on the screen by moving their finger or fingers across its surface.
The touchpad has a sensor that detects the movement of the user's finger and translates it into movement on the screen. It also typically includes one or more buttons that can be used to perform actions such as selecting, dragging, or scrolling.
Many touchpads support multi-touch gestures, allowing the user to perform more complex actions by using two or more fingers simultaneously, such as pinch-to-zoom, swiping, or rotating. Touchpads have largely replaced the traditional trackball and pointing stick as the primary means of cursor control on laptops and other portable computing devices.
lab goal : this lab was designed to teach you how to instantiate an object, pass parameters, utilize loops, selection, and store results in a string. lab description : create methods that use a loop to add a dash ( - ) between each letter in a word. sample data: purple jellyfish dumpling sample output : void method :: dashed word: p-u-r-p-l-e return method :: dashed word: p-u-r-p-l-e void method :: dashed word: j-e-l-l-y-f-i-s-h return method :: dashed word: j-e-l-l-y-f-i-s-h void method :: dashed word: d-u-m-p-l-i-n-g return method :: dashed word: d-u-m-p-l-i-n-g dashed word lab value - 100
In the Dashed Word Lab, the goal is to help you learn object instantiation, passing parameters, using loops, making selections, and storing results in strings. In this lab, you'll create methods that use a loop to insert a dash (-) between each letter of a word.
For example, if the input word is "purple", the output should be "p-u-r-p-l-e". You'll create both void and return methods for this task. The void method prints the dashed word directly, while the return method returns the dashed word as a string. Sample data includes words like "purple", "jellyfish", and "dumpling". The expected output for these words is:
void method :: dashed word: p-u-r-p-l-e
return method :: dashed word: p-u-r-p-l-e
void method :: dashed word: j-e-l-l-y-f-i-s-h
return method :: dashed word: j-e-l-l-y-f-i-s-h
void method :: dashed word: d-u-m-p-l-i-n-g
return method :: dashed word: d-u-m-p-l-i-n-g
This lab provides valuable practice in working with loops, parameter passing, and string manipulation, while also reinforcing your understanding of object instantiation and method creation. The lab is worth 100 points.
for more such question on parameters
https://brainly.com/question/29673432
#SPJ11
1. When is it appropriate to yell at a user?
O A. After he or she screws up the second time.
O B. When he or she interrupts your troubleshooting.
C. It's never appropriate to yell at a user.
D. Anytime he or she ignores your guidance.
a. In cell C15, create a formula without using a function that subtracts the vendor cost (cell C7) and the shipping cost (cell C9) from the sales price (cell C8), and then multiplies the result by the projected number of units for sale in 2021 (cell C10). Use absolute references to each cell in the formula.
Answer:
To create a formula in cell C15 that subtracts the vendor cost (cell C7) and the shipping cost (cell C9) from the sales price (cell C8), and then multiplies the result by the projected number of units for sale in 2021 (cell C10), you can use the following formula:
=($C$8-$C$7-$C$9)*$C$10
This formula subtracts the vendor cost and the shipping cost from the sales price and then multiplies the result by the projected number of units for sale in 2021. The dollar signs before the cell references ensure that the formula uses absolute references to each cell, so the cell references don't change when you copy the formula to other cells.
in java program code Artwork label (classes/constructors) Given main(), define the Artist class (in file Artist.java) with constructors to initialize an artist's information, get methods, and a printInfo() method. The default constructor should initialize the artist's name to "unknown" and the years of birth and death to -1. printInfo() displays "Artist:", then a space, then the artist's name, then another space, then the birth and death dates in one of three formats: (XXXX to YYYY) if both the birth and death years are nonnegative (XXXX to present) if the birth year is nonnegative and the death year is negative (unknown) otherwise Define the Artwork class (in file Artwork.java) with constructors to initialize an artwork's information, get methods, and a printInfo() method. The default constructor should initialize the title to "unknown", the year created to -1. printInfo() displays an artist's information by calling the printInfo() method in Artist.java, followed by the artwork's title and the year created. Declare a private field of type Artist in the Artwork class.
The Artist and Artwork classes can be defined with constructors and printInfo() methods to initialize and display an artist's and an artwork's information.
Java code snippet of the solutionArtist.java
public class Artist {
private String name;
private int birthYear;
private int "";
public Artist() {
this.name = "unknown";
this.birthYear = -1;
this."" = -1;
}
public Artist(String name, int birthYear, int "") {
this.name = name;
this.birthYear = birthYear;
this."" = "";
}
public String getName() {
return this.name;
}
public int getBirthYear() {
return this.birthYear;
}
public int getDeathYear() {
return this."";
}
public void printInfo() {
System.out.print("Artist: " + this.name + " ");
if (this.birthYear >= 0 && this."" >= 0) {
System.out.println(this.birthYear + " to " + this."");
Learn more about Java here:
https://brainly.com/question/25458754
#SPJ1
Assembly code
Read two names. Each is 3 bytes long. If both names are identical, print IDENTICAL, otherwise type DIFFERENT
Sample input
ABC
EFG
Output
DIFFERENT
Sample input
LOY
LOY
Output
Identical
Helpful Code
;nasm 2.13.02
section .data
message: db 'Identical',10
messageLen: equ $-message
message2: db 'BL is less than AL',10
messageLen2: equ $-message2
section .bss
val1: resb 2
val2: resb 2
section .text
global _start
_start:
mov eax,3
mov ebx,0
mov ecx,val1
mov edx,2
int 80h
mov eax,3
mov ebx,0
mov ecx,val2
mov edx,2
int 80h
mov al,[val1]
mov bl,[val2]
cmp al,bl
jnz end
mov al,[val1+1]
mov bl,[val2+1]
cmp al,bl
jnz end
mov eax,4
mov ebx,1
mov ecx,message
mov edx,messageLen
int 80h
end:
mov eax,1
mov ebx,0
int 80h;
This Assembly code reads two names of 3 bytes each and compares them to determine if they are identical or different. Here is an explanation of the code:
;nasm 2.13.02
section .data
message: db 'Identical',10
messageLen: equ $-message
message2: db 'DIFFERENT',10
messageLen2: equ $-message2
section .bss
val1: resb 3
val2: resb 3
section .text
global _start
_start:
; Read the first name
mov eax,3
mov ebx,0
mov ecx,val1
mov edx,3
int 80h
; Read the second name
mov eax,3
mov ebx,0
mov ecx,val2
mov edx,3
int 80h
; Compare the names
mov al,[val1]
mov bl,[val2]
cmp al,bl
jnz different
mov al,[val1+1]
mov bl,[val2+1]
cmp al,bl
jnz different
mov al,[val1+2]
mov bl,[val2+2]
cmp al,bl
jnz different
; If the names are identical, print "Identical"
mov eax,4
mov ebx,1
mov ecx,message
mov edx,messageLen
int 80h
jmp end
different:
; If the names are different, print "Different"
mov eax,4
mov ebx,1
mov ecx,message2
mov edx,messageLen2
int 80h
end:
; Exit the program
mov eax,1
mov ebx,0
int 80h
The program first defines the two messages that will be printed: "Identical" and "DIFFERENT". It then defines two buffers to hold the two names, val1 and val2.
In the main program, the first name is read into val1 using the read system call. The second name is read into val2 in the same way.
The names are then compared byte-by-byte using cmp instructions. If any two corresponding bytes are not equal, the program jumps to the label different, which prints "DIFFERENT" using the second message.
If the names are identical, the program continues to the mov instruction that loads the first message into the ecx register, followed by the int 80h instruction that prints the message using the write system call.
The program then jumps to the end label, which exits the program using the exit system call.
Learn more about Assembly code at:
https://brainly.com/question/30462375
#SPJ1
After renovations, each room will have more capacity. You want to determine the projected revenue after the renovations have been completed.
In cell I6, using the named range in cell B14, enter a formula to determine the projected increase in revenue for the Musica Room based on the revenue figure in cell H6 and the increase in revenue percentage in cell B14.
Copy this formula through cell I10.
Calculate the expected income gain for the Musica Room following renovations by entering =[tex]H6*(1+B14)[/tex]in cell I6. To determine the increase in revenue for other rooms, paste this formula into cells I7 through I10.
How do you multiply cells in Excel using a formula?Use the asterisk () arithmetic operator to complete this job. For instance, if you enter =[tex]5*10[/tex] in a cell, the cell will show 50 as the outcome.
How do I multiply a number in many cells in Excel?When multiplying a set of cells, place a comma between the names of the two cells to specify that the entire range should be multiplied. For example, when "=PRODUCT(A2:A5)" is used, the cells A2, A3, A4, and A5 should be multiplied.
To know more about operator visit:-
https://brainly.com/question/29949119
#SPJ1
If you want to see multiple pages of your document which menu option would you choose to change the way the screen displays what you are seeing?
Question 2 options:
Layout
View
Review
Insert
First, select the Print Layout option from the View menu.
Next, choose Several Pages from the menu.When you select Multiple Pages, your document is shown on two pages simultaneously.What does the view menu serve?There is a drop-down menu at the top of the screen called the View menu, and it has the following commands: Sheets: Upon selection, a cascade menu shows a list of all the documents' sheets, arranged from left to right.The Functions View menu gives you access to a variety of options in the Camera view, including selecting and editing objects in various views, altering the display, and using a variety of other tools. Click the menu button in the upper-left corner of the Function view.There are several commands available, including web layout, print layout, outline, task pane, toolbars, ruler, header and footer, footnotes, full screen view.To learn more about View menu, refer to:
https://brainly.com/question/25469594
Word Processing Practice Test A
When inserting an image into a document, you can access the controls that let you scale the image's size in any direction by B. Click on the image.
The feature that would allow her to quickly and easily apply a set of formatting selections to her paper is D. Styles
How to explain the informationAfter you have inserted an image into your document, you can access the controls that let you scale the image's size in any direction by clicking on the image. This should select the image, and you will see a series of handles or anchor points appear around the image's perimeter.
You can then click and drag on these handles to resize the image in any direction. To maintain the image's aspect ratio while resizing, hold down the shift key while dragging one of the corner handles. Once you have resized the image to the desired size, you can release the mouse button to apply the changes. The exact steps to resize an image may vary depending on the software or application you are using.
Learn more about image on
https://brainly.com/question/15186403
#SPJ1
Complete questions
When inserting an image into a document, how do you access the controls that let you scale the image's size in any direction
Save the image.
Click on the image.
Select the text around the image.
Crop the image.
Kristin finished typing a five-paragraph research paper. She would like the paragraphs to look consistent throughout the document. Which feature would allow her to quickly and easily apply a set of formatting selections to her paper?
Character
Clip Art
Table
Styles