For the first question, its the 1st and 3rd
For the second it is b
Answer:
1 and 3
and B
Explanation:
is the answers
______________ is a raw fact about a person or an object
Question 1 options:
File
Lookup wizard
Information
Data
- A blacksmith is shoeing a miser's horse. The blacksmith charges ten dollars for his work. The miser refuses to pay. "Very well", says the blacksmith, "there are eight nails in each horseshoe. The horse has four shoes. There are 32 nails in all. I will ask you to pay one penny for the first nail, two pennies for the next nail, four pennies for the next nail, eight pennies for the next nail, sixteen pennies for the next, etc. until the 32nd nail". How much does the miser have to pay?
Answer:
1+ 2^31= 2,146,483,649 pennies.
in Dollars- $21,464,836.49
edit for total=
42, 929,672. 97
Explanation:
,
Write the function evens which takes in a queue by reference and changes it to only contain the even elements. That is, if the queue initially contains 3, 6, 1, 7, 8 then after calling odds, the queue will contain 6, 8. Note that the order of the elements in the queue remains the same. For full credit, no additional data structures (queues, stacks, vectors, etc.) should be used. Assume all libraries needed for your implementation have already been included.
Answer:
Explanation:
The following code is written in Java it goes through the queue that was passed as an argument, loops through it and removes all the odd numbers, leaving only the even numbers in the queue. It does not add any more data structures and finally returns the modified queue when its done.
public static Queue<Integer> evens(Queue<Integer> queue) {
int size = queue.size();
for(int x = 1; x < size+1; x++) {
if ((queue.peek() % 2) == 0) {
queue.add(queue.peek());
queue.remove();
} else queue.remove();
}
return queue;
}
Use the drop-down menus to complete the sentences about the Calendar view Arrange command group.
Under the Calendar view, you will see your calendar as
✔ monthly
by default.
When you create an appointment, you are creating an activity that will not send
✔ an invitation
to other people.
A meeting is an activity where individuals are invited and
✔ resources
are shared.
✔ An event
is an all-day incident placed on the calendar.
Answer:
The default multiple calendar view is
✔ side-by-side
.
Overlay view will color-code multiple dates in
✔ one view
.
Calendar
✔ groups
include multiple users’ calendars as a team.
Explanation:
domain controllers store local user accounts within a sam database and domain user accounts within active directory. true or false
Answer:
True
Explanation:
The domain controller is a server that responds within windows server domains to request for security authentication. It enforces security for windows and they are useful for storing the account information of users, that is local users within a Security Account Manager. Therefore the answer to this question is true.
Thank you!
The following pseudocode describes how a bookstore computes the price of an order from the total price and the number of the books that were ordered. Step 1: read the total book price and the number of books. Step 2: Compute the tax (7.5% of the total book price). Step 3: Compute the shipping charge ($2 per book). Step 4: The price of the order is the sum of the total book price, the tax and the shipping charge. Step 5: Print the price of the order. Translate this psuedocode into a C Program. Please write only the main body of the program
Answer:
float bookExamplePrice = 15.25;
float bookTax = 7.5;
float bookShippingPrice = 2.0;
float Test = bookExamplePrice / 100;
float Tax = Test * bookTax;
float FullPrice = Tax + bookExamplePrice + bookShippingPrice;
// I don't know how to remove the numbers after the first two decimals.
// I tested this program. It works!
// The text after the two slashes don't run when you compile them.
printf("Price: $%.6f\n",FullPrice);
Explanation:
Describe how to add images and shapes to a PowerPoint
presentation
In this assignment, you will describe how to add images and shapes to a PowerPoint presentation
Write a program that reads a length in feet and inches (example: 3 ft and 2 in) and outputs the equivalent length in meters and centimeters example: 1.5 m and 22 mm). Use at least three functions: one for input, one or more for calculating, and one for output. Include a loop that lets the user repeat this computation for new input values until the user says he or she wants to end the program. There are 0.3048 meters in a foot, 100 centimeters in a meter, and 12 inches in a foot.
Answer:
In Python:
def main():
repeat = True
while(repeat):
feet = int(input("Feet: "))
inch = int(input("Inch: "))
Convert(feet,inch)
again = int(input("Press 1 to tryagain: "))
if again == 1:
repeat = True
else:
repeat = False
def Convert(feet,inch):
meter = 0.3048 * feet
cm = (inch/12) * 0.3048 * 100
printOut(meter,cm)
def printOut(meter,cm):
print("Meter: %.3f"%(meter))
print("Centimeter : %.3f"%(cm))
if __name__ == "__main__":
main()
Explanation:
The main function is defined here (used for input)
def main():
This sets boolean variable repeat to true
repeat = True
This loop is repeated until repeat = false
while(repeat):
The next two lines get the input from the user
feet = int(input("Feet: "))
inch = int(input("Inch: "))
This calls the convert function to convert the units respectively
Convert(feet,inch)
This prompts the user to tryagain
again = int(input("Press 1 to tryagain: "))
If yes, the loop is repeated. Otherwise, the program ends
if again == 1:
repeat = True
else:
repeat = False
The Convert method begins here (used for calculation)
def Convert(feet,inch):
This converts feet to meter
meter = 0.3048 * feet
This converts inch to centimeter
cm = (inch/12) * 0.3048 * 100
This calls the printOut function
printOut(meter,cm)
The printOut method begins here (used for printing)
def printOut(meter,cm):
These print the converted units
print("Meter: %.3f"%(meter))
print("Centimeter : %.3f"%(cm))
The main function is called here
if __name__ == "__main__":
main()
1. What is the difference between computer organization and computer architecture? 2. What is an ISA? 3. What is the importance of the Principle of Equivalence of Hardware and Software? 4. Name the three basic components of every computer. 5. To what power of 10 does the prefix giga- refer? What is the (approximate) equivalent power of 2? 6. To what power of 10 does the prefix micro- refer? What is the (approximate) equivalent power of 2?
Answer:
1.Computer Organization is how operational parts of a computer system are linked together. Computer architecture provides functional behavior of computer system. ... Computer organization provides structural relationships between parts of computer system.
2. An ISA, or Individual Savings Account, is a savings account that you never pay any tax on. It does come with one restriction, which is the amount of money you can save or invest in an ISA in a single tax year – also known as your annual ISA allowance.
3. The principle of equivalence of hardware and software states that anything that can be done with software can also be done with hardware and vice versa. This is important in designing the architecture of a computer. There are probably uncountable choices to mix and match hardware with software.
4.Computer systems consist of three components as shown in below image: Central Processing Unit, Input devices and Output devices. Input devices provide data input to processor, which processes data and generates useful information that's displayed to the user through output devices.
5.What is the (approximate) equivalent power of 2? The prefix giga means 109 in the SI (International System of Units) of decimal system. Now convert to binary definition. So, the 1 giga =230 bytes.
Write an algorithm to find the average of three numbers: 10, 20, 30
Language: JavaScript
Answer:
let num = [10,20,30];
average(num);
function average(num) {
let sum = 0;
for(let i in num) {
sum += num[i];
}
return console.log(sum/num.length);
}
Complete the sentences describing a computer innovation.
Software and technology that allow people to work together on a task are known as ____?
Answer:
Collaboration
Answer:
Software and technology that allow people to work together on a task are known as collaboration tools
Explanation:
Write a C++ program to calculate the course score of CSC 126. 1. A student can enter scores of 3 quizzes, 2 exams, and a final exam. The professor usually keeps 1 digit after the point in each score but the overall course score has no decimal places. 2. The lowest quiz score will not be calculated in the quiz average. 3. The weight of each score is: quiz 20%, exams 30%, and the final 50%. 4. The program will return the weighted average score and a letter grade to the student. 5. A: 91 - 100, B: 81 - 90, C: 70 - 80, F: < 70.
Answer:
In C++:
#include <iostream>
using namespace std;
int main(){
double quiz1, quiz2, quiz3, exam1, exam2, finalexam,quiz;
cout<<"Quiz 1: "; cin>>quiz1;
cout<<"Quiz 2: "; cin>>quiz2;
cout<<"Quiz 3: "; cin>>quiz3;
cout<<"Exam 1: "; cin>>exam1;
cout<<"Exam 2: "; cin>>exam2;
cout<<"Final Exam: "; cin>>finalexam;
if(quiz1<=quiz2 && quiz1 <= quiz3){ quiz=(quiz2+quiz3)/2; }
else if(quiz2<=quiz1 && quiz2 <= quiz3){ quiz=(quiz1+quiz3)/2; }
else{ quiz=(quiz1+quiz2)/2; }
int weight = 0.20 * quiz + 0.30 * ((exam1 + exam2)/2) + 0.50 * finalexam;
cout<<"Average Weight: "<<weight<<endl;
if(weight>=91 && weight<=100){ cout<<"Letter Grade: A"; }
else if(weight>=81 && weight<=90){ cout<<"Letter Grade: B"; }
else if(weight>=70 && weight<=80){ cout<<"Letter Grade: C"; }
else{ cout<<"Letter Grade: F"; }
return 0;
}
Explanation:
See attachment for complete program where comments were used to explain difficult lines
1 #include 2 3 int max2(int x, int y) { 4 int result = y; 5 if (x > y) { 6 result = x; 7 } 8 return result; 9 } 10 11 int max3(int x, int y, int z) { 12 return max2(max2(x,y),z); 13 } 14 15 int main() { 16 int a = 5, b = 7, c = 3; 17 18 printf("%d\n",max3(a, b, c)); 19 20 printf("\n\n"); 21 return 0; 22 } What number is printed when the program is run?
Answer:
7
Explanation:
#include <stdio.h>
int max2(int x, int y) {
int result = y;
if (x > y) {
result = x;
}
return result;
}
int max3(int x, int y, int z) {
return max2(max2(x,y),z);
}
int main() {
int a = 5, b = 7, c = 3;
printf("%d",max3(a, b, c));
printf("");
return 0;
}
Hi, first of all, next time you post the question, it would be nice to copy and paste like above. This will help us to read the code easily. Thanks for your cooperation.
We start from the main function:
The variables are initialized → a = 5, b = 7, c = 3
max3 function is called with previous variables and the result is printed → printf("%d",max3(a, b, c));
We go to the max3 function:
It takes 3 integers as parameters and returns the result of → max2(max2(x,y),z)
Note that max2 function is called two times here (One call is in another call actually. That is why we need to first evaluate the inner one and use the result of that as first parameter for the outer call)
We go to the max2 function:
It takes 2 integers as parameters. If the first one is greater than the second one, it returns first one. Otherwise, it returns the second one.
First we deal with the inner call. max2(x,y) is max2(5,7) and the it returns 7.
Now, we need to take care the outer call max2(7, z) is max2(7, 3) and it returns 7 again.
Thus, the program prints 7.
b or c isn't the best answer
Formatting commands can be used to add number formats? True of false
Answer:
false
Explanation:
Which of the following is a/are view/views to display a table in Access?
Question 5 options:
Datasheet view
Design view
Both A and B
None of the above
Answer:Both A and B
Explanation:
create java program for these 2 question
1 see what you can do and go from their
Create an application that will be used to monitor the number of manatees in a given waterway in C#
Answer:
u can use water for washing of hands and also drinking of water
8.6 Code Practice: Question 2
Instructions
Copy and paste your code from the previous code practice. If you did not successfully complete it yet, please do that first before
completing this code practice.
ate
After your program has prompted the user for how many values should be in the array, generated those values, and printed the
whole list, create and call a new function named sumarray. In this method, accept the array as the parameter. Inside, you should
sum together all values and then return that value back to the original method call. Finally, print that sum of values.
Sample Run
How many values to add to the array:
8
[17, 99, 54, 88, 55, 47, 11, 97]
Total 468
Answer:
In Java:
import java.util.*;
public class Main{
public static int sumArray(int []arr, int lent){
int sum = 0;
for(int i = 0; i<lent; i++){
sum+=arr[i];
}
return sum; }
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
System.out.print("Number of elements: ");
int lent = input.nextInt();
Random rd = new Random();
int [] intArray = new int[lent];
for(int i = 0; i< lent; i++){
intArray[i] = rd.nextInt(100)+1;
}
System.out.print("Total: "+sumArray(intArray,lent));
}
}
Explanation:
No previous code was provided; So, I had to write the program from scratch (in Java)
Also, the elements of the array were generated randomly
See attachment for program source file where I used comments for explanatory purpose.
Consider an allocator on a 32-bit system that uses an implicit free list. Each memory block, either allocated or free, has a size that is a multiple of four bytes. Thus, only the 30 higher order bits in the header and footer are needed to record block size, which includes the header and footer and is represented in units of bytes. The usage of the remaining 2 lower order bits is as follows: bit 0 indicates the use of the current block: 1 for allocated, 0 for free. bit 1 indicates the use of the previous adjacent block: 1 for allocated, 0 for free Below is a helper routine defined to facilitate the implementation of free (void *P). Which option, if any, will complete the routine so that it performs the function properly?\
Note: "size" in the answers indicates the size of the entire block /* given a pointer to a valid block header or footer, returns the size of the block */
int size(void *hp)
{
int result;
__________;
return result;
}
1. result=(*(int *)hp)&(-7)
2. result=((*(char *)hp)&(-5))<<2
3. result=(*(int *)hp)&(-3)
4. result=(*hp)&(-7)
5. None of these
Answer:
result=(*(int *)hp)&(-3)
Explanation:
The result above would release the pointer or address of the integer data type with 3 memory blocks needed by the allocator.
Write a function called combineArrays(int[], int, int[], int) that accepts in two arrays of ints and the size of the arrays as parameters. The function should then create a new array that is the size of both array combined. The function should copy the elements from the first array into the new array, followed by all the elements from the second array. So if the initial array is {1,2,3,4,5} and the second arrray is {10,20,30} then the new array will be size 8 and contain {1,2,3,4,5,10,20,30}. Then in your main(), create two arrays of different sizes, each at least size 10, and fill them with integers's. Run the arrays through your function created above and print out all three arrays to demonstrate that the concatenation method worked. Then run your method again using the same two original arrays, but in the other order. So if the first time you did array a then array b, the second time do array b then array a. Make sure to delete the new arrays before closing your program.
Answer:
The function in C++ is as follows:
void combineArrays(int arr1[], int len1, int arr2[], int len2){
int* arr = new int[len1+len2];
for(int i =0;i<len1;i++){
arr[i] = arr1[i]; }
for(int i =0;i<len2;i++){
arr[len1+i] = arr2[i]; }
for(int i=0;i<len1+len2;i++){
cout<<arr[i]<<" "; }
delete[] arr; }
Explanation:
This defines the function
void combineArrays(int arr1[], int len1, int arr2[], int len2){
This creates a new array
int* arr = new int[len1+len2];
This iterates through the first array.
for(int i =0;i<len1;i++){
The elements of the first array is entered into the new array
arr[i] = arr1[i]; }
This iterates through the second array.
for(int i =0;i<len2;i++){
The elements of the second array is entered into the new array
arr[len1+i] = arr2[i]; }
This iterates through the new array
for(int i=0;i<len1+len2;i++){
This prints the new array
cout<<arr[i]<<" "; }
This deletes the new array
delete[] arr; }
See attachment for complete program which includes the main
What information is required for a complete citation of a website source?
the title, volume number, and page numbers
the responsible person or organization and the website URL
the responsible person or organization, date accessed, and URL
the responsible person or organization and the date accessed
Answer:
I believe that the answer is C.
Explanation:
Answer:
think the answer is:
the responsible person or organization, date accessed, and URL
Explanation:
have a nice day
Write a program that asks the user to guess the next roll of a six-sided die. Each guess costs $ 1. If they guess correctly, they get $ 100.00. The player will start out with a $10.00 bank. Each time he (or she) guesses incorrectly you will subtract $1.00 from their bank. Each time they guess correctly, you add $10.00 to their bank. Print the total winnings or losses at the end of the game. You can simulate the toss of the dice using the RandomRange function (Don't forget to Randomize).
Answer in python:
import random
money = 10
winnings = 0
def main():
global winnings
global money
dice_num = random.randrange(1,6)
input_str = "Guess the dice number. You have $"+str(money)+" > "
input_num = input(input_str)
if int(input_num) == dice_num:
money = money + 10
winnings = winnings + 10
else:
money = money - 1
if money < 0:
print("You lose. You won "+str(winnings)+" times. Press enter to try again")
useless_variable = input()
main()
else:
main()
main()
Explanation:
Which is the best example of a digital leader sharing information?
Nina creates a budget spreadsheet and e-mails it to her boss before a meeting.
Erick conducts a survey on a street corner and copies his notes for his boss.
Rehana buys a newspaper ad and asks people to text ideas to her boss.
Fernando draws a blueprint at a meeting and e-mails his boss about it.
Answer: Nina creates a budget spreadsheet and e-mails it to her boss before a meeting.
Explanation:
It's right
Answer:
a
Explanation:
Which statement best describes the purpose of the Insert Function dialog box?
O It is used to search for specific functions using keywords and descriptions
It is used to insert a specific function by selecting it from the Insert Function list.
O It is used to display information related to the arguments that are used in a function
O It is used to put all types of Excel functions in alphabetical order.
Answer: b) it is used to insert a specific function by selecting it from the insert function list.
If a referenced memory word is in the cache, 20 ns are required to access it. If it is in main memory but not in the cache, 60 ns are needed to load it into the cache (this includes the time to originally check the cache), and then the reference is started again. If the word is not in main memory, 12 ms are required to fetch the word from disk, followed by 60 ns to copy it to the cache, and then the reference is started again. The cache hit ratio is 0.9 and the main memory hit ratio is 0.6.
What is the average time in ns required to access a referenced word on this system?
Answer:
480,026ns
Explanation:
the time it would take to access word = 20ns
time coipied in cache = 60 ns
20ns +60ns = 80ns
this is the time to acess from main memory
it takes 12ms to move memory word to main memory
1ms is 1000000
so 12ms = 12000000ns
1200000+20+60
= 12000080 nanoseconds
hit ratio = 0.9(cache)
hit ratio = 0.6 (main memory)
miss rate = 0.1
probability of word being in main memory
= 0.1 * 0.6
= 0.06
the hit ratio of disk = 1
prob = 0.1 * 0.4 * 1 = 0.04
.1 = miss rate of cache
.4 = miss rate of main memory
1 = hit ratio of hard disk
In cache with prob 0.9, total ns = 20
in main memory prob = 0.60, total ns = 80
in hard disk prob = 0.04, total ns = 12000080ns
average time = [pr(cache)*access time] + [pr(main memory)*access time] + [pr(hard disk)*access time]
= (0.9*20)+(0.06*80)+(0.04*12000080)
= 18+4.8+480,003.2
= 480,026 ns
Describe how to add images and shapes to a PowerPoint
presentation
In this assignment, you will describe how to add images and shapes to a PowerPoint presentation
For shapes:
Step .1: Open Power point
Step.2: Go to insert
Step.3: Click at shapes
Step.4: Pick your shape
For image :
If you are trying for an random image not saved at your pc
Step.1: Open Power point
Step.2: Go to insert
Step.3: Click at clip art
Step.4: Type the name of the picture you are searching for.
"OR"
If you are trying for an image you have in your pc
Step.1: Open PowerPoint
Step.2: Go to insert
Step.3: Click photo album
Step.4: Choose the picture
Hope it helped you
THANKYOU !
Which of the following can technology NOT do?
O Make our life problem free
O Provide us with comforts and conveniences
Help make our lives more comfortable
O Give us directions to a destination
make our life problem free
because technology has its negative effects on humanity like Social media and screen time can be bad for mental health
And technology is leading us to sedentary lifestyles
Technology is addictive
Insomnia can be another side effect of digital devices
Instant access to information makes us less self-sufficient
Young people are losing the ability to interact face-to-face
Social media and screen time can be bad for mental health
Young people are losing the ability to interact face-to-face
Relationships can be harmed by too much tech use
ROCK-PAPER-SCISSORS Write a program that plays the popular game of rock-paper-scissors. (A rock breaks scissors, paper covers rock, and scissors cut paper). The program has two players and prompts the users to enter rock, paper or scissors. Your program does not have to produce any color. The color is there just to show you what your program should be inputting and outputting. The writing in blue represents output and writing in red represents input. Here are some sample runs:
Answer:
In Python
print("Instruction: 1. Rock, 2. Paper or 3. Scissors: ")
p1 = int(input("Player 1: "))
p2 = int(input("Player 2: "))
if p1 == p2:
print("Tie")
else:
if p1 == 1: # Rock
if p2 == 2: #Paper
print("P2 wins! Paper covers Rock")
else: #Scissors
print("P1 wins! Rock smashes Scissors")
elif p1 == 2: #Paper
if p2 == 1: #Rock
print("P1 wins! Paper covers Rock")
else: #Scissors
print("P2 wins! Scissors cuts Paper")
elif p1 == 3: #Scissors
if p2 == 1: #Rock
print("P2 wins! Rock smashes Scissors")
else: #Paper
print("P1 wins! Scissors cuts Paper")
Explanation:
This prints the game instruction
print("Instruction: 1. Rock, 2. Paper or 3. Scissors: ")
The next two lines get input from the user
p1 = int(input("Player 1: "))
p2 = int(input("Player 2: "))
If both input are the same, then there is a tie
if p1 == p2:
print("Tie")
If otherwise
else:
The following is executed if P1 selects rock
if p1 == 1: # Rock
If P2 selects paper, then P2 wins
if p2 == 2: #Paper
print("P2 wins! Paper covers Rock")
If P2 selects scissors, then P1 wins
else: #Scissors
print("P1 wins! Rock smashes Scissors")
The following is executed if P1 selects paper
elif p1 == 2: #Paper
If P2 selects rock, then P1 wins
if p2 == 1: #Rock
print("P1 wins! Paper covers Rock")
If P2 selects scissors, then P2 wins
else: #Scissors
print("P2 wins! Scissors cuts Paper")
The following is executed if P1 selects scissors
elif p1 == 3: #Scissors
If P2 selects rock, then P2 wins
if p2 == 1: #Rock
print("P2 wins! Rock smashes Scissors")
If P2 selects paper, then P1 wins
else: #Paper
print("P1 wins! Scissors cuts Paper")
Which of these describes a database? Check all of the boxes that apply.
is used to perform complex calculations
is a dynamic tool for analyzing related information
is a tool for analyzing raw data
is a way to store, retrieve, manage, and analyze data
Answer:
The answer is 2,3,4 and the next one is 1,2 and 4
Explanation:
Just did it
EDG 2021
Answer:
first part is 2,3,4
second part is 2,4,5
Explanation: