Which color reflects more light red blue black or white
6. Write pseudo code that will perform the following. a) Read in 5 separate numbers. b) Calculate the average of the five numbers. c) Find the smallest (minimum) and largest (maximum) of the five entered numbers. d) Write out the results found from steps b and c with a message describing what they are.
Answer:
Pseudo CODE
a)
n= Input “Enter 5 integer value”
b)
sum=0.0
For loop with i ranging from 0 - 5
Inside loop sum=n[i]+sum
Outside loop avg= sum/5
Print avg
c)
small=n[0] # assume the first number in the list is smallest
large= n[0] # assume the first number in the list is largest
For loop with i ranging from 0 - 5
Inside loop if n[i]<small #if any another number is smaller than small(variable)
Inside if Then small=n[i]
Inside loop if n[i]>large # if any another number is larger than large(variable)
Inside if then large=n[i]
Print small
Print large
d)
print avg
print small
print large
Pseudocodes are used as a prototype of an actual program.
The pseudocode is as follows:
input n1, n2, n3, n4, n5
avg = (n1 + n2 + n3 + n4 + n5)/5
small = n1
large = n1
for i = 2 to 5:
if n1 > ni then:
small = ni
if n1 < ni: then:
large = ni
print("Average:", avg)
print("Smallest:", small)
print("Largest:", large)
The pseudocode starts by getting inputs for the 5 valuesNext, the average of the 5 values is calculatedThe fourth line iterates through the numbersWithin the iteration, there are 2 conditional statements that calculate the smallest and the largest valuesThe last three lines print the average, the smallest and the largest inputRead more about pseudocodes at:
https://brainly.com/question/24735155
Explain why decomposition will be used in creating the algorithm for the game including two dice.
Why is it unlawful for an employer to refuse to employ someone based solely on their gender without evidence that such a characteristic is necessary for successful completion of the job? Answer by writing a paragraph of two to three sentences.
Employing someone based on gender is unlawful because, it is the skill which matters to get the required job done and skills are not based on gender. There is no evidence that this particular gender cannot do this job and this particular gender can do. Everyone who posses the required skillsets are eligible to get employed irrespective of gender.
===============================================
I tried my best
What is meant by computer generation?
Answer:
The development of computer took place into 5 phases which is known as generation of computer.
Explanation:
From first generation computer till now, development of computer took place in 5 distinct which is also know as generation of computer.
What is the Internet address of the speech you listed to?
Answer:
To get the address of a website page, check the URL address at the top of the browser window.
Explanation:
The internet is global interconnection of multiple networks. All devices in the network must have a web address to communicate in the network. The IP version 4 and 6 are two concepts of addressing devices on the internet. The DHCP and DNS internet protocols are used to assign address and map addresses to string-like URLs respectively.
People convicted of cyberbullying in most states
face no punishment for their actions.
face varying degrees of punishment.
are taught how to use technology positively.
are forced to do community service.
Answer: The Answer is B. face varying degrees of punishment.
Hope this helps! ^^ (also i know this is the right answer because i got it correct)
Answer:
b
Explanation: the punishment depends on the severeness , so we dont know the exact punishment
Which device listed below is NOT a storage device?
ROM
RAM
SSD
Removable FLASH drive
Which of these is an example of gathering secondary data?
searching for a chart
drafting a map
collecting soil samples
interviewing experts
Answer:
searching for a chart
Explanation:
:)
Answer:a
Explanation:
took the quiz
Create a Boolean function odd_number_digits(n) that returns True when a positive integer has an odd number of digits. (You may assume that I will not use a number greater than 1,000,000.) Then, use it to make a
function sum_odd_digits(n) that sums all the numbers from 0 to n that have an odd number of digits.
Answer:
Following are the code to this question:
import java.util.*;//import package for user input
public class Main//defining class main
{
public static boolean odd_number_digits(int n)//defining boolean method odd_number_digits
{
if(n>0 && n%2!=0)//defining if block that check value is positive and odd number
{
return true;//return value true
}
else//defining else block
{
return false;//return false value
}
}
public static void sum_odd_digits(int n)//defining a method sum_odd_digits
{
int sum=0,i;//defining integer variable
for(i=0;i<=n;i++)//defining for loop
{
if(i%2!=0)//defining if block for odd number
{
sum=sum+i;//add odd number
}
}
System.out.print(sum);//use print method to print sum value
}
public static void main(String[] args) //defining main method
{
Scanner ox=new Scanner(System.in);//creating Scanner object
int n= ox.nextInt();//defining integer variable for input value
System.out.print(odd_number_digits(n)+ "\n");//use print method to call method
System.out.println("Sum of odd numbers: ");//print message
sum_odd_digits(n);//calling method
}
}
Output:
please find the attachment.
Explanation:
In the above code, two methods "odd_number_digits and sum_odd_digits" are defined in which the first method return type is boolean because it will true or false value, and the second method returns the sum of odd numbers.
In the "odd_number_digits" method, an integer variable passes as an argument and inside the method, if block is used that check value is a positive and odd number then it will return a true value.
In the "sum_odd_digits" method, it accepts an integer parameter "n", and define integer variable "sum" inside the method, which uses the for loop, inside the loop if block is used that counts odd numbers and adds its in sum and print its value.
In an inspection, usually the first thing an inspector will want to see is:
Answer:
Your records and paperwork
What are language standards? At this point in your study of programming, what do they mean to
you?
How does the new digital image compare to the one from Challenge A? What effect did taking a larger number of samples have on the image?
Answer:
their is no image
Explanation:
Sorry if this is not related.
What is the best game programming language to learn?
19 POINTS! What does the icon for changing the color of a cell or range look like? (Excel)
a pencil
the letter A
a paint bucket
a paintbrush
Answer:
Paintbucket
Explanation:
I got it right
Answer:
A Paint Bucket
Explanation:
Choose the two statements that best describe the relationship between HTTP and the World Wide Web
Answer:
(I) and (III) statements that best describe the relationship between HTTP and the World Wide Web.
Explanation:
Given that,
The following statements that is describe the relationship between HTTP and the World Wide Web
(I). HTTP and WWW are used in website.
(II). World Wide Web are not interlinked by hypertext.
(III). WWW is the system of connected hypertext documents that can be viewed on web browsers.
We know that,
HTTP :
The full form of HTTP is Hypertext Transfer Protocol . A protocol which permits the getting of plans it is called HTTP.
For example : HTML documents.
It is an application of a protocol where any data exchange on the Web.
It is a protocol of online communication and data transfer one system to another system.
WWW :
The full form of WWW is world wide web. It is used as a web which is information systems where documents and other web methods are checked by uniform resource locators, which may be interlinked by hypertext.
It is a collection of webpages.
Hence, (I) and (III) statements that best describe the relationship between HTTP and the World Wide Web.
Interpersonal skills are extremely important in production management. true or false
Answer:
The statement is true. Interpersonal skills are extremely important in production management.
Explanation:
Every manager of any type of sector within a company, be it production, communications, human resources, etc., must have within their abilities those of managing interpersonal relationships with their employees and their superiors. This is so because when dealing with positions of importance within the chain of command, the constant exchange of directives, opinions and indications is necessary, with which it is very important to know how to communicate so as not to generate misunderstandings or discomfort at the time of giving such directives or indications.
Answer:
B: true
Explanation:
edg2021
The primary reason for networking standards is to: Group of answer choices simplify cost accounting for networks ensure that hardware and software produced by different vendors can work together make it more difficult to develop hardware and software that link different networks ensure that all network components of a particular network can be provided by only one vendor lock customers into buying network components from one vendor
Answer:
ensure that hardware and software produced by different vendors can work together.
Explanation:
Networking standards can be defined as a set of rules and requirements for data communication which are necessary for the inter-operation of network devices (hardware) and software application processes.
Hence, the primary reason for networking standards is to ensure that hardware and software produced by different vendors can work together. This ultimately implies that, networking standards makes it possible for various vendors and manufacturers to develop or produce networks that avail users the ability and opportunity to share informations and communicate with one another easily.
Some examples of organizations responsible for creating networking standards are;
1. International Telecommunications Union— Telecommunications (ITU-T).
2. International Organization for Standardization (ISO).
3. American National Standards Institute (ANSI).
Additionally, the generally accepted standards for networking are; HTML, HTTP, IMAP, POP, SNMP, SMTP, TCP etc.
which of the following is involved in ordering an outline. A.grouping B.merging C.organizing D.arranging
Answer:
The answer is A.GROUPING
HOPE THIS HELPS...
Answer:
nice name
Explanation:
A DBMS commonly receives data update requests from application programs.A. TrueB. False
Answer:
A. True
Explanation:
DBMS is an acronym for database management system and it 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.
Some examples of a database management system (DBMS) are RDBMS, Oracle, SQL server, PostgreSQL, dBASE, Clipper, MySQL, Microsoft Access, etc.
A DBMS commonly receives data update requests from application programs through the Open Database Connectivity ( ODBC ) driver in case of communication with other database management softwares.
Basically, when a database management system (DBMS) receives data update requests from application programs, it simply instructs the operating system installed on a server to provide the requested data or informations.
PowerPoint Presentation on What type of device will she use to display her presentation and explain it to the rest of the children in her class?
Input Device
Output Device
Processing Device
Storage Device
Answer:
Output device
Explanation:
The screen/projector puts out data (in this case the presentation) for viewers.
When following maintenance procedures, it is important to carefully read the procedures and to complete
each step before moving to the next step.
True or
False
You’ve been given a new cell phone with a 2 gigabyte data plan. You plan to use your phone for text messages, images, video, and music. Which of these categories are best compressed using lossless compression? Which of these categories are best compressed using lossy compression? Why?
Answer:
texts and music are best compressed using lossy compression and videos are best compressed using lossless compression
Explanation: texts and music are best compressed using lossy compression because there are not many details to leave out while pictures and videos are best compressed using lossless compression because they need to be in good quality
Lossy compression should be applied to text messages and music while lossless compression should be applied to images and videos
A lossy compression of a file implies that the quality of the file is reduced in order to get the file compressed.
This type of compression can be applied to text messages and music because a reduction in the size and quality will only reduce few details about the text messages and music file.
However, a lossless compression is such that even after the file size is reduced, the quality remains unchanged. This type of compression can be applied to video and pictures because even if the size is reduced, the quality of the files are not expected to change.
Hence;
Lossy compression should be applied to text messages and musicLossless compression should be applied to images and videosRead more about file compressions at:
https://brainly.com/question/13663721
The next four octal numbers after 36 is:________.
a. 36, 37, 40, 41
b. 37, 40, 41, 42
d. 36, 37, 38, 39
c. none of the Above
Answer: b. 37, 40, 41, 42
Explanation:
The next four octal numbers after 36 is 37, 40, 41, 42.
The octal numeral system, which is also referred to as "oct" for short, is simply base-8 number system.
It is a number system whereby only digits from 0 to 7 are used and there are no letters or numbers that are above 8 that are used.
In this case, after 36, the next number will be 37 after which we go to 40 as we can't write 38 in the octal system. Therefore, the next four octal numbers after 36 is 37, 40, 41, 42.
Choose all of the items that represent functions of the operating system kernel.
memory management
process management
user interface
system input and output (I/O) management
file creation and management
Answer:
A. memory management
B. process management
D. system input and output (I/O) management
E. file creation and management
Answer:
1,2,4,5
Explanation:
E2020 - Intro to Information Technology
10010010 + 01100010 =
The problem above is called an _________. It means that there are more ________ than can be stored in a byte, or eight bit number.
Answer:
1. binary number or 8 bit
2. bits
Explanation:
Help meeeee - Improved Pet App
Try out the improved version of the pet app that gives the user information about pet stores close by, which uses new sources of input. Determine the information that the app gets from each source of input.
User
Phone Sensors
Internet
Answer:
Did you do it? Can you give me the answers please♀️
Explanation:
Pleaseeeeeeeeeeeeeeeeeeeeeeeeeeeee
Property Tax
Madison County collects property taxes on the assessed value of property, which is 60 percent of its actual value. For example, if a house is valued at $158,000, its assessed value is $94,800. This is the amount the homeowner pays tax on. At last year's tax rate of $2.64 for each $100 of assessedvalue, the annual property tax for this house would be $2502.72.
Write a program that asks the user to input the actual value of a piece of property and the current tax rate for each $100 of assessed value. The program should then calculate and report how much annual property tax the homeowner will be charged for this property.
Answer:
sorry i really dont know
Explanation:
Answer:
Here is the C++ program
====================================================
#include <iostream>
#include <iomanip>
using namespace std;
int main(){
const double ASSESS_VALUE_WEIGHT = 0.60;
double houseValue, assessedValue, taxRate, tax;
cout<<"Enter the actual value of property: ";
cin >> houseValue;
cout<<"Enter the current tax rate for every $100: ";
cin >> taxRate;
assessedValue = houseValue * ASSESS_VALUE_WEIGHT;
tax = assessedValue * taxRate / 100;
cout<<setprecision(2)<<fixed<<showpoint;
cout<<"Annual property tax: $ " << tax;
return 0;
}
Explanation:
Assignment 1 silly sentences
Answer:
Sally sells sea shells by the sea shore
Explanation:
What is the difference between an IP address and an IP Packet?
Answer:
The IP address is a numerical number assigned to a device when connected to the internet for better identification. Whereas, the IP packet is the packet which contains the total information of the content that is carried over the network from host to destination and vice versa.
Explanation:
I hope this helped and plz give brainliest!