Answer:
Explanation:
The following code is writen in Python. It is a function called minPrice. It asks the user to input the list price of the vehicle and then multiplies that by 0.85 in order to get the dealer's cost. Then it adds 500 to that price and returns it to the user as the minimum price that the dealer would accept for the car.
def minPrice():
list_price = input("Please enter the list price of the car: ")
dealers_cost = int(list_price) * 0.85
min_accepted_price = dealers_cost + 500
print(min_accepted_price)
Who manages the team’s work during a sprint?
a) Scrum master manages the people so they can complete the work
b) The team manages the work by self organization
c) Product owner manages the work
d) Delivery manger manages the work
Answer:
d) delivery manger manages the work
Explanation:
sana po makatulong ako daghay salamat sayo emo
How can we display outputs of DIR one screenful at a time? There are at least two different ways, and either one is acceptable.
Answer:
DIR has a /p option to paginate any output.
dir /p
Will give you one screen length at a time.
I believe you can use that simultaneously with /w if you want to fit more file names on the screen, at the loss of additional data like file size, type, etc.
Type the correct answer in the box. Spell all words correctly.
John wants to use graphical elements on his web page. Which image formats should he use to keep the file size manageable?
John should use
formats to keep the file size manageable.
Answer:
JPEG or PNG but mostly JPEG
Explanation:
JPEG – JPEG is the best option for photographs and other images displaying a huge variety of colors. They can also be compressed, sacrificing quality for a reduction in file size.
PNG – PNGs win for graphics, drawings, text, and some screenshots. They also support transparency, unlike JPEGs. This format uses lossless compression, which results in higher quality but also bigger files.
The image formats should he use to keep the file size manageable is JPEG or PNG however commonly JPEG.
What is JPEG format?JPEG is the high-satisfactory choice for pics and different pix showing a massive sort of colors. They also can be compressed, sacrificing high-satisfactory for a discount in report size.
PNG PNGs win for graphics, drawings, text, and a few screenshots. They additionally help transparency, not like JPEGs. This layout makes use of lossless compression, which leads to better high-satisfactory but additionally larger files.
Read more about the image formats:
https://brainly.com/question/26733261
#SPJ2
.............................................is the vertical distance between successive lines of the text
Answer:
Line spacing is the vertical distance between successive lines of the text.
Explanation:
Hope this helps you. :)
Write a program whose input is a character and a string, and whose output indicates the number of times the character appears in the string. The output should include the input character and use the plural form, n's, if the number of times the characters appears is not exactly 1.You may assume that the string does not contain spaces and will always contain less than 50 characters.
Ex: If the input is:
n Monday
the output is:
1 n
Ex: If the input is:
z TodayisMonday
the output is:
0 z's
Ex: If the input is:
n It'ssunnytoday
the output is:
2 n's
Case matters.
Ex: If the input is:
n Nobody
the output is:
0 n's
n is different than N.
C programming.
Answer:
The program and input is different than n, and it’s sunny today.
It's important to understand that even information systems that do not use computers
have a software resource component. State the two (2) types of software resources
with an example for each type to support your answers.
Answer:
yes I am not sure if you have any questions or concerns please visit the plug-in settings to determine how attachments are handled the situation in the measurements of the season my dear friend I am not sure if you can send you a great day to day basis of
How does Kelvin inspire other
people?
He shows that it's easy to meet an
important leader of a country
He shows that anyone can succeed in
the music business.
He shows that studying engineering
leads to good jobs.
He shows that hard work and creative
thinking can solve problems.
Answer:
hard work and creative thinking can solve all problomes
Explanation:
Answer:
hard work
Explanation:
Your goal is to write a JAVA program that will ask the user for a long string and then a substring of that long string. The program then will report information on the long string and the substring. Finally it will prompt the user for a replacement string and show what the long string would be with the substring replaced by the replacement string. Each of the lines below can be produced by using one or more String methods - look to the String method slides on the course website to help you with this project.
A few sample transcripts of your code at work are below - remember that your code should end with a newline as in the textbook examples and should produce these transcripts exactly if given the same input. Portions in bold indicate where the user has input a value.
One run of your program might look like this:
Enter a long string: The quick brown fox jumped over the lazy dog
Enter a substring: jumped
Length of your string: 44
Length of your substring: 6
Starting position of your substring: 20
String before your substring: The quick brown fox
String after your substring: over the lazy dog
Enter a position between 0 and 43: 18
The character at position 18 is x
Enter a replacement string: leaped
Your new string is: The quick brown fox leaped over the lazy dog
Goodbye!
A second run with different user input might look like this:
Enter a long string: Friends, Romans, countrymen, lend me your ears
Enter a substring: try
Length of your string: 46
Length of your substring: 3
Starting position of your substring: 21
String before your substring: Friends, Romans, coun
String after your substring: men, lend me your ears
Enter a position between 0 and 45: 21
The character at position 21 is t
Enter a replacement string: catch
Your new string is: Friends, Romans, councatchmen, lend me your ears
Goodbye!
Answer:
In Java:
import java.util.*;
public class Main{
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
String longstring, substring;
System.out.print("Enter a long string: ");
longstring = input.nextLine();
System.out.print("Enter a substring: ");
substring = input.nextLine();
System.out.println("Length of your string: "+longstring.length());
System.out.println("Length of your substring: "+substring.length());
System.out.println("Starting position of your substring: "+longstring.indexOf(substring));
String before = longstring.substring(0, longstring.indexOf(substring));
System.out.println("String before your substring: "+before);
String after = longstring.substring(longstring.indexOf(substring) + substring.length());
System.out.println("String after your substring: "+after);
System.out.print("Enter a position between 0 and "+(longstring.length()-1)+": ");
int pos;
pos = input.nextInt();
System.out.println("The character at position "+pos+" is: "+longstring.charAt(pos));
System.out.print("Enter a replacement string: ");
String repl;
repl = input.nextLine();
System.out.println("Your new string is: "+longstring.replace(substring, repl));
System.out.println("Goodbye!");
}
}
Explanation:
Because of the length of the explanation; I've added the explanation as an attachment where I used comments to explain the lines
In this exercise we have to use the knowledge of the JAVA language to write the code, so we have to:
The code is in the attached photo.
So to make it easier the JAVA code can be found at:
import java.util.*;
public class Main{
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
String longstring, substring;
System.out.print("Enter a long string: ");
longstring = input.nextLine();
System.out.print("Enter a substring: ");
substring = input.nextLine();
System.out.println("Length of your string: "+longstring.length());
System.out.println("Length of your substring: "+substring.length());
System.out.println("Starting position of your substring: "+longstring.indexOf(substring));
String before = longstring.substring(0, longstring.indexOf(substring));
System.out.println("String before your substring: "+before);
String after = longstring.substring(longstring.indexOf(substring) + substring.length());
System.out.println("String after your substring: "+after);
System.out.print("Enter a position between 0 and "+(longstring.length()-1)+": ");
int pos;
pos = input.nextInt();
System.out.println("The character at position "+pos+" is: "+longstring.charAt(pos));
System.out.print("Enter a replacement string: ");
String repl;
repl = input.nextLine();
System.out.println("Your new string is: "+longstring.replace(substring, repl));
System.out.println("Goodbye!");
}
}
See more about JAVA at brainly.com/question/2266606?
Security attacks are classified as either passive or aggressive. True or false
Answer:
false is the answer okkkkkkkkkkkkkkkk
Where or what website can I download anime's? For free
https://todo-anime.com/
Write an algorithm to show whether a given number is even or odd.
Answer:
int num = Console.ReadInt("Please enter a number");
if(num%2 == 0) {
Console.WriteLine("Number is even");
} else {
Console.WriteLine("Number is odd");
Explanation:
Suppose that an intermixed sequence of push and pop operations are performed on a LIFO stack. The pushes push the numbers 0 through 9 in order; the pops print out the return value. For example"push(0); pop(); push(1)" and "push(0); push(1); pop()" are possible, but "push(1); push(0); pop()" is not possible, because 1 and 0 are out of order. Which of the following output sequence(s) could occur? Select all that are possible.
a) 12543 609 8 7 0
b) 01564 37928
c) 6543210789
d) 02416 75983
e) 46 8 75 32 901
Answer:
b) 01564 37928
e) 26 8 75 32 901
Explanation:
Pushes and pulls are the computer operations which enable the user to perform numerical tasks. The input commands are interpreted by the computer software and these tasks are converted into numeric values to generate output.
Help ASAP please This is a skills lab simulation for college, it’s on Microsoft word is there a keyboard shortcut or something on Ribbon tab to remove widow/orphan control option
Answer:
down right corner
Explanation:
next to the time
Declare and implement a function called gameOver.gameOver receives a single 3x3 char[] [] array as a parameter, representing a tic-tac-toe board, with each cell containing either a X, a 0, or a (blank space). gameOver should return x if x has won the game, o ifo has won the game, and a blank space (' ') otherwise. Do not check the diagonals!
Answer:
The function in C++ is as follows:
char gameOver(char arr[][3]){
char winner = ' ';
if((arr[0][0] == 'X' && arr[0][1] == 'X' && arr[0][2] == 'X') ||(arr[1][0] == 'X' && arr[1][1] == 'X' && arr[1][2] == 'X') || (arr[2][0] == 'X' && arr[2][1] == 'X' && arr[2][2] == 'X')||(arr[0][0] == 'X' && arr[1][0] == 'X' && arr[2][0] == 'X') ||(arr[0][1] == 'X' && arr[1][1] == 'X' && arr[2][1] == 'X') || (arr[0][2] == 'X' && arr[1][2] == 'X' && arr[2][2] == 'X')){
winner = 'X';
}
else if((arr[0][0] == 'O' && arr[0][1] == 'O' && arr[0][2] == 'O') ||(arr[1][0] == 'O' && arr[1][1] == 'O' && arr[1][2] == 'O') || (arr[2][0] == 'O' && arr[2][1] == 'O' && arr[2][2] == 'O')||(arr[0][0] == 'O' && arr[1][0] == 'O' && arr[2][0] == 'O') ||(arr[0][1] == 'O' && arr[1][1] == 'O' && arr[2][1] == 'O') || (arr[0][2] == 'O' && arr[1][2] == 'O' && arr[2][2] == 'O')){
winner = 'O';
}
return winner;
}
Explanation:
The function checks for the winning character by checking for matching rows and matching columns.
When either X or O fall in the any of the following 6 conditions , then that character (X or O) wins.
The position are:
Rows: (1) 00, 01 and 02 (2) 10, 11 and 12 (3) 20, 21 and 22
Columns: (4) 00, 10 and 20 (5) 01, 11 and 21 (6) 02, 12 and 22
So, the explanation is:
This defines the function gameOver
char gameOver(char arr[][3]){
This initializes winner to blank space
char winner = ' ';
If any of the condition stated above matches X, then X wins
if((arr[0][0] == 'X' && arr[0][1] == 'X' && arr[0][2] == 'X') ||(arr[1][0] == 'X' && arr[1][1] == 'X' && arr[1][2] == 'X') || (arr[2][0] == 'X' && arr[2][1] == 'X' && arr[2][2] == 'X')||(arr[0][0] == 'X' && arr[1][0] == 'X' && arr[2][0] == 'X') ||(arr[0][1] == 'X' && arr[1][1] == 'X' && arr[2][1] == 'X') || (arr[0][2] == 'X' && arr[1][2] == 'X' && arr[2][2] == 'X')){
winner = 'X';
}
If otherwise that it matches O, then O wins
else if((arr[0][0] == 'O' && arr[0][1] == 'O' && arr[0][2] == 'O') ||(arr[1][0] == 'O' && arr[1][1] == 'O' && arr[1][2] == 'O') || (arr[2][0] == 'O' && arr[2][1] == 'O' && arr[2][2] == 'O')||(arr[0][0] == 'O' && arr[1][0] == 'O' && arr[2][0] == 'O') ||(arr[0][1] == 'O' && arr[1][1] == 'O' && arr[2][1] == 'O') || (arr[0][2] == 'O' && arr[1][2] == 'O' && arr[2][2] == 'O')){
winner = 'O';
}
This returns the winner (either O, X or blank)
return winner;
See attachment for complete program which includes the main
Mad Libs are activities that have a person provide various words, which are then used to complete a short story in unexpected (and hopefully funny) ways.
Write a program that takes a string and integer as input, and outputs a sentence using those items as below. The program repeats until the input string is quit.
Ex: If the input is:
apples 5
shoes 2
quito 0
the output is
Eating 5 apples a day keeps the doctor away.
Eating 2 shoes a day keeps the doctor away.
Note: This is a lab from a previous chapter that now requires the use of a loop. LB 334 1 LAB Mad Lib-loops main.cpp Load default template.
1 #include
2 #include
3 using namespace std;
4
5 int main()
6
7 {
8 return;
9
10
Answer:
Following are the code to this question:
#include <iostream>//header file
#include <string>//header file
using namespace std;
int main() //main method
{
string item;//defining a string variable
int n;//defining integer variable
while(cin >>n >>item)//defining while loop to input value
{
if(item == "quito" && n == 0)//use if block to check input value
{
break;//use break keyword
}
cout << "Eating " << n << " " << item << " a day keeps the doctor away." << endl;//print input value with the message
}
return 0;
}
Output:
Please find the attached file.
Explanation:
In this code, inside the main method one string variable and one integer variable "item, n" is defined, that uses the while loop for input the value and uses the if block that checks string value is equal to "quito" and n value is equal to "0" it breaks the loop, and print the value with the message.
Why is sequencing important?
A. It allows the programmer to test the code.
B. It allows the user to understand the code.
C. It ensures the program works correctly.
D. It makes sure the code is easy to understand.
Answer:
c i think but if not go with d
Answer:
C
Explanation:
It ensures the program works correctly
hope it helps!
Every home or organization with Internet access has an ISP.
Question 29 options:
True
False
Consider the following method, inCommon, which takes two Integer ArrayList parameters. The method returns true if the same integer value appears in both lists at least one time, and false otherwise.
public static boolean inCommon(ArrayList a, ArrayList b)
{
for (int i = 0; i < a.size(); i++)
{
for (int j = 0; j < b.size(); j++) // Line 5
{
if (a.get(i).equals(b.get(j)))
{
return true;
}
}
}
return false;
}
Which of the following best explains the impact to the inCommon method when line 5 is replaced by for (int j = b.size() - 1; j > 0; j--) ?
a. The change has no impact on the behavior of the method.
b. After the change, the method will never check the first element in list b.
c. After the change, the method will never check the last element in list b.
d. After the change, the method will never check the first and the last elements in list b.
e. The change will cause the method to throw an IndexOutOfBounds exception.
Answer:
b. After the change, the method will never check the first element in list b.
Explanation:
After changing the code on line 5 with the one in the question the method will never check the first element in list b. This is because by changing the code you are telling the method to run for every element in list b starting from the last element and moving backward. Since the second argument is j > 0, once j is equal to 0 it will not run the method since it would give a False on the argument and therefore, will never run the method for the element in position 0 (first element in the list)
Is a NAS just a collection of hard drives or a computer
Answer:
NAS systems are networked appliances that contain one or more storage drives, often arranged into logical, redundant storage containers or RAID.
Type the correct answer in the box. Spell all words correctly.
Graphic designers can compress files in different formats. One of the formats ensures that the quality and details of the image are not lost when the graphic designer saves the file. Which file format is this?
The _______file format ensures that images don’t lose their quality and details when graphic designers save them.
Answer: TIFF
Explanation:
Tag Image File Format (TIFF) is the go to file format when one needs to store their image without worrying about it losing its quality and details. This is why TIFF images do not become smaller when compressed because they aim to save the quality of the work.
One has access to options such as tags and transparency on TIFF and it can be used on Photoshop as well as for things like desktop publishing and faxing.
Answer:
The lossless file format ensures that images don’t lose their quality and details when photographers save them.
Explanation:
Complete the sentence. Use a ___ ___ (2 words) to find a website's URL based on keywords you specify.
Answer: Search engine
Explanation:
If you need to find out the URL of a website that can help you with a particular service needed, you can use a search engine such as G-oogle or Duck-duckgo to find the relevant websites. You type in keyword/s and the search engine will look for websites associated with the word/s.
The links to be websites will be displayed and clicking on them will take you to the website.
Consider the following statements: Statement A: In Duplex transmission, either node can transmit while the other node can receive data Statement B: In half-duplex transmission, both the nodes can transmit as well as receive data at the same time. Which of the following is true with respect to the above statements?
a. Both statements A and B are false
b. Statement A is false and statement B is true
c. Both statements A and B are true
d. Statement A is true and statement B is false
Answer:
d. Statement A is true and Statement B is false
Explanation:
Indeed, when using duplex transmission either node can transmit while the other node can receive data from the network. Also, in half-duplex transmission, both the nodes can transmit as well as receive data.
However, in half-duplex transmission, the nodes cannot transmit and receive data at the same time. Hence, this makes Statement B false, while Statement A is true.
Your supervisor has asked you to make a presentation to a group of new interns about appropriate digital communication in the workplace. Which of these keywords should you research?
A netiquette
B project management
C emojis
Answer: Netiquette
Explanation:
The keywords that'll be researched is netiquette. Netiquette, is simply made up of the words "net"which and also “etiquette,” and it has to do with appropriate behavior that are used online when communicating with someone. These importance of such rules are to enhance communication skills.
Some of the rules include the use of respectful language, large files should not be emailed but rather compressed, people's privacy should be respected etc
Write a function longer_string() with two string input parameters that returns the string that has more characters in it. If the strings are the same size, return the string that occurs later according to the dictionary order. Use the function in a program that takes two string inputs, and outputs the string that is longer.
Answer:
Here you go :)
Explanation:
Change this to your liking:
def longer_string(s1, s2):
if len(s1) > len(s2):
return s1
elif len(s1) < len(s2):
return s2
else:
return s2
x = input("Enter string 1: ")
y = input("Enter string 2: ")
print(longer_string(x, y))
10. Select the correct answer.
Thomas has signed a deal with a production house that allows them to use his images on their website. What is required that permits the usage of images for commercial or editorial purposes?
A.
copyright
B.
licensing
C.
permit
D.
public domain
E.
fair use
3. What workplace hazards can be found on picture A?
4-5. Describe the workplace A and B, What are their differences
Answer:
HakdogExplanation:
kase hakdog ka kainin mo tite koNow, it’s time for you to begin coding your text-based adventure game!Starting at the top, convert each line of your pseudocode from your Coding Log into a line of Python code.Make sure to use the correct syntax and indentation. If you decide to challenge yourself and use functions, be sure to include the correct function calls.Your code should include at least two loops—one while loop and one for loop.Run and test your code in parts as you go. Follow the iterative process of coding and revising. It may be helpful to apply this process to each part of your game (Intro, Part 1, Part 2, and Part 3).Make the following improvements to your game:If the user types in a slightly different word than you expect, you don’t want your game to crash! Use lists to gain a better understanding of the input that users give. Refer back to Unit 1 for more information on lists. Here is an example:if choice in [“set a trap”, “set trap”, “trap”, “make a trap”, “make trap”]Your list won’t work if the user capitalizes any letter because the Interpreter won’t recognize a match between the same lowercase and uppercase letter. To convert the user input to all lowercase, use the lower function:if choice.lower() in [“set a trap”, “set trap”, “trap”, “make a trap”, “make trap”]Go through and make sure all of your inputs are converted to lowercase.Share the link to your Python code with your teacher in REPL.it by clicking on the share button and copying the link. Also, submit your pseudocode.
Answer:
When I finish I will send answer.
Explanation:
The coding exercise tests the ability to code using Python. It is important to note that all the indentation rules must be observed while running this code to prevent Indentation Error.
The code for the above exercise is given as follows:
def start():
# give some prompts.
print("\nYou are standing in a dark room.")
print("There is a door to your left and right, which one do you take? (l or r)")
# convert the player's input() to lower_case
answer = input(">").lower()
if "l" in answer:
# if player typed "left" or "l" lead him to bear_room()
bear_room()
elif "r" in answer:
# else if player typed "right" or "r" lead him to monster_room()
monster_room()
else:
# else call game_over() function with the "reason" argument
game_over("Don't you know how to type something properly?")
# start the game
start()
Learn more about python at:
https://brainly.com/question/26497128
#SPJ2
Define the meaning of software quality and detail the factors which affects the quality not productivity of a software product?
Answer:
Quality of software may be defined as the need of function and Efficiency. ... A number of factors are given below which gives the effects on quality and production capacity.
Software quality is known to be the method that tells the desirable characteristics of software products.
What are the Software Quality Factors that affects it?The factors that influence software are;
CorrectnessReliabilityEfficiencyUsability, etc.Therefore, Software quality is known to be the method that tells the desirable characteristics of software products.
Learn more about software quality from
https://brainly.com/question/13262395
#SPJ2
help me in computer
no spam i will report wrong answer
Retype each statement to follow the good practice of a single space around operators.
a. tot = num1+num2+2;
b. numBalls=numBalls+1;
c. numEntries = (userVal+1)*2;
Answer:
a. tot = num1 + num2 + 2;
b. numBalls = numBalls + 1;
c. numEntries = (userVal + 1) * 2;
Explanation:
Given
(a), (b) and (c)
Require:
Rewrite
There isn't much to do or explain; All you need to do is include single space between the operands and opcodes
So:
tot = num1+num2+2; becomes tot = num1 + num2 + 2;
numBalls=numBalls+1; becomes numBalls = numBalls + 1;
numEntries = (userVal+1)*2; becomes numEntries = (userVal + 1) * 2;
The difference in both statements is the inclusion of single line spacing.