Write a program that asks a user to enter a date in month day year format (for example 10 12 2016) and displays the day of the week for that date, in this case, Wednesday.
Answer and Explanation:
Using javascript:
function dayof_theweek(){
var TodayDate = window. prompt("enter today's date in the format 'year, month, day' ");
var Datenow=new date(TodayDate);
var Dayofweek=Datenow.getday();
var Days=["monday","Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"];
if(Dayofweek==indexOf(Days[Dayofweek]))
{
document.createTextnode(Days[Dayofweek]);
}
}
The program above uses a date object which uses the method getday to get the day of the week(get day returns an integer from 0 to 6).we then use a comparison operator == to test the condition that returned value Dayoftheweek is same with the index of the array Days and then print to a html document. The program may need improvements such as the fact that errors may arise when proper input isn't given, and therefore must be handled.
Which application-testing technique is the most likely to uncover improper input handling?
Answer:
Fuzzing provides a large amount of input data, even invalid data, to an application in order to observe its behavior. the idea is to ensure that the application is stable and secure with its input and error handling.
Explanation:
What is a required device(s) used to connect to an ISP Network?
a. Switch
b. Mouse
c. Modem
d. Hub
e. B and C
Answer:e
Explanation:e
what is profit maximization in Monopolistic competition market
Answer:
In a monopolistic market, a firm maximizes its total profit by equating marginal cost to marginal revenue and solving for the price of one product and the quantity it must produce. The monopolist's profit is found by subtracting total cost from its total revenue. In terms of calculus, the profit is maximized by taking the derivative of this function
A Soundex code is a four-character string in the form of an initial letter followed by three digits.
a. True
b. False
Answer:
a. True
Explanation:
A Soundex code is an algorithm used in compiling English names. It allows words that sound alike to be grouped in the same category. It begins with the first letter of the word followed by three digits. Census boards like the United States Census Bureau have used the Soundex code to find names with similar sounds.
The Soundex code was created by Robert C. Pittsburgh and this hashing system only works with the 26 English letters.
Read integers from input and store each integer into a vector until 0 is read. Do not store 0 into the vector. Then, output the values in the vector that are not equal to the last value in the vector, each on a new line.
Ex: If the input is -90 -10 22 -10 0, the output is:
-90
22
#include
#include
using namespace std;
int main() {
/* Your code goes here */
return 0;
}
Answer:
The program is as follows:
#include<iostream>
#include<vector>
using namespace std;
int main() {
vector<int> myInputs;
int num;
cin>>num;
while(num !=0){
myInputs.push_back(num);
cin>>num;}
for (int i = 0; i < myInputs.size(); i++){
if(myInputs[myInputs.size()-1]!=myInputs[i]){
cout << myInputs[i] << " "; }
}
return 0;
}
Explanation:
Declare integer vector of elements
vector<int> myInputs;
Declare num for integer inputs
int num;
Get input for num
cin>>num;
This loop is repeated until input is 0
while(num !=0){
Push the input to the vector
myInputs.push_back(num);
Get another input
cin>>num;}
Iterate through the vector elements
for (int i = 0; i < myInputs.size(); i++){
For vector elements not equal to the last element
if(myInputs[myInputs.size()-1]!=myInputs[i]){
The element is printed
cout << myInputs[i] << " "; }
}
A small e-commerce company uses a series of Robotic Process Automation solutions to manage the backup of data from individual workstations to an on-premise server. However, the company is opening another office and would like to more easily share data between locations, along with better protecting the data from loss.
Which technology could be combined with their current automated processes to do this?
Answer:
Cloud.
Explanation:
Cloud computing can be defined as a form of data computing which requires the use of shared computing resources such as cloud storage (data storage), servers, computer power, and software over the internet rather than local servers and hard drives.
Generally, cloud computing offer individuals and businesses a fast, secured, effective and efficient way of providing services over the internet.
Basically, cloud computing comprises three (3) service models and these include;
1. Platform as a Service (PaaS).
2. Software as a Service (SaaS).
3. Infrastructure as a Service (IaaS).
Additionally, the two (2) main characteristics of cloud computing are;
I. Measured service: it allows cloud service providers to monitor and measure the level of service used by various clients with respect to subscriptions.
II. Resource pooling: this allows cloud service providers to serve multiple customers or clients with services that are scalable and provisional.
For example, the provisioning of On-demand computing resources such as storage, network, virtual machines (VMs), etc., so as to enable the end users install various software applications, database and servers.
Hence, the technology that could be combined by the small e-commerce company with its current automated processes is cloud storage.
There are different tools used in data sharing. The technology that could be combined with their current automated processes to do this is blockchain.
Blockchain is known to use different kinds of distributed ledger that is often shared across networked devices. Through this, people on the network can share files and values securely and even on a peer-to-peer basis. This is no need any middlemen.
Data protected in blockchain is very vital. All records on a blockchain are known too be secured through the act of cryptography. Here, Network people do have their own private keys that are given to them for any transactions they make.
Learn more about Blockchain from
https://brainly.com/question/25700270
What notation requires parentheses in order to correctly define the order of computation? Group of answer choices prefix notation infix notation postfix notation all of the above
Answer:
The correct answer is Option B (infix notation).
Explanation:
The conventional format of logical as well as mathematical formulas where operators write the precise manner of infix amongst variables or the inputs is considered as Infix notation.Computer systems cannot easily be scanned like prefix and post-fix kind of notation, nevertheless owing to its convenience it has been used throughout numerous computer programs.All other given options aren't related to the given scenario. So the above is the correct one.
In the revised version of the library system with Book and Periodical, Question 16 options: a) Book is a subclass of Periodical b) Periodical is a subclass of Book c) Book and Periodical are subclasses of LoanableItem d) Book and Periodical implement LoanableItem
Answer:
c. Book and Periodical are subclasses of LoanableItem
Explanation:
Books are kept in library in a periodical manner. Both classes are not superior, they are subclasses of LoanableItem. Library uses common guide which makes it easy to find a book.
A company wants to provide wireless access for guests with their Aruba solution. Which configuration feature requires the customer to purchase PEFNG licenses
Answer: addition of custom rules to control access for authenticated guests.
Explanation:
PEFNG license helps in the provision of identity-based security for both the wired and the wireless users.
Since the company wants to provide wireless access for guests with their Aruba solution, the configuration feature that requires the customer to purchase PEFNG licenses is the addition of custom rules to control access for authenticated guests.
Implementing HTML best practices and writing code to match the original intentions of each element is known as __________ HTML. standard attribute-based industry semantic
Answer:
semantic
Explanation:
The description provided is describing the practice known as semantic HTML. This is basically code that provides both the user and the developer a description on what the code was originally supposed to do. For example, a method that calculates the total cost of a set of prices could be called calculateTotal(). By doing so you are describing the intention of the method clearly so that the individual using the method does not need to look at anything else to know what it does.
Implementing HTML best practices and writing code to match the original intentions of each element is known as __________ HTML.
SemanticBased on the knowledge of semantics HTML which is a programming language used to write codes for the building blocks of any website, it gives the user and programmer the details of what the code is supposed to perform.
Furthermore, this helps them to match the original intentions of the code which helps in understanding of the code which also helps with debugging.
Therefore, the correct answer is semantic
Read more about HTML practises here:
https://brainly.com/question/19117781
In cell K8, create a formula using the SUM function that calculates the total of the range D17:D20 and subtracts it from the value in cell J8.
Answer:
so like what are you asking for so i can help u just tell me what u need and i will help u :)
Explanation:
The Burger Doodle restaurant chain purchases ingredients from four different food suppliers. The
company wants to construct a new central distribution center to process and package the ingredients it uses in its menu items before shipping them to their various restaurants. The suppliers
transport the food items in 40-foot tractor-trailer trucks. The coordinates of the four suppliers and the annual number of truckloads that will be transported to the distribution center are as follows:
Coordinates
Supplier x y Annual Truckloads
A 200 200 65
B 100 500 120
C 250 600 90
D 500 300 75
Determine the set of coordinates for the new distribution center that will minimize the total miles traveled from the suppliers
Answer :
Given Information:
Site 1: x1 = 360 , y1 = 180
Site 2: x2 = 420 , y2 = 450
Site 3: x3 = 250 , y3 = 400
Solution:
Xa = 200, Ya = 200, Wa = 75
Xb = 100, Yb = 500, Wb = 105
Xc = 250, Yc = 600, Wc = 135
Xd = 500, Yd = 300, Wd = 60
If centre of gravity is (x,y)
then x = (200*75+100*105+250*135+500*60)/(75+105+135+60)
x = 238
then y = (200*75+500*105+600*135+300*60)/(75+105+135+60)
y = 444
Using centre-of-gravity method, location of distribution centre = (238,444) Using rectilinear distance,
Load distance score of Site 1: 75*(abs(360-200)+abs(180-200))+105*(abs(360-100)+abs(180-500))+135*(abs(360-250)+abs(180-600))+60*(abs(360-500)+abs(180-300)) = 161550
Load distance score of Site 2: 75*(abs(420-200)+abs(450-200))+105*(abs(420-100)+abs(450-500))+135*(abs(420-250)+abs(450-600))+60*(abs(420-500)+abs(450-300)) = 131100
Load distance score of Site 3: 75*(abs(250-200)+abs(400-200))+105*(abs(250-100)+abs(400-500))+135*(abs(250-250)+abs(400-600))+60*(abs(250-500)+abs(400-300)) = 93000
Site 3 tends to be optimal as it offers a lower distance ranking.
I HOPE THIS IS RIGHT AND IT HELPS !!!!!
The coordinates of the new distribution center that will minimize the total miles traveled from the suppliers are (178.171, 483.181).
What does this location do?This location minimizes the total distance traveled by 68,171.951 miles. The suppliers will travel the following distances to the new distribution center:
Supplier A: 284.021 milesSupplier B: 79.959 milesSupplier C: 137.136 milesSupplier D: 370.310 milesThe coordinates were determined using a linear programming model that minimizes the total distance traveled by the suppliers. The model takes into account the coordinates of the suppliers and the annual number of truckloads that will be transported to the distribution center.
Read more about coordinates here:
https://brainly.com/question/31293074
#SPJ2
Daniella is configuring a Wi-Fi network in a restaurant for access by staff and customers. How far does WiFi, the broadband wireless technology that allows computers and other devices to communicate over a wireless signal typically travel indoors in the form of radio waves?
a. 1000 feet
b. 300 feet
c. 120 feet
d. 500 feet
Answer:
c. 120 feet
Explanation:
WiFi can be defined as a wireless local area network that allows network devices such as access points (APs), computers (both laptops and desktops), smartphones, smart televisions, etc., to communicate with each other wirelessly over a short-ranged network. It is a standard communication network that uses radio waves to establish a channel (medium) between multiple network devices.
This ultimately implies that, the network range or distance covered by WiFi is largely dependent on transmission power and frequency. The standard range or distance covered by WiFi is about 50 meters (160 feet).
Hence, a WiFi traveling indoors in the form of radio waves and operating on the 2.4 GHz band would cover up to a distance of 150 feet. Also, a WiFi can reach or travel up to 300 feet outdoors.
In this scenario, the WiFi network Daniella is configuring in a restaurant for access by staff and customers can go as far as 120 feet indoors.
15) Three primary activities of a program are: A) Variables, Operators, and Key Words B) Lines, Statements, and Punctuation C) Input, Processing, and Output D) Integer, Floating-point and Character E) None of the above
Answer:
yes sir
Explanation:
What should businesses do in order to remain competitive under the current Cloud
landscape?
Answer:
Cloud Landscape
They must evangelize the benefits of cloud computing to company executives in order to assist them in developing and extracting business benefits that will give them a competitive advantage and increase profits
Explanation:
The most successful organisations carefully plan out a multiyear effort to improve their cloud adoption, focusing on multiple streams of work across several stages of maturity.
Cloud computing governance is difficult even when only one cloud provider is involved, and it becomes even more difficult as organisations move toward multi cloud.
Continuous workload placement analysis involves reassessing workloads at a regular cadence, evaluating whether the current execution venue sufficiently meets the organization’s needs and if migrating to an alternative model provides higher value without adding significant risk to the organization’s operations
They must evangelize the benefits of cloud computing to company executives in order to assist them in developing and extracting business benefits that will give them a competitive advantage and increase profits.
In this question, the response is "Cloud Landscape" which can be defined as follows:
The organizations should adopt these new technologies to benefit from the digital transformation offered by the cloud.New enterprises were embracing cloud computing management strategies, placing established companies at risk.In the multi-year efforts for improving cloud security were meticulously planned by even the most successful enterprises. In several contributing to higher at various maturity levels are addressed.The multi-cloud plan enables governance of cloud computing increasingly challenging, even and there is only one cloud service provider involved in the agreement.Learn more:
cloud computing: brainly.com/question/16026308
Write a C++ program that takes a single character and prints the corresponding digit on the old-style dial or touchtone telephone keypad, if it exists, or a message stating that the character does not correspond to a digit on the keypad.
Which phrase best complete the diagram
Globalization —-> ?
Answer:
1. Natural resources move from poor to rich countries
2. increases awareness of events in faraway parts of the world.
Answer:
More unequal distribution of natural resources
Explanation:
A P E X
Write a program that asks the user for the name of their dog, and then generates a fake DNA background report on the pet dog. It should assign a random percentage to 5 dog breeds (that should add up to 100%!)
Answer:
Code:
import java.util.*;
public class Main{
public static void main(String []args){
Scanner sc = new Scanner(System.in);
System.out.println("What is your dog's name?");
// Entering name of dog
String name = sc.nextLine();
System.out.println("Well then, I have this highly reliable report on " + name + "'s prestigious background right here.");
System.out.println("\n\nSir " + name + " is\n\n");
//Generating random numbers
Random ran = new Random();
int sum = 0;
int a = 0;
int b = 0;
int c = 0;
int d = 0;
int e = 0;
while(sum != 100)
{
a = ran.nextInt(100);
b = ran.nextInt(100-a);
c = ran.nextInt(100-b);
d = ran.nextInt(100-c);
e = ran.nextInt(100-d);
sum = a + b+ c + d + e;
}
System.out.println(a + "% St. Bernard");
System.out.println(b + "% Chihuahua");
System.out.println(c + "% Dramatic RedNosed Asian Pug");
System.out.println(d + "% Common Cur");
System.out.println(e + "% King Doberman");
System.out.println("\n\nWow, that's QUITE the dog!");
}
}
what is minimum range and pulse recurrence frequency
Answer:
0.36 nautical mile. With a 1.57 µS pulse (as in the WSR-88D short-pulse mode) the minimum range would be about 235 meters
Explanation:
i thin this is it
how do you get The special ending in final fight 2 for super nintendo
it is really interesting on.....................
Select the correct answer.
Allan is manager of the software. His team has compiled various design documents prior to starting the development of the software. Allan wishes to have a design review, what advantage will a design review have?
A.
The design team learns how to present designs.
B.
The design can be altered.
C.
The design process can be changed.
D.
The design can be verified as per the client requirements.
Physical Media include ....
(a) LAN, MAN, WAN
(b) Star, Ring, Bus
(d) Twisted Pair, Coaxial, Fibre Optic Cable
(c) Bluetooth, Infrared, Microware
Answer:
I don't know sorry bro for this
Wanda manages an application that fluctuates in usage quite a bit. Sometimes it uses quite a few servers with lots of memory and CPU while other times it only uses a couple of servers with minimal CPU and memory allocated to them. She doesn't have to manually make changes as the system has the ability to increase or decrease those resources on its own. Which of the following terms describes that capability?
a. Reliability
b. Scalability
c. Elasticity
d. Availability
Answer:
c. Elasticity
Explanation:
When referring to Cloud Servers this capability is known as Elasticity. It basically describes how able and efficient a server is to automatically implement resources and remove resources in order meet the specific amount of demand at any given moment. Many times a server will not have much demand but will still have all the resources being used by the server. Being able to remove these unused resources so that they are available for other usage is what makes the servers elastic.
Write a method rearrange that takes a queue of integers as a parameter and rearranges the order of the values so that all of the even values appear before the odd values and that otherwise preserves the original order of the list. For example, suppose a queue called q stores this sequence of values: front [3, 5, 4, 17, 6, 83, 1, 84, 16, 37] back Then the call of rearrange(q); should rearrange the queue to store the following sequence of values: front [4, 6, 84, 16, 3, 5, 17, 83, 1, 37] back Notice that all of the evens appear at the front of the queue followed by the odds and that the order of the evens is the same as in the original list and the order of the odds is the same as in the original list. You may use one stack as auxiliary storage.
Answer:
i got the answer
Explanation:
hope you can too
When a Select Case statement executes, the value of the test expression is compared with the values that follow each of the _______ keywords.
Answer:
Case
Explanation:
In Computer programming, a variable can be defined as a placeholder or container for holding a piece of information that can be modified or edited.
Basically, variable stores information which is passed from the location of the method call directly to the method that is called by the program.
For example, they can serve as a model for a function; when used as an input, such as for passing a value to a function and when used as an output, such as for retrieving a value from the same function. Therefore, when you create variables in a function, you can can set the values for their parameters.
A Select Case statement can be defined as a conditional statement that avails software developers or programmers the ability to test a variable by comparing it with a list of values.
In a Select Case statement, each variable is referred to as a Case.
Generally, when a Select Case statement executes, the value of the test expression is compared with the values that follow each of the Case keywords.
To use AutoSum with a row of four values, where must your cursor be to have the sum appear in the row if you have not highlighted the cells?
Answer:
on the first empty cell to the right of the last cell containing a value.
Explanation:
The AutoSum function in excel gives a shortcut path to taking the sum of numeric values in a row or column of data. The Autosum uses the sum function to take the addition of all the desired rows or columns values without needing to make a manual highlight of the data. To use AutoSum with a row of 4 values, the cursor must be placed immediately at the cell next 4th row cell containing a value. This is equivalent to the first empty cell to the right of the last cell containing a value, then autosum is clicked in the home tab and all 4 cells will be highlighted as it uses the sum function to calculate the sun of the 4 row values.
The Autosum Excel function could be made accessible with ALT+ the = sign, and the formula is automatically created to add a continuous range of all numbers.
The AutoSum function in Excel provides a shortcut to the sum of numerical values in a data line or column. To add all the desired lines or column values the Autosum uses the total function without having to make a manual highlight. The cursor must immediately be placed in the fourth cell next row containing a value to use AutoSum with a round of 4 values. The first empty cell to the right of the latter cell with a value is equal to that of the auto-sum, then the domestic tab clicks on auto-sum, and the sum function is used to calculate the sun of the four-row values to highlight all 4 cells.Therefore, the final answer is "on the first empty cell to the right side of the last cell with value".
Learn more:
brainly.com/question/11507998
Define a function named LargestNumber that takes three integers as parameters and returns the largest integer. Define a second function named SmallestNumber that takes three integers as parameters and returns the smallest integer. Then, write a main program that reads three integers as inputs, calls functions LargestNumber() and SmallestNumber() with the inputs as arguments, and outputs the largest and the smallest of the three input values. CORAL
Answer:
Explanation:
The following code is written in Java and creates both of the requested methods. The methods compare the three inputs and goes saving the largest and smallest values in a separate variable which is returned at the end of the method. The main method asks the user for three inputs and calls both the LargestNumber and SmallestNumber methods. The output can be seen in the attached image below.
import java.util.Scanner;
class Brainly {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
System.out.println("Enter number 1: ");
int num1 = in.nextInt();
System.out.println("Enter number 2: ");
int num2 = in.nextInt();
System.out.println("Enter number 3: ");
int num3 = in.nextInt();
System.out.println("Largest Value: " + LargestNumber(num1, num2, num3));
System.out.println("Smallest Value: " + SmallestNumber(num1, num2, num3));
}
public static int LargestNumber(int num1, int num2, int num3) {
int max = num1;
if (num2 > num1) {
max = num2;
}
if (num3 > max) {
max = num3;
}
return max;
}
public static int SmallestNumber(int num1, int num2, int num3) {
int smallest = num1;
if (num2 < num1) {
smallest = num2;
}
if (num3 < smallest) {
smallest = num3;
}
return smallest;
}
}
The algorithm consists in a main routine that calls two functions based on if-cycles to determine the minimum and the maximum of a set of three integers, whose construction can revised below.
In this question we must define a main algorithm in which three integers are introduced and functions LargestNumber() and SmallestNumber() are called and outputs are printed:
INPUTS
Integers num1, num2, num3;
OUTPUTS
Integers min, max;
MAIN ALGORITHM
Print "Write the first integer";
Write num1;
Print "Write the second integer";
Write num2;
Print "Write the third integer";
Write num3;
min = SmallestNumber(num1, num2, num3);
max = LargestNumber(num1, num2, num3);
Print "The smallest of the three input values is " min;
Print "The largest of the three input values is " max;
FUNCTION SmallestNumber()
if (((num1 <= num2) and (num2 <= num3)) or ((num1 <= num3) and (num3 <= num2))) then:
min = num1;
else if (((num2 <= num1) and (num1 <= num3)) or ((num2 <= num3) and (num3 <= num1))) then:
min = num2;
else:
min = num3;
return min;
FUNCTION LargestNumber()
if (((num1 >= num2) and (num2 >= num3)) or ((num1 >= num3) and (num3 >= num2))) then:
max = num1;
else if (((num2 >= num1) and (num1 >= num3)) or ((num2 >= num3) and (num3 >= num1))) then:
max = num2;
else:
max = num3;
return max;
To learn more on algorithms, we kindly invite to check this verified question: https://brainly.com/question/22952967
Fictional Corp makes use of ITIL processes and lifecycle management strategies to ensure that they have a good handle on the various stages of creating new applications and retiring them once they are no longer useful. Jason has been tasked with creating a new application to be deployed onto the company's private cloud. Which of the following is the first stage of the process?
a. Deployment
b. Design and development
c. Migration
d. Upgrade
Answer: Design and development
Explanation:
Since Jason has been tasked with creating a new application to be deployed onto the company's private cloud, the first stage of the process is the design and development.
The design and development stage involves gathering of business functions as well as analysing requirements before the application is deployed to the private cloud.
They have outlined their technical needs and have sent some of the documentation along with the potential provider's SLAs and terms of service to the legal department to review. Which of the following might be a concern expressed by the legal department after reviewing these documents?
a. Ensuring data is hosted in the appropriate regions for the cloud service provider
b. Ensuring that the corporation has a way to measure uptime to ensure SLAs are actually met *J#
c. Ensuring that there is a guarantee that the cloud service provider will provide notice in the event that they decide to discontinue operations
d. Ensuring that the cloud service provider will allow an audit of their network for security purposes
Answer:
A concern that might be expressed by the legal department after reviewing the SLAs and terms of service is:
c. Ensuring that there is a guarantee that the cloud service provider will provide notice in the event that they decide to discontinue operations.
Explanation:
The SLA that the legal department will review should include a description of the services to be provided, expected service levels, measurement metrics for each service, each party's duties and responsibilities, and the contract remedies or penalties for breach, among others. But the legal department will be mostly concerned with legal remedies during breaches, liability limitation and warranties, and intellectual property protection issues than with more technical issues. This is despite the fact that all the terms of the SLA will be diligently reviewed by the legal department.