Create a program that asks the user for the number of male and female students registered in a class/section. The program should display the total number of students and the percentage of male and female in the class.
Sample output
Enter the number of male: 36
Enter the number of female: 17
Number of students = 53
Male = 67.92%
Female = 32.08%
Write SQL queries to answer the following questions: (15 points) a. Which students have an ID number that is less than 50000
Answer:
SELECT * FROM STUDENTS WHERE ID < 50000
Explanation:
If we assume the table is called STUDENTS, then we want to select everything (represented by *), where (like an if statement) the ID (assuming the name of the column) is less than 50000.
Keisha needs to connect to the Internet, but no wireless networks or Wi-Fi hotspots are available. What can she use instead to make the connection
There are several ways of connecting to the internet aside the use of WiFi Hotspot. Hence, Keisha could make use of Bluetooth or a modem.
Bluetooth tethering allows users to establish internet connection between smart devices such as a smartphone and a computer by using the Bluetooth functionality of the devices. Similarly, modems can be used to establish a connection by inserting a data Sim into the USB modem and Inputting it into the port of the computer.Learn more : https://brainly.com/question/25698028
camera mount that is worn over the shoulders of a camera operator. What is it called?
The capability of moving a completed programming solution easily from one type of computer to another is known as ________. Group of answer choices
Answer: Portability
Explanation: I hope it helps you!
HELP ME ILL GIVE BRAINLY Input 50 numbers and then output the average of the negative numbers only. Write in pseudocode!
Answer:
The explanation is for 10 inputs though. You'd have to follow these steps to find input 50 numbers.
Explanation:
This is how I wrote it in the Plain English programming language which looks like pseudo-code but compiles and runs (to save you all the rest of the steps):
To run:
Start up.
Write "Enter 10 numbers separated by spaces: " on the console.
Read a reply from the console.
Loop.
If the reply is blank, break.
Get a number from the reply.
Add 1 to a count.
Add the number to a total.
Repeat.
Write "The total is: " then the total on the console.
Put the total divided by the count into an average.
Write "The average is: " then the average on the console.
Refresh the screen.
Wait for the escape key.
Shut down.
Write a program, using case statements, that mimics a calculator. The program should take as input two integers and the operation to be performed. It should then output the numbers, the operator, and the result. For division, of the denominator is zero, output an appropriate message.
Answer:#include<iostream>
using namespace std;
int main() {
int var1, var2;
char operation;
cout << "Enter the first number : ";
cin >> var1;
cout << endl;
cout <<"Enter the operation to be perfomed : ";
cin >> operation;
cout << endl;
cout << "Enter the second nuber : ";
cin >> var2;
cout << endl;
bool right_input = false;
if (operation == '+') {
cout << var1 << " " << operation << " " << var2 << " = " << (var1 + var2);
right_input = true;
}
if (operation == '-') {
cout << var1 << " " << operation << " " << var2 << " = " << (var1 - var2);
right_input = true;
}
if (operation == '*') {
cout << var1 << " " << operation << " " << var2 << " = " << (var1 * var2);
right_input = true;
}
if (operation == '/' && var2 != 0) {
cout << var1 << " " << operation << " " << var2 << " = " << (var1 - var2);
right_input = true;
}
if (operation == '/' && var2 == 0) {
cout << "Error. Division by zero.";
right_input = true;
}
if (!right_input) {
cout << var1 << " " << operation << " " << var2 << " = " << "Error;";
cout << "Invalid Operation!";
}
cout << endl;
system("pause");
return 0;
}
Explanation:
Discuss some of the reasons you feel that people have for either liking or disliking Excel
Kiểm tra cặp số hứa hôn
Đầu vào : số nguyên n,m
Đầu ra : in ra n,m là cặp số hứa hôn và in ra không là số hứa hôn nếu ngược lại
Answer:
Sorry im not Vietnam so please explain it in English or ask someone who can speak Vietnam to help you
In order to send and receive packets in the Internet, hosts require an IP address. What are the 2 ways a host can obtain an IP address
Answer:
Explanation:
An IP address is a 32-bit number. It uniquely identifies a host (computer or other device, such as a printer or router) on a TCP/IP network.
IP addresses are normally expressed in dotted-decimal format, with four numbers separated by periods, such as 192.168.123.132. To understand how subnet masks are used to distinguish between hosts, networks, and subnetworks, examine an IP address in binary notation.
For example, the dotted-decimal IP address 192.168.123.132 is (in binary notation) the 32-bit number 110000000101000111101110000100. This number may be hard to make sense of, so divide it into four parts of eight binary digits.
These 8-bit sections are known as octets. The example IP address, then, becomes 11000000.10101000.01111011.10000100. This number only makes a little more sense, so for most uses, convert the binary address into dotted-decimal format (192.168.123.132). The decimal numbers separated by periods are the octets converted from binary to decimal notation.
For a TCP/IP wide area network (WAN) to work efficiently as a collection of networks, the routers that pass packets of data between networks don't know the exact location of a host for which a packet of information is destined. Routers only know what network the host is a member of and use information stored in their route table to determine how to get the packet to the destination host's network. After the packet is delivered to the destination's network, the packet is delivered to the appropriate host.
For this process to work, an IP address has two parts. The first part of an IP address is used as a network address, the last part as a host address. If you take the example 192.168.123.132 and divide it into these two parts, you get 192.168.123. Network .132 Host or 192.168.123.0 - network address. 0.0.0.132 - host address.
The second item, which is required for TCP/IP to work, is the subnet mask. The subnet mask is used by the TCP/IP protocol to determine whether a host is on the local subnet or on a remote network.
In TCP/IP, the parts of the IP address that are used as the network and host addresses aren't fixed. Unless you have more information, the network and host addresses above can't be determined. This information is supplied in another 32-bit number called a subnet mask. The subnet mask is 255.255.255.0 in this example. It isn't obvious what this number means unless you know 255 in binary notation equals 11111111. So, the subnet mask is 11111111.11111111.11111111.00000000.
Lining up the IP address and the subnet mask together, the network, and host portions of the address can be separated:
11000000.10101000.01111011.10000100 - IP address (192.168.123.132)
11111111.11111111.11111111.00000000 - Subnet mask (255.255.255.0)
The first 24 bits (the number of ones in the subnet mask) are identified as the network address. The last 8 bits (the number of remaining zeros in the subnet mask) are identified as the host address. It gives you the following addresses:
11000000.10101000.01111011.00000000 - Network address (192.168.123.0)
00000000.00000000.00000000.10000100 - Host address (000.000.000.132)
So now you know, for this example using a 255.255.255.0 subnet mask, that the network ID is 192.168.123.0, and the host address is 0.0.0.132. When a packet arrives on the 192.168.123.0 subnet (from the local subnet or a remote network), and it has a destination address of 192.168.123.132, your computer will receive it from the network and process it.
Almost all decimal subnet masks convert to binary numbers that are all ones on the left and all zeros on the right. Some other common subnet masks are:
Decimal Binary 255.255.255.192 1111111.11111111.1111111.11000000 255.255.255.224 1111111.11111111.1111111.11100000
Internet RFC 1878 (available from InterNIC-Public Information Regarding Internet Domain Name Registration Services) describes the valid subnets and subnet masks that can be used on TCP/IP networks.
Hope this helps!
If there are over 1,000 websites about a certain topic, the information is reliable. A. True B. False
Answer:
If they all have the same answer it is true, but if they are all different check with trusted sources
Explanation:
Choose one piece of information your class can know, but you don’t want to share on your website. Why is it okay for your classmates and teacher to know it, but not to post it publicly?
Answer:
because other people you dont know can see it and it can sometimes not be good
Explanation:
What is primary difference between the header section of a document and the body
Answer:
A HTML file has headers and a "body" (payload) — just like a HTTP request. The <body> encapsulates the contents of the document, while the <head> part contains meta elements, i.e., information about the contents. This is (typically) title, encoding, author, styling etc.
Explanation:
CAN I GET BRAINLIEST
discuss with illustrations how to implement a simple home network
Answer:
How to Set Up a Home Network- Beginners Guide
Today almost every home and small office has a local network, and an Internet connection.
The home network or small area network enables multiple devices e.g. PCs,tablets etc to connect to each other, and also to connect to the internet.
In this tutorial you will learn how you to build and setup a home or small area network and connect it to the Internet.
Explanation:
Choosing a Wired or Wireless Network
Do You Build a wired or Wireless Network? which is best?
Early (pre 2008) home networks were predominately wired networks.
Wired networks use Ethernet over UTP cable and tend to be faster than wireless networks, which is an important consideration if you are a gamer. The simple wired home network diagram below shows a minimum setup with a switch and broadband router.

Wired Network Advantages
Fast typically 100 Mbps to 10 Gbps
Secure and reliable.
Wired Network Dis-Advantages
Doesn’t work with devices that don’t have an Ethernet port e.g. tablets and smart phones.
Not so easy and fast to setup as it requires running cables. However Homeplug or powerline adapters can be used instead.
Not so easy for visitors and mobile devices (laptops) to connect to.
Main Uses
It Is best used for network backbone i.e. connecting between router,network switches and wireless access points on different levels (floors).
g The reduced ISA consists of four instructions: What are those instructions and what does each instruction do
The ISA is run by some set of instructions. This instructions are;
1. Arithmetic: This Instructions perform various Arithmetic functions
2. Logical: This instruction often carryout Logical operations on one or more operands.
3. Data transfer: This handles the transfer of instructions from memory to the processor registers and then backward process again.
4. Flow control: These instructions helps in breaking the sequential flow of instructions and jumping to instructions at different locations.
Instruction set is simply known to be a full combination /number of instructions that are understood by a CPU.
It is know as a machine code that is often written in binary, and shown by assembly language.
Learn more from
https://brainly.com/question/22740965
Turtle graphics windows do not automatically expand in size. What do you suppose happens when a Turtle object attempts to move beyond a window boundary
When a turtle object attempts to move beyond a window boundary, the turtle object stops because it cannot move outside the window boundary.
The turtle graphics window is simply a graphics window that is used as a playground when drawing turtles.
A turtle object is always in the turtle graphics window.
This in other words mean that, the turtle object cannot exceed the boundaries of the turtle graphics window
An attempt to move the turtle object outside its window will stop the turtle object;
This is so because the turtle object is always in the turtle graphic window, and it cannot move beyond it.
Read more about turtle graphics window at:
https://brainly.com/question/3070883
Which validation method would you use for first name on a data form
Two categories of estimation mode
Answer:
The Standard Parametric Mode (SPM) and the Robust Parametric Mode (RPM) are two categories of estimation mode. These approaches turn the data distribution into an approximation normal distribution and then estimate the mode by using the probability density function of the estimated distribution as a guide.
Explanation:
Hope it helps:)
Big Chungus is god. prove me wrong.
Answer:
who is Big chungus???
Believe in Lord Buddha !
Design a chip that can complete four bit binary addition, subtraction, and, or operation. Complete the Verilog program and show simulation on Modelsim software , write the program list and screenshot of simulation results.
Answer:
How am I supposed to design a chip here?
Explanation:
Where is RAM installed?
Answer: RAM is located in the central processing unit or CPU which is also called a processor. This is located inside the computer case on the motherboard.
Would appreciate brainly <3
a leading global vendor Of computer software hardware for computer mobile and gaming systems and cloud services it's corporate headquarters is located in Redmond Washington and it has offices in more then 60 countries
Which One Is It
A) Apple
B) Microsoft
C) IBM
D) Global Impact
Answer:
B
Explanation:
They have offices in Redmond Washington
Given a variable that contains mixed collection types, update the provided function to display the first inital and last name of the instructor:
Update the function to accept a list and the name of the instructor you wish to find.
Update the function to reformat the name of the instructor and return it back to the calling program.
If the instructors name is entered as John Smith then the function should return back J. Smith
If the instructors name is entered as Tracy Anne Rios then the function should return back T. Rios
If the instructors name is entered as Jackson then the function should return back Jackson
Add in any exception handling for the following scenarios:
Exceptions related to accessing the list or dictionary should output the message: Instructor not found.
All other exceptions should output the message: An error has occurred.
Test to ensure the program passes the provided test cases found in the TESTS.md file
Hints
You may only use a try/except block, no if statements
Figure out how to use only one return in the method
Tests.md:
Input
Amy Williams
Output
A. Williams
Case 2
Input
Sarah Jane Smith
Output
S. Smith
Case 3
Input
Thomas Tom
Output
Instructor not found.
What i have so far
#!/usr/bin/env python3
# Discussion 10.2: Collection Type Exceptions
# Task 1. Modify Functions for Names
def get_initial_name(initials, name):
list = instructor_name.split(' ') # this function returns a list
try:
initial = list[0][0]
name = list[-1]
f_name = initial + '. ' + name
except:
return 'Instructor not found'
# DO NOT MODIFY BELOW
if __name__ == "__main__":
courses = [
{ "name": "Amy Andrews", "courseName": "Math I", "units": 3 },
{ "name": "Bryan Bravo", "courseName": "English I", "units": 3},
{ "name": "Charles Chavez", "courseName": "Physics I", "units": 3 },
{ "name": "Daniel Diaz", "courseName": "Chemistry I", "units": 3 },
{ "name": "Edgar Allen Elam", "courseName": "Math II", "units": 3 },
{ "name": "Felicia Farr", "courseName": "Music I", "units": 3 },
{ "name": "GarthGarcia", "courseName": "Physical Education I", "units": 3 }
]
# Take Input
instructor_name = input("> ")
# Output the Result
print(get_initial_name(courses, instructor_name))
Should people who are able to break a hashing algorithm be allowed to post their findings on the Internet?
Answer:
Cyber security is a very important aspect of digital world. Without cyber security our sensitive data is at risk. Its very important that companies keep our system safe by spotting any security vunerabilities. SO ACORDING TO ME I DO NOT THINK THEY SHOULD BE ABLE TO POST THEIR FINDINGS ON THE INTERNET As it may contain viruses
Identify the false statement. a. When you use inheritance to create a class, you save time because you can copy and paste fields, properties, and methods that have already been created for the original class. b. When you use inheritance to create a class, you reduce the chance of errors because the original class's properties and methods have already been used and tested. c. When you use inheritance to create a class, you make it easier for anyone who has used the original class to understand the new class because such users can concentrate on the new features.
Uploading this answer for points please do not accept this answer thank you.
1. Which of the following options can you use to format the contents of a cell?
Select all that apply.
a. Font Size
b. Sort
C. Italic
d. Underline
Answer:
a
Explanation:
The correct options are A, C, and D. Front Size, Italic, and Underline are the options can you use to format the contents of a cell.
You can also use the keyboard shortcuts Ctrl+B, Ctrl+I, and Ctrl+U to bold, italicize and underline a selection of text.
What is the use of format cells?You can only alter how cell data appears in the spreadsheet by using cell formats. It's critical to remember that the data's value is unaffected; only how the data is presented has changed. The formatting options include options for fractions, dates, timings, scientific alternatives, and more.
Regular, Bold, Italic and Bold Italic are the four different sorts of font styles. Selected cells or ranges in a worksheet can have their font style changed. Changing the typeface involves the following steps: Pick the cell or cells that need to be changed. The text you want to format should be selected. Go to the Home tab and select Bold, Italic, or Underline. Ctrl + B will bold text. Ctrl + I will italicize text.
Thus, the correct options are A, C, and D.
Learn more about Format cell here:
https://brainly.com/question/24139670
#SPJ2
please help!!!! what is the meaning of M,I,C,R,O,S,O,F,T word?
M-
I-
C-
R-
O-
S-
O-
F-
T-
Answer:
Microsoft (the word being a portmanteau of "microcomputer software") was founded by Bill Gates and Paul Allen on April 4, 1975, to develop and sell BASIC interpreters for the Altair 8800. It rose to dominate the personal computer operating system market with MS-DOS in the mid-1980s, followed by Microsoft Windows
Explanation:
if you need full answer this is it
How does tracking changes relate to sharing a workbook in Excel?
Answer:When you highlight changes as you work, Excel outlines any revisions (such as changes, insertions, and deletions) with a highlighting color. On the Review tab, click Track Changes, and then click Highlight Changes. Select the Track changes while editing. This also shares your workbook check box.
Explanation:
A workbook in excel is a file that contains one or more worksheets to assist you with data organization.
What is a workbook?A workbook in excel is a file that contains one or more worksheets to assist you with data organization. A blank workbook or a template can be used to build a new workbook.
The Advanced tab of the Share Workbook dialogue box gives further choices for changing how Excel records change. For example, you may choose the "Automatically Every" radio option and enter a value in the "Minutes" text box. If you enter 10, Excel will store changes made by users every 10 minutes.
When you highlight changes while you work, Excel highlights any modifications (such as updates, insertions, and deletions) with a highlighting colour. Track Changes and Highlight Changes may be found on the Review tab. Select the Track changes while editing.
Learn more about Workbook:
https://brainly.com/question/10321509
#SPJ2
What is the full form of MPEG? The full form of MPEG is blank.
Answer:
Moving Picture Experts Group
Explanation:
Answer:
The full form of MPEG is Moving Picture Experts Group.
Explanation:
MPEG is a group of working experts to determine video or audio encoding and transmitting specifications/standards.
Create a procedure named STATUS_SHIP_SP that allows an employee in the Brewbeans' Shipping Department to update an order status to add shipping information. The BB_BASKETSTATUS table lists events for each order so that a shopper can see the status, date, and comments as each stage of the order process is finished. The IDSTAGE column of the BB_BASKETSTATUS table identifies each stage; the value 3 in this column indicates that an order has been shipped. The procedure should allow adding a row with an IDSTAGE of 3, date shipped, tracking number and shipper. The BB_STATUS_SEQ sequence is used to provide a value for the primary key column. Test the procedure with the following information: o Basket # = 3 o Date shipped = 20-FEB-12 o Shipper = UPS o Tracking # = ZW2384YXK4957
Answer:
c
Explanation:
A procedure named STATUS_SHIP_SP that allows an employee in the Brewbeans' Shipping Department to update an order status to add shipping information is in the explanation part below.
A representative from Brewbeans' shipping division can change an order's status and add shipment details by using the PL/SQL method STATUS_SHIP_SP, as shown in the following example:
CREATE OR REPLACE PROCEDURE STATUS_SHIP_SP (
p_basket_number IN NUMBER,
p_date_shipped IN DATE,
p_shipper IN VARCHAR2,
p_tracking_number IN VARCHAR2
)
IS
v_status_id NUMBER;
BEGIN
-- Get the next value from the BB_STATUS_SEQ sequence
SELECT BB_STATUS_SEQ.NEXTVAL INTO v_status_id FROM DUAL;
-- Insert a new row into the BB_BASKETSTATUS table
INSERT INTO BB_BASKETSTATUS (STATUSID, BASKETNO, IDSTAGE, STATUSDATE, COMMENTS)
VALUES (v_status_id, p_basket_number, 3, p_date_shipped, 'Shipped: ' || p_shipper || ', Tracking Number: ' || p_tracking_number);
-- Commit the transaction
COMMIT;
-- Display a success message
DBMS_OUTPUT.PUT_LINE('Order status updated. Shipment information added.');
EXCEPTION
WHEN OTHERS THEN
-- Display an error message
DBMS_OUTPUT.PUT_LINE('Error: Unable to update order status.');
-- Rollback the transaction
ROLLBACK;
END;
/
Thus, by doing this, the procedure will be called with the specified parameters, and if successful, a new entry with the proper shipping information for basket number 3 will be added to the BB_BASKETSTATUS database.
For more details regarding SQL, visit:
https://brainly.com/question/34315524
#SPJ6