Answer:
silverware and dishwasher chemicles
Explanation:
Define 'formatting'
Answer:
Formatting refers to the appearance or presentation of your essay.
Explanation:
Most essays contain at least four different kinds of text: headings, ordinary paragraphs, quotations and bibliographic references.
1 #include
2 using namespace std;
3
4 int main() {
5 int userNum;
6 int userNumSquared;
7
8 cin >> userNum;
9
10 userNumSquared = userNum + userNum; // Bug here; fix it
11
12 cout << userNumSquared; // Output formatting issue |
13
14 return 0;
15 }
16
While the zyLab platform can be used without training, a bit of training may help some students avoid common issues.
The assignment is to get an integer from input, and output that integer squared, ending with newline. (Note: This assignment is configured to have students programming directly in the zyBook. Instructors may instead require students to upload a file). Below is a program that's been nearly completed for you.
Click "Run program". The output is wrong. Sometimes a program lacking input will produce wrong output (as in this case), or no output. Remember to always pre-enter needed input.
Type 2 in the input box, then click "Run program", and note the output is 4.
Type 3 in the input box instead, run, and note the output is 6.
When students are done developing their program, they can submit the program for automated grading.
Click the "Submit mode" tab
Click "Submit for grading".
The first test case failed (as did all test cases, but focus on the first test case first). The highlighted arrow symbol means an ending newline was expected but is missing from your program's output.
Matching output exactly, even whitespace, is often required. Change the program to output an ending newline.
Click on "Develop mode", and change the output statement to output a newline: cout << userNumSquared << endl;. Type 2 in the input box and run.
Click on "Submit mode", click "Submit for grading", and observe that now the first test case passes and 1 point was earned.
The last two test cases failed, due to a bug, yielding only 1 of 3 possible points. Fix that bug.
Click on "Develop mode", change the program to use * rather than +, and try running with input 2 (output is 4) and 3 (output is now 9, not 6 as before).
Click on "Submit mode" again, and click "Submit for grading". Observe that all test cases are passed, and you've earned 3 of 3 points.
Answer:
Change line 10 to:
userNumSquared = userNum * userNum;
Change line 11 to:
cout << userNumSquared<<endl;
Explanation:
Though the question is a bit lengthy but the requirements are not clearly stated. However, I'm able to pick up the following points.
Print the square of the inputted numberPrint the squared number with a new lineTo do this, we simply modify the affected lines which are lines 10 and 11.
The plus sign on line 10 will be modified to multiplication
i.e.
userNumSquared = userNum * userNum;
And line 11 will be modified to:
cout << userNumSquared<<endl;
Every other line of the program is okay and do not need to be modified
What is Software Packages
[tex]{\fcolorbox{red}{black}{\white {Answer}}}[/tex]
A software package is an assemblage of files and information about those files. ... Each package includes an archive of files and information about the software, such as its name, the specific version and a description. A package management system (PMS), such as rpm or YUM, automates the installation process.
Which artistic technique uses multiple layers of small calligraphic or scribbled marks?
A. random hatching
B. crosshatching
C. shading
D. stippling
E. scrumbling
Answer:
E. scrumbling
Explanation:
. A digital computer has a memory unit with 24 bits per word. The instruction set consists of 150 different operations. All instructions have an operation code part (opcode) and an address part (allowing for only one address). Each instruction is stored in one word of memory.
a) How many bits are needed for the opcode?
b) How many bits are left for the address part of the instruction?
c) What is the maximum allowable size for memory?
d) What is the largest unsigned binary number that can be accommodated in one word of memory?
Explanation:
d answer
gzjxubejeiizbtozueg
Binary is a base-2 number system instead of the decimal (base-10) system we are familiar with. Write a recursive function PrintInBinary(int num) that prints the binary representation for a given integer. For example, calling PrintInBinary(5) would print 101. Your function may assume the integer parameter is non-negative. The recursive insight for this problem is to realize you can identify the least significant binary digit by using the modulus operator with value 2. For example, given the integer 35, mod by 2 tells you that the last binary digit must be 1 (i.e. this number is odd), and division by 2 gives you the remaining portion of the integer (17). What 's the right way to handle the remaining portion
Answer:
In C++:
int PrintInBinary(int num){
if (num == 0)
return 0;
else
return (num % 2 + 10 * PrintInBinary(num / 2));
}
Explanation:
This defines the PrintInBinary function
int PrintInBinary(int num){
This returns 0 is num is 0 or num has been reduced to 0
if (num == 0)
return 0;
If otherwise, see below for further explanation
else
return (num % 2 + 10 * PrintInBinary(num / 2));
}
----------------------------------------------------------------------------------------
num % 2 + 10 * PrintInBinary(num / 2)
The above can be split into:
num % 2 and + 10 * PrintInBinary(num / 2)
Assume num is 35.
num % 2 = 1
10 * PrintInBinary(num / 2) => 10 * PrintInBinary(17)
17 will be passed to the function (recursively).
This process will continue until num is 0
Checkpoint 4.20 Assume hour is an int variable. Write an if statement that displays the message “Time for lunch” only if hour is equal to 12.
Answer:
if(hour == 12)
{cout << "Time for lunch";}
Explanation:
what are the cleaning solutions used in cleaning gas stove, refrigerator and kitchen premises?
Answer:
Detergents. Soaps, liquid or paste. Solvent cleaners. Acid cleaners. Abrasive cleaners. Applying heat. Exposing to radiant energy. Chemical sanitizers. Natural cleaning materials.
Explanation:
Cole has to edit and resize hundreds of photographs for a website. Which Adobe
software program would be the best choice to complete this task?
a.) Animate b.) Dreamweaver c.) Illustrator d.) Photoshop
Use EBNF notation to describe the syntax of the following language constructs.
A. A Java return statement, which could be either a return keyword followed by a semicolon, or a return keyword followed an expression then followed by a semicolon. Assume the grammar for expression has been defined as expr-> e
B. A Python return statement, either a return keyword, or return one or more expressions separated by comma.
C. Based on your syntax definition in (b), is return x+y; a valid Python return statement?
Answer:
Following are the description to the given points:
Explanation:
To resolve basic design restrictions, EBNF has also been developed.This principle was its lack of support can identify repeatings easily. It implies that popular BNF models, like the description of a sequence of replicable elements, are complicated and rely on contra intuitive logical math.
To set a list of words divided by commas (e.g. john, coffee, logic) for instance, we would like to say something like "a list is a word accompanied by a few commas or terms." Through EBNF, they may say so. However, there have been no "many" alternatives in the standard BNF format. So, to describe something such as "a list is a term or a number accompanied by a pair with notation and script," you have to say the same thing. Which functions, although it is difficult, as it specifies a variety of lists instead of a specific list.
Essentially, "john, coffee, logic is John's list, accompanied by coffees or, and logic" would be the earlier link. That's why in Option (a):
The return statement in Java is:
return ('”‘ (~[“] | ” [”e‘])*);
In option (c), it is the valid statement.
A customer comes into a computer parts and service store. The customer is looking for a device to provide secure access to the central server room using a retinal scan. What device should the store owner recommend to accomplish the required task?
Answer:
The owner should recommend facial ID or retinal scanner
In comparison to other biometric methods like fingerprint or retinal scans, it is quicker and more practical. Comparing facial recognition to typing passwords or PINs, there are also fewer touchpoints. Multifactor authentication is supported for a second layer of security check.
What secure access to central server room, a retinal scan?The topic of facial recognition has always caused controversy. The technology, according to its proponents, is a useful tool for apprehending criminals and confirming our identities. Critics argue that it violates privacy, may be inaccurate and racially prejudiced, and may even lead to unjustified arrests.
Simpleness of use and implementation. Once put into practice, both approaches are simple to utilize. However, facial recognition is basically possible with any camera (although a higher quality camera will be more accurate). Iris scanning is impossible with a standard camera, and the technology can be very expensive.
Therefore, The owner should recommend facial ID or retinal scanner.
Learn more about scan here:
https://brainly.com/question/24319849
#SPJ2
What is computer science
Answer:
computer science is the study of computer and computing as well as theoretical and practical applications.
pls give me thanks ☺️☺️
This component of the CPU is responsible for fetching the data, converting it, and de-converting
A) ALU
B) RAM
C) Control Unit
D) None of the above
In CPU there are two components name ALU and CU(Control unit) which ALU's function is to solve mathematic sequence and CU fuction is to vetch data to memory and manage commands and input & output.
#See pic for how the data proceed
When you
you can use the diverse knowledge sets of a team and share a workload.
O strategize
O quantify
discriminate
I
O collaborate
Answer:
Collaborate.
Explanation:
It was correct for me!
Answer:collaborate
Explanation:
cs edgen 100%
You are given the following segment of code:Line 1: PROCEDURE printScorePairs()Line 2: {Line 3: count <-- 0Line 4: sum <-- 0Line 5: i <-- 1Line 6: scores <-- [73, 85, 100, 90, 64, 55]Line 7: REPEAT UNTIL ( i > LENGTH (scores) )Line 8: {Line 9: sum <-- scores[i] scores[i 1]Line 10: DISPLAY ( sum )Line 11: i <-- i 2Line 12: }Line 13: }The ABC company is thrifty when it comes to purchasing memory (also known as RAM) for its computers. Therefore, memory is of the utmost importance and all programming code needs to be optimized to use the least amount of memory possible. What modifications could be made to reduce the memory requirements without changing the overall functionality of the code?
Answer:
Move Line 10 to after line 12
Explanation:
Required: Modify the program
From the procedure above, the procedure prints the sum at each loop. Unless it is really necessary, or it is needed to test the program, it is not a good practice.
To optimize the program, simply remove the line at displays the sum (i.e. line 10) and place it at the end of the loop.
So, the end of the procedure looks like:
Line 10: i <-- i 2
Line 11: }
Line 12: DISPLAY ( sum )
Line 13:
1. Which of the following is used to operate computers and execute tasks?
A. Software
C. Update
B. Application
D. Upgrade
Answer:
a.software
I hope it hel
Write a python program that gets a number using keyboard input. If the number is positive, the program should call countdown
Answer:
def countdown():
print("This is countdown")
number = int(input("Enter number: "))
if (number > 0):
countdown()
Explanation:
This is literally what you asked, but what is the purpose?
Write a function solution that, given an integer N, returns the maximum possible
value obtained by inserting one '5' digit inside the decimal representation of integer N.
Examples:
1. Given N = 268, the function should return 5268.
2. Given N = 670, the function should return 6750.
3. Given N = 0, the function should return 50.
4. Given N = -999, the function should return - 5999.
Assume that:
• N is an integer within the range (-8,000..8,000).
In your solution, focus on correctness. The performance of your solution will not be the
focus of the assessment.
Copyright 2009-2021 by Codility Limited. All Rights Reserved. Unauthorized copying, publication or
disclosure prohibited
You did not specified the language, so I did my program in python.
Hope it helps!!!
where are all of your documents saved?
Answer:
create a my document folder so you can easily find it
Explain the complement of a number along with the complements of the binary and decimal number systems.why is the complement method important for a computer system?
olha so olha la que bacana bonito
The complement method are the digital circuits, are the subtracting and the addition was the faster in the method. The binary system was the based on the bits are the computer language.
What is computer?
Computer is the name for the electrical device. In 1822, Charles Babbage created the first computer. The work of input, processing, and output was completed by the computer. Hardware and software both run on a computer. The information is input into the computer, which subsequently generates results.
The term “binary” refers to the smallest and minimum two-digit number stored on a computer device. The smallest binary codes are zero (0) and one (1). The use of storing numbers easily. The computer only understands the binary language. The binary is converted into the number system as a human language. The complement method are the digital circuits the addition and the subtracting was the easily.
As a result, the complement method is the digital circuits are the subtracting to the binary system was the based on the bits are the computer language.
Learn more about on computer, here:
https://brainly.com/question/21080395
#SPJ2
which among the following if absent, a computer is not complete.
A. mouse
B. DVD
C. user
D. projector
Answer:
user because all the other things the computer need
identify similarities and differences of hibiscus leaves
Answer:
I'm sorry but I cant answer if it's only one product,it should be two..it's like different to what,or similar to what
the full meaning of ENIAC,ABACUS,EDVAC,EDSAC
and explain
Answer:
ENIAC: Electronic Numerical Integrator and Computer.
ABACUS: Abundant Beads, Addition and Calculation Utility System.
EDVAC: Electronic Discrete Variable Automatic Computer
EDSAC: Electronic Delay Storage Automatic Computer
What is Open Source Software
Answer:
Open-source software is a type of computer software in which source code is released under a license in which the copyright holder grants users the rights to use, study, change, and distribute the software to anyone and for any purpose
Explanation:
2. It is the art of creating computer graphics or images in art, print media, video games.
ins, televisions programs and commercials.
How to write an algorithm to read and print a name?
I want the steps please
Answer:
Step 1: Obtain a description of the problem. This step is much more difficult than it appears. ...
Step 2: Analyze the problem. ...
Step 3: Develop a high-level algorithm. ...
Step 4: Refine the algorithm by adding more detail. ...
Step 5: Review the algorithm.
Explanation:
Which of the following would be considered software? Select 2 options.
memory
printer
operating system
central processing unit (CPU)
Microsoft Office suite (Word, Excel, PowerPoint, etc.)
Thing
Answer:
Microsoft Office suite (Word, Excel, PowerPoint, etc.), and thing
Explanation:
The Operating system and Microsoft Office suite will be considered as software.
A Software is the opposite of Hardware in a computer system.
Let understand that Software means some set of instructions or programs on a computer which are used for operation and execution of specific tasks.There are different type of software and they include:
Application Software are software installed into the system to perform function on the computer E.g. Chrome.System Software is the software designed to provide platform for other software installed on the computer. Eg. Microsoft OS. Firmware refers to set of instructions programmed on a hardware device such as External CD Rom.In conclusion, the Operating system is a system software while the Microsoft Office suite is an application software.
Learn more about Software here
brainly.com/question/1022352
What does the abbreviation JPEG stand for?
A. Japanese Photographic Examination Group
B. Joint Photo Examination Group
C. Joint Photographic Expert Group
D. Jefferson Photo Exclusive Group
E. Jacket Photo Extension Group
Answer:
c) giant photographic experts group
Answer:
C
Explanation:
(often seen with its file extension stands for
"Joint Photographic Experts Group",
An equal-tangent sag equal tangent vertical curve is designed for 45 mi/h. The low point is 237 ft from the PVC at station 112 + 37 and the final offset at the PVT is 19.355 ft. If the PVC is at station 110 + 00, what is the elevation difference between the PVT and a point on the curve at station 111 + 00?
Answer:
vertical and I have a great day of school
In the central processing unit (CPU).
A) Causes data to be input into the system
B) Responsible for the logical order of processing and converting data.
C) Both
D) None of the above
As i said bro, in CPU there are ALU and CU where ALU is to do mathematics problem and CU where its to processing, converting data. CPU is like the brain of computer. But it can't be the input, the input can get through hardware, not CPU.