Based on the complete question, the following information is provided:
SELECT product _ name, SUM ( ( item _ price - discount _ amount ) * quantity ) AS Total _ quanity _ purchased
FROM products p
JOIN order _ items ori ON p.product _ id = ori . product _ id \
GROUP BY product _ name WITH ROLLUP
The SELECT statementSELECT
if( c . category _ name is null, 'All Categories', c.category_name) Category,
if( p . product _ name is null, 'All Products', p.product_name ) Product,
SUM( ori . quantity ) as Total _ Qty _ Purchased,
SUM(( ori.item _ price - ori.discount _ amount) * ori.quantity)
AS Total _ Purchase _ Sales
FROM
products p
JOIN Category c
on p.category _ id = c.category _ id
JOIN order _ items ori
on p.product_id = ori.product_id
GROUP BY
c.category _ name ,
p.product _ name ,
WITH ROLLUP
Read more about SQL here:
https://brainly.com/question/25694408
#SPJ1
4. Many people follow their favorite news sites through social media. This lets them get
stories they are interested in delivered directly to them and also benefits these
organizations since their stories get to the readers. What disadvantage might this have for
these news sites?
lot of replies many of them hostile
Teens who use social media may be subjected to peer pressure, cyber harassment, and increased mental health risk.
What is social media?Social media refers to the means by which people interact in virtual communities and networks to create, share, and/or exchange information and ideas.
It is a useful tool for communicating with others both locally and globally, as well as for sharing, creating, and disseminating information.
Through reviews, marketing tactics, and advertising, social media can influence consumer purchasing decisions.
Multiple studies have found a strong link between excessive social media use and an increased risk of depression, anxiety, loneliness, self-harm, and self-arm ideation.
Negative experiences such as inadequacy about your life or appearance may be promoted by social media.
Thus, these can be the disadvantage to use sites like news as it may be fake sometimes.
For more details regarding social media, visit:
https://brainly.com/question/24687421
#SPJ1
Need help with this coding question. It must be done in python and must use a while loop structure.
Answer:
I'm generally puzzled
Explanation:
can help me biii and d? also help me check my answer is correct or not if wrong please help me correct it thanks
Answer:
b(ii) prices[1]= 20.50; // do not declare with double again
b (iii) scanf("%lf", &prices[4]); //prices[4] is last element
d) See below
Explanation:
/* This program uses the string.h header file
The strncat() function in this file concatenates two strings. It takes three arguments, dest and source strings and number of characters to concatenate
*/
#include <stdio.h>
#include <string.h>
int main() {
char s1[10] = "Happy";
char s2[10] = " Birthday";
char s3[10]="";
strncat(s3, s1, 5); //concatenate 5 characters of s1 to end of s3 and
//store result in s3; s = "Happy"
strncat(s3, s2, 10); //concatenate s2 with current contents of s3
//s3 becomes "Happy Birthday
printf("%s", s3);
return 0;
}
three reason about family to make the most sense for my reader?
Answer:
Love
Comfortable
Trust
Explanation:
Three reasons why you should always be with your family is that most times they love you, and you love them. Being with them all of the time makes you more comfortable around them, being through their best and their worst. Lastly being with them so much, you get to know them, and with knowledge comes trust of knowledge. You already most times have trust with your family.
I need this fast pls
How many clock ticks would a computer with one million hertz have?
a - 1,000,000 per minute
b - 1,000,000 per second
c - 1,000,000 per hour
d - 1,000,000 per hour
Answer: Its B. 1,000,000 per second
Explanation: One hertz is one tick per second. A computer with a one million hertz processer would have 1,000,000 ticks per second.
Choose the term that makes the sentence true.
is the most popular desktop operating system.
Microsoft's Windows is the most popular desktop operating system and as such is the true statement.
Check more about Microsoft windows below.
What is the most popular PC operating system?Windows from Microsoft is seen as the Computer operating systems' global market share from 2012 through 2022, broken down by month.
Note that the desktop, tablet, as well as console OS markets are all dominated by Microsoft's Windows, which has a 70.68 percent market share worldwide.
Therefore, The most widely used desktop and laptop operating system is Windows 10. The most widely used PC operating system is Windows. An operating system is a piece of software that runs on a computer and controls how software programs and computer resources are used.
Learn more about Microsoft's Windows from
https://brainly.com/question/28132832
#SPJ1
In what setting should a bidirectional microphone be used and why?
Bidirectional microphones have a very constricted pickup angle, making them useful for separating a single voice or mechanism in the presence of other sound sources, as lengthy as nothing is directly behind the mic. They are useful for picking up two sources that are next to each other.
What is bidirectional microphone?The pressure gradient principle underpins this type of microphone. The sound can travel through the membrane on both sides.
When the sound on the front and backside of the diaphragm differs, the microphone sends a signal.
Bidirectional microphones have a particularly narrow pickup angle, which makes them advantageous for distinguishing a single voice or framework in the involvement of other sound sources, as long as nothing is directly behind the mic.
They are useful for detecting two sources that are close together.
Thus, in this setting a bidirectional microphone can be used.
For more details regarding bidirectional microphone, visit:
https://brainly.com/question/14360530
#SPJ1
PLEASE HELP!! QUICKLY! WILL GIVE BRAINLIEST!
Describe at least three important considerations when upgrading to new software in complete sentences.
Answer:
Storage
How it changes the layout
How it differs from the previous software
Explanation:
Storage is one of the most important things to think about because, if you do not have enough storage then the update only hurts you. Then plus you cannot even get the update in most cases. How it changes the layout and how it changes the computers is important because it can be what makes a person hate the newest software or not. If the layout changes to something you do not agree with, then it can leave a person all mixed up. Lastly how it differs is important because, how it differs from the previous can be the reason why or why not you even need the update. The differences could be good or bad. But whenever updating software always look at the terms and conditions, what it changes, and what it takes to update the software.
which cyber protection condition establishes a protection priority focus
INFOCON 1 is the prerequisite for cyber defence that creates a protection priority focus on just crucial and essential functions.
What is INFOCON 1?Information operations condition, or INFOCON 1, is a circumstance where an information system has been successfully attacked and the effects on Department of Defense missions are clear, yet the computer network's defence system is on high alert.
INFOCON 1 basically assures that a computer network security system is as aware or ready as possible to deal with intrusion approaches that cannot be detected or countered at a lower readiness level.
In conclusion, INFOCON 1 is a need for cyber protection that places a priority on protecting only vital and necessary functions.
Thus, INFOCON 1 is the prerequisite for cyber defence.
For more information about INFOCON 1, click here:
https://brainly.com/question/25157787
#SPJ12
What formula is used to determine a company's customer retention rate?
1. (The number of new customers during the period + the number of customers at the end of that
period)/ the number of customers at the start of the period x 100
2 . (The number of new customers during the period - the number of customers at the end of that
period)/ the number of customers at the start of the period / 100
3. (The number of customers at the end of the period - the number of new customers acquired
during the period)/ the number of customers at the start of the period x 100
4. (The number of new customers during the period - the number of customers at the end of that
period) x the number of customers at the start of the period x 100
The formula which is used to determine a company's customer retention rate is: 3. (The number of customers at the end of the period - the number of new customers acquired during the period)/ the number of customers at the start of the period x 100.
What is customer retention rate?Customer retention rate can be defined as a measure of the number of customers that a business organization (company or firm) is able to successfully retain over a particular period of time and it is typically expressed as a percentage.
Mathematically, the customer retention rate of a business organization (company or firm) can be calculated by using this formula:
CRR = [(CE - CN)/CS] × 100
Where:
CRR represents customer retention rate of a company.CE represents the number of customers at the end of the period.CN represents the number of new customers acquired during the period.CS represents the number of customers at the start of the period.In conclusion, we can reasonably infer and logically deduce that the customer retention rate of a company simply refers to the percentage of existing customers that a business organization (company or firm) is able to retain after a given period of time.
Read more on customer retention rate here: https://brainly.com/question/26675157
#SPJ1
(while-loop). Generate a random integer from 1 to 100. Prompt the user to guess the number. Display "Too high" or "Too low", depending on the guess. When the user guesses the right number, display "You got it!". You must keep track of the number of times the user takes to guess the number and report it when the number is correct.
Hints: To generate the random number, use the one below:
import random as rd
answer = rd.randrange(1,101)
TEST CASES: Suppose the number to guess is 40.
Enter guess: 1-100: 50
Too high!
Enter guess: 1-100: 25
Too low!
Enter guess: 1-100: 35
Too low!
Enter guess: 1-100: 40
You got it!
You took 4 tries to guess the number.
Investment Problem: Multiplier Accumulator
Prompt the user to enter the initial investment amount, the annual interest, and the number of years for the investment.
Compute the balance that will be achieved at the end of each of the requested years. Round the balance to 2 decimal places.
Algorithm Hints:
Use a for-loop and range function to generate the year (1, 2, 3,…). The number of iterations is the number of years.
Using the formula (see below), compute the investment balance at the end of each year. Note that I know you could always use Python's exponentiation operator (**) to calculate the final result. But I want you to use iteration (looping) to find the answer! Hint: this is an example of an accumulator that uses multiplication.
For example, if you have $1 and get 4% interest, the amount at the end of the first five years would be:
FV = FV*(1 + APR)**year = 1 * (1 + 0.04) ** 1
FV = FV*(1 + APR)**year = 1 * (1 + 0.04) ** 2
FV = FV*(1 + APR)**year = 1 * (1 + 0.04) ** 3
FV = FV*(1 + APR)**year = 1 * (1 + 0.04) ** 4
FV = FV*(1 + APR)**year = 1 * (1 + 0.04) ** 5
etc.....
If you have an amount that is different than $1 (e.g., $10,000), multiplying $10,000 by the final FV quantity for each year will give you the future value for $10000.
Suggestion: to check your answer, use the exponentiation operator, calculate the result using the above formula, and compare that result with the one using your accumulator approach. The answers should be very close.
Also, you know that \n inside quotes generates a new line. Similarly, \t generates a tab stop, which you can use to generate the two columns in the output.
TEST CASE:
Enter initial investment: $5000
Enter interest rate: 2.5
Enter number of years: 29
Year Balance
1 $5125.0
2 $5253.12
3 $5384.45
4 $5519.06
5 $5657.04
6 $5798.47
7 $5943.43
8 $6092.01
9 $6244.31
10 $6400.42
11 $6560.43
12 $6724.44
13 $6892.56
14 $7064.87
15 $7241.49
16 $7422.53
17 $7608.09
18 $7798.29
19 $7993.25
20 $8193.08
21 $8397.91
22 $8607.86
23 $8823.05
24 $9043.63
25 $9269.72
26 $9501.46
27 $9739.0
28 $9982.48
29 $10232.04
Using the knowledge of computational language in JAVA it is possible to describe Generate a random integer from 1 to 100, Prompt the user to guess the number and Display "Too high" or "Too low".
Writting the code:
import java.util.Random;
import java.util.Scanner;
public class GFG {
public static void main(String[] args)
{
// stores actual and guess number
int answer, guess;
// maximum value is 100
final int MAX = 100;
// takes input using scanner
Scanner in = new Scanner(System.in);
// Random instance
Random rand = new Random();
boolean correct = false;
// correct answer
answer = rand.nextInt(MAX) + 1;
// loop until the guess is correct
while (!correct) {
System.out.println(
"Guess a number between 1 and 100: ");
// guess value
guess = in.nextInt();
// if guess is greater than actual
if (guess > answer) {
System.out.println("Too high, try again");
}
// if guess is less than actual
else if (guess < answer) {
System.out.println("Too low, try again");
}
// guess is equal to actual value
else {
System.out.println(
"Yes, you guessed the number.");
correct = true;
}
}
System.exit(0);
}
}
See more about JAVA at brainly.com/question/12975450
#SPJ1
With a _____, you can emphasize one data point by exploding it.
a. Column chart
b. 3-D Area chart
c. Line chart
d. 3-D Pie chart
a. Column chart
b. 3-D Area chart
c. Line chart
d. 3-D Pie chartWith the help of a 3-D-Pie chart, you can emphasize one data point by exploding it. Thus, the correct option for this question is D.
What are the characteristics of a 3-D Pie chart?The characteristics of a 3-D Pie chart are as follows:
It significantly contains each row as a separate slice of the pie.It is automatically labeled with two labels. This divides the given data into a series of segments in which each segment represents a particular category. 3-D pie chart comprises a circle that significantly disintegrates into sectors where each sector represents a proportion of the summation of all values in a datasheet.According to the context of the question, it type of chart illustrates numerous data and information in a small piece of the segment that makes it easily understandable to the individuals.
Therefore, with the help of a 3-D-Pie chart, you can emphasize one data point by exploding it. Thus, the correct option for this question is D.
To learn more about the Pie charts, refer to the link:
https://brainly.com/question/796269
#SPJ2
can anyone help me correct my code
Answer:
#include <stdio.h>
//below is the function prototype for the checkStatus function
//It simply tells the compiler what the return type and
//parameter types it takes. It is nothing more than a copy
//of the function header (line 16)
int checkStatus();
int main(){
int status;
status = checkStatus();
printf("Your vaccination status code is %d\n", status);
}
int checkStatus(){
int selection;
printf("~ Status of vaccination ~\n");
printf("-------------------------\n");
printf("1. Pending for appointment\n");
printf("2. Completed first dose\n");
printf("3. Completed second dose\n");
printf("4. Exit\n\n");
printf("Enter your selection(1 - 4): ");
scanf("%d", &selection);
return selection;
}
Explanation:
Which of the following is an example of how agriculture uses computer programming? (5 points)
Create drones
Initiate patient portals
Track and plan growth
Use special effects
Answer:
create drones is an example of how agriculture uses computer programming
I am working on a code, but I keep getting a KeyError at line 71.
Traceback (most recent call last):
File "main.py", line 71, in
pronunciation += vowels_dict[key]
KeyError: 'l'
Why do I keep getting this error, and how do I fix my code to get rid of this error? Even when I got rid of that line, it gave me a KeyError at line 67.
Traceback (most recent call last):
File "main.py", line 67, in
pronunciation += consonants_dict[key]
KeyError: 'a'
My code is below:
valid_letters = 'aeioupkhlmnw'
invalid_letters = 'bcdfgjqstvxyz'
pronunciation = ''
consonants_dict = {
'p':'p',
'k':'k',
'h':'h',
'l':'l',
'm':'m',
'n':'n',
'w':'w',
'aw':'w',
'iw':'v',
'ew':'v',
'uw':'w',
'ow':'w'
}
vowels_dict = {
'a':'ah-',
'e':'eh-',
'i':'ee-',
'o':'oh-',
'u':'oo-'
}
vowels_no_hyphen_dict = {
'a':'ah',
'e':'eh',
'i':'ee',
'o':'oh',
'u':'oo'
}
vowels_dict_capitalized = {
'A':'Ah-',
'E':'Eh-',
'I':'Ee-',
'O':'Oh-',
'U':'Oo-'
}
vowel_pairs_dict = {
'ai':'eye-',
'ae':'eye-',
'ao':'ow-',
'au':'ow-',
'ei':'ay-',
'eu':'ehoo-',
'iu':'ew-',
'oi':'oy-',
'ou':'ow-',
'ui':'ooey-'
}
hawaiian_word = input('Enter a hawaiian word: ')
hawaiian_word = hawaiian_word.lower()
for i in range(len(hawaiian_word)):
if hawaiian_word[i] in valid_letters:
for key in hawaiian_word:
if hawaiian_word[i] in consonants_dict:
pronunciation += consonants_dict[key]
elif hawaiian_word[0][0] in vowels_dict:
pronunciation += vowels_dict_capitalized[key]
elif hawaiian_word[i] in vowels_dict:
pronunciation += vowels_dict[key]
elif hawaiian_word[i-2] in vowels_dict:
pronunciation += vowels_no_hyphen_dict[key]
if hawaiian_word[i] in invalid_letters:
print('Invalid word, ' + hawaiian_word[i] + ' is not a valid hawaiian character.')
print(hawaiian_word.upper() + ' is pronounced ' + pronunciation)
Answer:
multiple things probably
Explanation:
Well the code is a bit confusing to read since the lack of indents but I'll try my best to interpret what you were trying to do.
By the looks of the exception you provided, it seems that the key "I" does not exist in your dictionary: "vowels_dict"
Same thing applies with the key "a" not existing in your dictionary: "consonants_dict"
This makes sense since by looking at your code since they obviously don't exist in their respective dictionaries.
I tried pasting the code into VisualStudio to get a better look at it and I tried to fix the indenting and to ensure I got it correct I provided what I indented below
"
for i in range(len(hawaiian_word)):
if hawaiian_word[i] in valid_letters:
for key in hawaiian_word:
if hawaiian_word[i] in consonants_dict:
pronunciation += consonants_dict[key]
elif hawaiian_word[0][0] in vowels_dict:
pronunciation += vowels_dict_capitalized[key]
elif hawaiian_word[i] in vowels_dict:
pronunciation += vowels_dict[key]
elif hawaiian_word[i-2] in vowels_dict:
pronunciation += vowels_no_hyphen_dict[key]
if hawaiian_word[i] in invalid_letters:
print('Invalid word, ' + hawaiian_word[i] + ' is not a valid hawaiian character.')
"
So there are a few issues I noticed, and I'm not exactly sure how to fix them since I'm not exactly sure what is supposed to be done.
1.
hawaiian_word[0][0] is redundant and likely not what you think.
The think with this line is it first returns the first letter of hawaiian_word which is now a one letter string, and now you get the first letter of this one letter string... which is the same string. You're likely trying to do something else but like I explained I'm not quite sure.
2.
for key in hawaiian_word:
if hawaiian_word[i] in consonants_dict:
pronunciation += consonants_dict[key]
So no runtime error should occur here since you're first checking if the key even exists, but I noticed your dictionary is defined as: "consonants_dict = {
'p':'p',
'k':'k',
'h':'h',
'l':'l',
'm':'m',
'n':'n',
'w':'w',
'aw':'w',
'iw':'v',
'ew':'v',
'uw':'w',
'ow':'w'
}
"
and you'll notice the last few keys have two letters, except your for loop is going through the word one letter at a time so these keys will never be used.
3. (probably the cause of your error)
the line in each elif statement you have some code along the lines of: pronunciation += dictionary[key]
except this key is only being defined in the for loop and and never changes. This key is actually just going to be the last letter of the word in each case assuming the first if condition is met the for loop runs and key is finally set to the last letter and never changes until it runs again but even then after it finishes it is set to the last letter. This word is unlikely to be in each dictionary. I'm assuming you meant to actually do:
elif hawaiian_word[0][0] in vowels_dict:
key = hawaiian_word[0][0]
pronunciation += vowels_dict_capitalized[key]
elif hawaiian_word[i] in vowels_dict:
key = hawaiian_word[i]
pronunciation += vowels_dict[key]
elif hawaiian_word[i-2] in vowels_dict:
key = hawaiian_word[i-2]
pronunciation += vowels_no_hyphen_dict[key]
because you're checking if the current letter you're on in word is in the dictionary but then you use something completely different?
Drag each tile to the correct box.
Mike is writing an essay using Microsoft Word on a Windows computer. Match each keyboard shortcut that he can use with its purpose.
Ctrl + X
F1
Purpose
pastes text saved in memory
runs the spelling and grammar check
opens the Help menu
cuts selected text
Ctrl + V
F7
Keyboard Shortcut
The correct matching of the tiles to their correct boxes is given below:
Ctrl + X
cuts selected text
runs the spelling and grammar check
F7
opens the Help menu
F1
Ctrl + V
pastes text saved in memory
What is Word Processing?This refers to the device or program that is used to input data or information, make edits, process and format them, and then provide output to the finished product.
Hence, we can see that from the given question, it is clearly stated that Mike is writing an essay using Microsoft Word on a Windows computer and he needs to use the keyboard shortcuts.
With this in mind, the word processor he is using is known as MS Word or Microsoft Word and it has some keyboard shortcuts that can help Mike write, edit and format his essay so it would be in the right and proper way for him to output.
Read more about word processing here:
https://brainly.com/question/1596648
#SPJ1
Which of the following is a programming language that is interpreted? (5 points)
Assembly
Java
Machine
Python
Answer: python
i just did a test on this
Write a Python program that asks the user to enter students’ grades. The program should
keep accepting grades and stops once a negative value is entered. Finally, the program prints
the number of grades entered, summation and average of all grades.
Which part of a MAC address is unique to each manufacturer?
a. the network identifier
b. the physical address
c. The OUI
d. The device manufacturer
Answer: A. the network identifier
Hope this helps!
2. What does the unsigned decimal value of 99 as sum of powers of 2
Answer:
(99)₁₀ = (1100011)₂
Explanation:
I believe the question is asking you to convert 99 in base 10 to binary
If so, the above would be the answer easily computed using a programming calculator
If I have mis-interpreted your question, my apologies and you can report this answer
Which of the following BEST describes what a kilobyte is a measurement of?
CPU speed
Power level
Back
Data throughput
Storage space
Answer:
Storage space
Explanation:
Define a function CheckVals() with no parameters that reads integers from input until integer 0 is read. The function returns true if all of the integers read before 0 are in the range -10000 to -9000 inclusive, otherwise, returns false.
Ex: If the input is -9500 -8975 0, then the output is:
Invalid value(s)
#include
using namespace std;
bool CheckVals() {
bool zero = true;
In this exercise we have to use the knowledge of C++ to write a program that is possible Define a function with no parameters that reads integers from input until integer 0 is read.
Writting the code:#include <iostream>
using namespace std;
bool
{
int num;
bool =true;
do
{
cin>>num;
if(num>=0 && num!=1)
=false;
}while(num!=1);
return;
}
int main()
{
bool allNegative;
allNegative=
if(allNegative==true)
cout<<"All match";
else
cout<<"All not match";
return 0;
}
See more about C++ at brainly.com/question/19705654
#SPJ1
Searching an Array for an Exact Match
Summary
In this lab, you use what you have learned about searching an array to find an exact match to complete a partially prewritten C++ program. The program uses an array that contains valid names for 10 cities in Michigan. You ask the user to enter a city name; your program then searches the array for that city name. If it is not found, the program should print a message that informs the user the city name is not found in the list of valid cities in Michigan.
The file provided for this lab includes the input statements and the necessary variable declarations. You need to use a loop to examine all the items in the array and test for a match. You also need to set a flag if there is a match and then test the flag variable to determine if you should print the the Not a city in Michigan. message. Comments in the code tell you where to write your statements. You can use the previous Mail Order program as a guide.
Instructions
Ensure the provided code file named MichiganCities.cpp is open.
Study the prewritten code to make sure you understand it.
Write a loop statement that examines the names of cities stored in the array.
Write code that tests for a match.
Write code that, when appropriate, prints the message Not a city in Michigan..
Execute the program by clicking the Run button at the bottom of the screen. Use the following as input:
Chicago
Brooklyn
Watervliet
Acme
CODE:
// MichiganCities.cpp - This program prints a message for invalid cities in Michigan.
// Input: Interactive
// Output: Error message or nothing
#include
#include
using namespace std;
int main()
{
// Declare variables
string inCity; // name of city to look up in array
const int NUM_CITIES = 10;
// Initialized array of cities
string citiesInMichigan[] = {"Acme", "Albion", "Detroit", "Watervliet", "Coloma", "Saginaw", "Richland", "Glenn", "Midland", "Brooklyn"};
bool foundIt = false; // Flag variable
int x; // Loop control variable
// Get user input
cout << "Enter name of city: ";
cin >> inCity;
// Write your loop here
// Write your test statement here to see if there is
// a match. Set the flag to true if city is found.
// Test to see if city was not found to determine if
// "Not a city in Michigan" message should be printed.
return 0;
} // End of main()
The program statements that complete the program are
for(x =0 ; x < NUM_CITIES; x++){
if (citiesInMichigan[x] == inCity){
foundIt = true;
}
}
if(foundIt == false){
cout<<"Not a city in Michigan";
}
How to complete the C++ programThe complete program in C++ language is as follows:
Note that the comments are used to explain each action
#include<iostream>
#include<string>
using namespace std;
int main(){
// Declare variables
string inCity; // name of city to look up in array
const int NUM_CITIES = 10;
// Initialized array of cities
string citiesInMichigan[] = {"Acme", "Albion", "Detroit", "Watervliet", "Coloma", "Saginaw", "Richland", "Glenn", "Midland", "Brooklyn"};
bool foundIt = false; // Flag variable
int x; // Loop control variable
// Get user input
cout << "Enter name of city: ";
cin >> inCity;
// Write your loop here
for(x =0 ; x < NUM_CITIES; x++){
// Write your test statement here to see if there is
// a match. Set the flag to true if city is found.
if (citiesInMichigan[x] == inCity){
foundIt = true;
}
}
// Test to see if city was not found to determine if
// "Not a city in Michigan" message should be printed.
if(foundIt == false){
cout<<"Not a city in Michigan";
}
return 0;
} // End of main()
Read more about programs at
https://brainly.com/question/26497128
#SPJ1
Write a program that reads integers from the user and stores them in a list. Use 0 as a sentinel value to mark the end of the input.
num = int(input("User Input: "))
mylist = []
while(num !=0):
mylist.append(num)
num = int(input("User Input: "))
mylist.reverse()
for i in mylist:
print(i,end = ' ')
What is a program?
A program is a set of instructions that a computer follows to complete a specific task.
This question is answered in Python, and it employs 0 as a sentinel value, which means that the program stops prompting the user for input when the user enters 0.
This line requests input from the user
num = int(input("User Input: "))
This line declares a list that is empty
mylist = []
This loop is repeated as long as user enters input other than 0
while(num !=0):
This appends user input to the list
mylist.append(num)
This prompts user for another input
num = int(input("User Input: "))
This reverses the list
mylist.reverse()
The following iteration the list in reverse order
for i in mylist:
print(i,end = ' ')
To learn more about program
https://brainly.com/question/23275071
#SPJ9
Briefly explain the benefits of making a time management plan as a student or professional.
Describe at least three planning tools that will help you manage your time effectively.
Answer:
As a student I answered for students benefits only
Explanation:
I am explaining into list form so that everyone can understand it easily.
Benefits:
You get more done in less time.By sticking to this time plan, you have a better chance of tackling the task than getting to it with no predefined time allocated to it.
Reduces stress.Proper time management enables you to prioritize tasks and tackle them first.
It helps you achieve your goals faster.Instead of getting caught up in multitasking, you focus on one activity at a time for a specified duration.
It boosts your confidence.Managing your time well allows you to get your work done on time. This elicits a sense of confidence and accomplishment in your capabilities. Getting through a long to-do list can also evoke these feelings.
There are about 1,932 calories in a 14-pound watermelon. How many calories are there in 1 pound of the watermelon?
Answer:
138
Explanation:
1932:14
x:1
1932/14 = 138
Therefore x = 138
There are 138 calories per pound of watermelon
Hope that helps
define as stored program digital computing system
Answer:
stored-program computer is a computer that stores program instructions in electronically or optically accessible memory.
Kindly help me with this question
Answer:
yo traciahenny how are you :)
Type the correct answer in the box. Spell all words correctly. What method is Dana using? Dana is working on a software development project. As a team leader she sets up time -bound targets for each of the members in her cross-functional team to improve collaboration. She is using the _ method of project development
Since Dana is using a cross-functional team to improve collaboration. She is using the Agile method of project development.
What is agile method of development?Agile is one that lets teams offer value to their clients more quickly and with fewer difficulties through an iterative approach to project management and software development.
Note that an agile team produces work in manageable, small-scale increments rather than staking all on a "big bang" launch.
Since the Agile technique divides a project into many parts and uses these phases to manage the project. Continuous improvement at every stage and ongoing collaboration with stakeholders are required. Teams cycle through a process of planning, carrying out, as well as assessing once the job starts.
Learn more about Agile from
https://brainly.com/question/14524978
#SPJ1
Identify a true statement of array.find(callback [, thisArg]) method.
A. It tests whether the condition returned by the callback function holds for all items in array.
B. It returns the value of the first element in the array that passes a test in the callback function.
C. It tests whether the condition returned by the callback function holds for at least one item in array.
D. It returns the index of the first element in the array that passes a test in the callback function.
Option c is correct. It tests whether the condition returned by the callback function holds for at least one item in array.
Every element in the array is put through the supplied test by the provided function using the every() method. It gives back a Boolean result. Until it locates the element for which callback function returns a false result, the every method calls the given callback function once for each element present in the array.
The every method immediately returns false if such an element is discovered. Every returns true if callback function does not return a truthy value for any of the items.
Only for array indexes with assigned values is callbackFn triggered. For empty slots in sparse arrays, it is not called.
The value of the element, the index of the element, and the Array object being traversed are passed as the three arguments to callbackFn.
To know more about callback function click on the link:
https://brainly.com/question/27961465
#SPJ4