In python:
Assign sum_extra with the total extra credit received given list test_grades. Full credit is 100, so anything over 100 is extra credit. For the given program, sum_extra is 8 because 1 + 0 + 7 + 0 is 8.
Sample output for the given program with input: '101 83 107 90'
Sum extra: 8
Answer:
Following are the code to this question:
list_val = input()#defining a integer variable for input value
test_grades = list(map(int, list_val.split()))#defining test_grades as a list
sum_extra = -999 #defining sum_extra that holds negative integer value
sum_extra = 0#defining sum_extra that holds value
for y in range(len(test_grades)):#defining a for loop to check range of list
if(test_grades[y] > 100):# defining if block that check list value is greater then 100
sum_extra = sum_extra + (test_grades[y] - 100)#use sum_extra variable to hold extra value and add this value
print('Sum extra:', sum_extra)#print value
Output:
101 83 107 90
Sum extra: 8
Explanation:
In the above code a, "list_val" variable is declared, that uses an input method to input the values and declared a "test_grades" variable that uses a list method to add all values in the list.
In the next step, the "sum_extra" variable is declared, which holds some values and defines a for loop to check the range of the "test_grades", and define a if block, that checks list value is greater than 100. If the condition is true, it will remove the extra value, and add it into the sum_extera variable and add its value, and at the last use, print variable to print its value.
User Interface Design ensures that the interface has elements that are easy to ________________. (Choose all that apply)
Question 1 options:
a) use to facilitate actions
b) change location
c) understand
d) remove
e) access
Answer:
A, C, D
Explanation:
User Interface (UI) Design focuses on anticipating what users might need to do and ensuring that the interface has elements that are easy to access, understand, and use to facilitate those actions.
Write and test a bin2Dec(String binaryString) method to convert a binary string into a decimal number. Implement the bin2Dec method to throw a NumberFormatException if the string is not a binary string
Answer:
Following are the method to this question:
import java.util.*;//import package for user input
public class Main //defining a class
{
public static int bin2Dec(String binaryString) throws NumberFormatException//defining a method bin2Dec that accept string value
{
int r=0,p= 1,i;
Stack<Integer> s = new Stack<>();//creating Stack object
for(i = binaryString.length()-1;i>=0;i--)//defining for loop to convert binary to decimal value
{
if(binaryString.charAt(i) != '0' && binaryString.charAt(i) != '1')//defining if block to check value
{
throw new NumberFormatException();//use throw block to check Exception
}
if(binaryString.charAt(i) == '1')//defining if block to check first input is value equal to 1
{
s.push(p);//using push method to add value in stack
}
p*= 2;//calculating the decimal value
}
while (!s.isEmpty())//defining while loop to stack is empty
{
r += s.pop();//use r variable to calculate value
}
return r;//return value
}
public static void main(String[] ax) //defining main method
{
Scanner oxb= new Scanner(System.in);//creating Scanner class object for input value
System.out.print("Enter a binary number: ");//print message
String b = oxb.nextLine();// defining String variable for input value
try //defining try block
{
System.out.print(bin2Dec(b));//use print method to call bin2Dec method
}
catch (Exception e)//use catch block to catch Exception
{
System.out.print(b+ "Not a binary number: ");//print message
}
}
}
output:
Enter a binary number: 101
5
Explanation:
In the above-given code a method, "bin2Dec" is declared, that accept a string variable in its parameter, inside the method an integer variable and stack class object is created, and this method uses two loops, and in the for loop, it converts the binary to a decimal value, in the while loop it checks all value and adds its value in r variable.
In the main method, a scanner class object is created, that use a string variable to input value from the user-end, and use the try and catch block to call method.
To connect to devices in another country, you would need to connect to a
WAN
MAN
LAN
PAN
Answer:
WAN
Explanation:
wide area network
Answer:
To connect to devices in another country, you would need to connect to a WAN
Explanation:
WAN stands for A wide area network which can connect to other countries and broad ranges.
Which of the columns (A) to (I) in the truth table below is correct for the expression
¬(r *(qV ¬p))
? (Answer (J) if none of them is correct).
p q r (A) (B) (C) (D) (E) (F) (G) (H) (I)
F F F T T F T F T T T T
F F T F F T T F T F F F
F T F T T F T T T T T F
F T T T F F T T F F T T
T F F F T T F F T T T F
T F T F T T F F F F F T
T T F F T T F F T T T F
T T T F F T F F F F T T
Answer:
tftftftftftftftftftftftftftftftftftftftftftftftftftftttttftfffftftftftttttfftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftfttftftftftftftftftftftftftftftftftftftftftftftftfttftftftfttfftftftftftftftftftftftftftfttttttttttttttttttttttfffffffffffffffffffftftftfttttttttftftftftftftftftftftftftftftftftftftftftfttftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftfftftftftftftftftfttftftftftftftftftftftftfftftftffftftfftfftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftfftfftftftftftftftftftftftftfftftftftftftftftftftftfftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftfftftftffftftftfftftftftftftftfftftftftftftftftftftftftftftftftfttftftftftftgtftftgtftgtftgtftgtftfftftfftfftfftfftftftftftftftftftftftftftftftftftftftftftfftftftftftftftftftftftftftftftfftfftfftftftftfttfftftftftftftftfftftftftftftftftftftftftftftftftftftftftftftftffftftftftftftftftftftftftftftftfftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftfftftftftftftftftftftftftftftftftfftfftftftftftftftftftftftfftftfftftftftfftftfftftftfftftftftftftftfftftttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt
Answer:
brooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo
Explanation:
Question 3 of 10
How is plagiarism both easier and harder in the Internet age?
A. It is both easier and harder because you are never sure what is
copyrighted and what is public domain.
OB It is easier because people dont really expect you to follow the
copyright regulations. It is harder to find exactly what you want.
It is easier because you there are too many sources for teachers
to know them all, it is harder because you will be caught.
Dit is easier because you have access to more information. It is
harder to get away with because anyone can conduct a word-
Answer: D is your answer
Plagiarism is copying someone's work
Plagiarism both easier and harder in the Internet age because you have access to more information. It is harder to get away with because anyone can conduct a word D is your answer
Answer:
The answer you are looking for would be "B.) It is easier because people don't really expect you to follow the copyright regulations, but it is harder to find exactly what you want." When you look a question up for an essay, summary, or even a test, the answer you need may not always be on the web, and you may need to visit several different websites to mash together a conclusion on your topic. However, people often copy topics nowadays, and it is easier for them to change a few words and get away with it then every before. Teachers have become much more lenient, therefore it is much easier to plagiarize something.
6. What will be drawn when we call fo?
def g():
Label("Hi!!, 150, 200, size=24).
def f():
Label("I'm happy", 225, 200, size=24)
[1 point]
O a. 'Hi!
O b. I'm happy
O c. I'm happy Hi!
O d. Hi! I'm happy
Answer:
d, brainly wants this to be long so hdjddjd
When you create a table using the Management Studio, the table is automatically stored in the default schema. If you want to transfer the table to a different schema, you can use the which statement?
a. COPY SCHEMA
b. ALTER SCHEMA
c. SET SCHEMA
d. CREATE SCHEMA
Answer:
b. ALTER SCHEMA
Explanation:
A database management system (DBMS) can be defined as a collection of software applications that typically enables computer users to create, store, modify, retrieve and manage data or informations in a database. Generally, it allows computer users to efficiently retrieve and manage their data with an appropriate level of security.
Database schema is the logical design of a database. In database management, the term "schema" is used to denote a representation of data while the term "instance" is used to denote an instance of time.
A database schema is a structure which is typically used to represent the logical design of the database and as such represents how data are stored or organized and the relationships existing in a database management system. There are two (2) main categories of a database schema; physical database schema and logical database schema.
A Management Studio refers to a software application or program designed and developed by Microsoft Corporation.
When you create a table using the Management Studio, the table is automatically stored in the default schema. If you want to transfer the table to a different schema, you can use the ALTER SCHEMA statement.
please tell fast plzzzzzz
Answer:
(1001) =9
(45)= 101101
How many assignments would you have failed without brainly?
lol.
Dana is moving to a new house. She has 15 boxes for books. Each box can hold up to 22 books. Dana has 375 books. How many more boxes does she need?
Answer:
3
Explanation:
no of boxes 15
each box hold 22 books
then 15×22=330 books occupied
left books are 375-330=45
so 45÷15=3 boxes will be need
Answers
12
lbiros
Explanation:
2 2x12
Assume there are 15 students registered for a history class. You will need to declare an array of the StudentType structure to contain data for all students and another character array with 20 elements to hold the answer key to a test. The history teacher at your school needs help in grading a True/False test. Define a StudentType structure for that.
Answer:
#include <iostream>
using namespace std;
struct StudentType{
string studentName;
int studentId;
}
int n;
char answer[20];
int main(){
cout<< "Enter the size of the array: ";
cin >> n;
StudentType *student = new StudentType(n);
for (int i = 0; i < n; i++){
int name;
int number;
cin>> name;
cin >> number;
student[i].studentName = name;
student[i].studentId = number;
}
for (int i = 0; i < 20; i++){
cout<< "Enter answers: ";
cin >> ans;
answer[i] = ans;
}
}
Explanation:
The C++ source code has three global variables namely, answer which is an array of character data type, StudentType which is a structure data type and the integer variable n. The main function declares and initializes the dynamic-spaced student array of the structure datatype with the n variable.
What are two main components to using functions (there are three from you to choose from)? What do each do? Why are they important?
Answer:
function is a self-contained program segment that carries out some specific, well-defined task. Every C program consists of one or more functions. One of these functions must be called main. Execution of the program always begins by carrying out the instructions contained in main. Note that if a program contains multiple functions then their definitions may appear in any order. The same function can be accessed from several different places within a program. Once the function has carried out its intended action, control is returned to the point from which the function was accessed. Generally speaking, a function processes information passed to it from the calling portion of the program, and returns a single value. Some functions, however, accept information but do not return anything.
A function definition has two principal components: the first line (including the argument declarations), and the so-called body of the function.
The first line of a function takes the general form data-type name(type 1 arg 1, type 2 arg 2, ..., type n arg n)
where data-type represents the data type of the item that is returned by the function, name represents the name of the function, and type 1, type 2, ..., type n represent the data types of the arguments arg 1, arg 2, ..., arg n. The allowable data types for a function are:
int for a function which returns an integer value
double for a function which returns an floating-point value
void for a function which does not return any value
The allowable data types for a function's arguments are int and double. Note that the identifiers used to reference the arguments of a function are local, in the sense that they are not recognized outside of the function. Thus, the argument names in a function definition need not be the same as those used in the segments of the program from which the function was called. However, the corresponding data types of the arguments must always match.
The body of a function is a compound statement that defines the action to be taken by the function. Like a regular compound statement, the body can contain expression statements, control statements, other compound statements, etc. The body can even access other functions. In fact, it can even access itself--this process is known as recursion. In addition, however, the body must include one or more return statements in order to return a value to the calling portion of the program.
A return statement causes the program logic to return to the point in the program from which the function was accessed. The general form of a return statement is:
return expression;
This statement causes the value of expression to be returned to the calling part of the program. Of course, the data type of expression should match the declared data type of the function. For a void function, which does not return any value, the appropriate return statement is simply:
return;
A maximum of one expression can be included in a return statement. Thus, a function can return a maximum of one value to the calling part of the program. However, a function definition can include multiple return statements, each containing a different expression, which are conditionally executed, depending on the program logic.
Note that, by convention, the main function is of type int and returns the integer value 0 to the operating system, indicating the error-free termination of the program. In its simplest form, the main function possesses no arguments. The library function call exit(1), employed in previous example programs, causes the execution of a program to abort, returning the integer value 1 to the operating system, which (by convention) indicates that the program terminated with an error status.
The program segment listed below shows how the previous program factorial.c can be converted into a function factorial(n) which returns the factorial (in the form of a floating-point number) of the non-negative integer n:
double factorial(int n)
{
/*
Function to evaluate factorial (in floating-point form)
of non-negative integer n.
*/
int count;
double fact = 1.;
/* Abort if n is negative integer */
if (n < 0)
{
printf("\nError: factorial of negative integer not defined\n");
exit(1);
}
/* Calculate factorial */
for (count = n; count > 0; --count) fact *= (double) count;
/* Return value of factorial */
return fact;
}
Explanation:
Cartesian Coordinate Robot is sometimes called? *
Answer:
rectilinear
Explanation:
I need a C++ program to ask the user to put in different numbers until zero is pressed then the program counts the numbers that are put in and finds the sum of the numbers and the negative numbers.
Answer:
#include <iostream>
using namespace std;
int main()
{
int input = 0;
int count = 0;
int sum = 0;
int sumNegative = 0;
while (true) {
cout << "Enter a number: ";
cin >> input;
if (input == 0) break;
count++;
sum += input;
if (input < 0) {
sumNegative += input;
}
}
cout << "Count of the numbers: " << count << endl;
cout << "Sum of all the numbers: " << sum << endl;
cout << "Sum of the negative numbers: " << sumNegative << endl;
}
Explanation:
Your requirements regarding the sum and the negative numbers was a bit vague so I just did something you can probably adjust easily to your liking.
The counter done bit for the count down instruction C5:0 is addressed as ______________________________.
Answer:
The answer is "C5 : 0/ CTD"
Explanation:
The Count Down is an instruction that counts FALSE-to-TRUE rung transitions. Rung Transitions can be brought about by occasions happening in the program, for example, parts going past an identifier or activating a cutoff switch.
The Count Down order is utilized to check down an occasion which happens consistently or remotely and places that esteem in the counter's Collector in augmentations of 1. The distinction between the Count Down is very straightforward, Count Up tallies up, Count Down checks down. The UN (Check Down Sub-current piece) is set when the aggregated worth folds over to +32, 768 (from - 32,767) and keeps tallying down from that point. The Done bit is set when the amassed esteem is equivalent to or more noteworthy than the preset worth. Furthermore, the Compact disc (Check Down Empower) is set when rung conditions are Valid and reset when rung conditions go Bogus or when the appropriate RES order is empowered. The UN piece can be reset by the RES order or when the aggregated worth goes over +32,767.
The Count Down order utilizes similar fields as the Count Up order. They contain a counter location (C5: x) with "X" being the counter number, a Preset worth field, and a Collector esteem field. Like the clocks and Count Up the Preset and Accumulator bits are addressable and can be changed or refreshed through inner rationale.
Microsoft Excel is an example of a(n) application.
entertainment
education
communication
productivity
Answer:
d
Explanation:
Answer:
productivity
Explanation:
u cant just say "A, B, C, or D" cause all the choices are randomized
just for future reference
Write a program that contains a class to encapsulate a word that is entered by the user. An appropriate accessor method should be written and used. Write appropriate methods to do the following: Convert the word to all lowercase letters. Scramble the word into all possible permutations and store them in a list or array. Sort the permutations in alphabetical order. Display the list of permutations. Report the number of permutations. Test all constructors and methods using a separate driver class.
Answer:import random
class Word(object):
def __init__(self):
self.word = ""
def set_word(self, word):
self.word = word
def lowercase(self):
self.word = self.word.lower()
def scramble(self):
length = len(self.word)
perm = 1
for x in range(1, length+1):
perm *= x
scrambled = list()
for i in range(0, perm):
woo = [x for x in self.word]
random.shuffle(woo)
scrambled.append("".join(woo))
scrambled = sorted(scrambled)
print(scrambled)
print(f"Number of permutations: {len(scrambled)}")
d = Word()
d.set_word("under")
print(d.lowercase())
print(d.scramble())
Explanation:
The python program defines a class called "Word" that uses an accessor "set_word" to pass in a string value to the object variable "self.word". The lowercase() method converts the string to lowercase if it is capitalized and the scramble() method returns a list of possible rotations of the letters of the word.
A variable of type unsigned char stores a value of 255. If the variable value is decremented, what exception will occur
Answer:
No exception will occur
Explanation:
Given
Unsigned Char
Value = 255
Operation = Decrement
Required
What type of exception occurs?
Let's assume the variable is a.
So, we have that
a = 255
The range of values of an unsigned char a is 0 to 255
So, when a is decremented by 1, the new value of a becomes 254
254 is still within the range of 0 to 255.
Hence, no exception will (or is excepted to) occur
A network manager is interested in a device that watches for threats on a network but does not act on its own, and also does not put a strain on client systems. Which of the following would BEST meet these requirements?
a. HIDS
b. NIDS
c. NIPS
d. HIPS
Answer:
Option b (NIDS) is the correct choice.
Explanation:
NIDS helps to detect suspicious internet activity. Throughout order to determine all congestion, along with all network packets, unfaithful user information was indeed probably recommended. They were indeed technologies that are already constructively divided up in less than service providers that ineffectively investigate traffic through the systems on something they have been located.All those other available options aren't closely linked to the scenario in question. Therefore this obvious response is the correct one.
Editing is the process of cutting out the bad parts. True or false?
Answer:
true
Explanation:
your welcome
Answer:
ttrue ................
Question 5
2 pts
The type of control structure that
causes a branch forward at some
point, causing a portion of the
program to be skipped, is:
a selection structure.
O a seguential structure
a repetition structure
a loop structure
Answer:
Selection structure.
Explanation:
In a decision structure (selection structure), there is a branch forward at some point, which causes a portion of the program to be skipped. A loop structure (repetition structure) contains a branch to a previous statement in the program module, which results in a block of statements that can be executed many times.
i lost my account!-_-
Answer:
and?
Explanation:
thx for the points btw
write a pseudocode to calculate the volume of a cylinder
Answer:
10.50, height = 15.01, and pi = 3.1415.
In dynamic programming, the technique of storing the previously calculated values is called A. Saving value property B. Storing value property C. Memoization D. Mapping
Answer:
C. Memoization
Explanation:
Given that Memoization is a computing strategy that is applied in storing the previously calculated values such that values can easily be recalled to execute similar problems or further problems. It is also used in making recurring algorithms productive
Hence, in this case, In dynamic programming, the technique of storing the previously calculated values is referred to as MEMOIZATION
What is the output? x = 9 % 2 if (x == 1): print ("ONE") else: print ("TWO")
The output of the python program written will result in the console displaying ONE.
The program assigns the value of the remainder when 9 is divided by 2 to x
The value of the remainder would be 1
The program is then instructed to display ONE if the value of is one otherwise it should display TWO.
THEREFORE, since the value of x in the program is 1 ; then ONE will be displayed.
Learn more :https://brainly.com/question/4982426
shows a document in its final form: ____ shows a document in its first form.
Final; Original Markup
Original; No Markup
Final Markup: No Markup
No Markup: Original
Answer:
The answer to this question is given below in the explanation section.
Explanation:
This question is about a feature in Word processing software such as ms word. This feature is related to review the document. While reviewing the document, you can keep the track of changes in the document.
There are different options available to show the markup or not.
If you want to show a document in its final form then you need to select No Markup.
If you want to show a document in its first form then you need to select Original.
So, the correct answer is:
No Markup: Original
You can find these functionalities in Ms word going through the Review tab, then under the Tracking group, and then select these options from Track changes drop down menu.
g Write a program that allows a user to input any text in your program. Using the tools that we have discussed, your program should output how many unique words were in the input and then output how many words were unique.
Answer:
Explanation:
The following function/program is written in Java. It asks the user for a sentence as an input and then splits that sentence into an array of words. Then it creates an arrayList for all of the unique words, comparing each word in the sentence with all of those in the ArrayList. If a word is found in the ArrayList it cancels the loop and moves on the next word in the sentence. Finally, it counts all of the unique words in the ArrayList and prints that total to the screen.
public static void uniqueWords() {
Scanner in = new Scanner(System.in);
System.out.println("Enter a sentence:");
String sentence = in.nextLine();
String words[] = sentence.split(" ");
ArrayList<String> uniqueWords = new ArrayList<>();
for (int x = 0; x < words.length; x++) {
boolean exists = false;
for (int i = 0; i < uniqueWords.size(); i++) {
if (words[x].equals(uniqueWords.get(i))) {
exists = true;
break;
}
}
if (exists == false) {
uniqueWords.add(words[x]);
}
}
System.out.println(uniqueWords.size());
}
Of all the database types we have studied, which database seems most appropriate for a startup building a new note-taking app for use in higher education (during class, etc). Why
Answer:
documents database
Explanation:
This database is most appropriate because we need to remember that a note-taking app would not necessarily need too many functions apart from the basics text input operations.
Also, we need to note that the digital infrastructure required to build a documents database, is very convenient for a startup because they may have lesser resources.
Answer:
Key/Value database
Explanation:
A key/value database is similar to a relational database (a database with a table) but pairs the notes of a user to the username at every session. This session of note-taking or key-value pairing is like a dictionary or hashtable and can be stored in the local system as JSON files.
What are 4 apps like giggl? There are lots of portals open and it's so laggy, please give me good alternatives.
Not sure what that is, but I use Discord, if that's similar.