Answer:
#include<iostream>
using namespace std;
int main()
{
float feet, yard, inch, meter, cmeter;
cout<<"Enter number of feet: ";
cin>>feet;
yard = feet * 12/36;
inch = yard * 36;
cmeter = inch * 2.54;
meter = cmeter * 100;
cout<<feet<<" feet = "<< yard<<" yard = "<<inch<<" inches = "<<cmeter<<" cm = "<<meter<<" m";
return 0;
}
Explanation:
This line declares all necessary variables
float feet, yard, inch, meter, cmeter;
The line prompts user for number of feet
cout<<"Enter number of feet: ";
This line gets user input
cin>>feet;
The next 4 lines converts feet to yard, inches, centimeter and meter
yard = feet * 12/36;
inch = yard * 36;
cmeter = inch * 2.54;
meter = cmeter * 100;
This line prints converted units
cout<<feet<<" feet = "<< yard<<" yard = "<<inch<<" inches = "<<cmeter<<" cm = "<<meter<<" m";
What is the top digital certification earned by K-12 students?
A: Adobe Certified Associate Illustrator
B: Quickbooks Certified User
C: Microsoft Office Specialist
D: Adobe Certified Associate Photoshop
Answer: B
Explanation: Quickbooks Certified User is the most common of all listed. Adobe Certified Associate Illustrator is not so common, nor is Adobe Certified Associate Photoshop. Microsoft Office Specialist is for adults, not kids, the answer is B.
The top digital certification that is earned by K-12 students is Microsoft Office Specialist.
A Microsoft Office Specialist refers to an individual that prepares communication, presentations, reports, etc by operating Microsoft Excel, Word, PowerPoint.
It should be noted that K-12 students can become Microsoft Office Specialists when they pass a specific office program. The exam measures their competency in the use of Microsoft spreadsheet and word.
Read related link on:
https://brainly.com/question/24395331
P5.30 Having a secure password is a very important practice, when much of our information is stored online. Write a program that validates a new password, following these rules: •The password must be at least 8 characters long. •The password must have at least one uppercase and one lowercase letter. •The password must have at least one digit. Write a program that asks for a password, then asks again to confirm it. If the passwords don’t match or the rules are not fulfilled, prompt again. Your program should include a function that checks whether a password is valid.
Answer:
def check_password(password):
is_short = False
has_uppercase = False
has_lowercase = False
has_digit = False
if len(password) < 8:
is_short = True
for p in password:
if p.isupper():
has_uppercase = True
if p.islower():
has_lowercase = True
if p.isdigit():
has_digit = True
if is_short == False and has_uppercase and has_uppercase and has_digit:
return True
else:
return False
while True:
password = input("Enter your password: ")
password2 = input("Enter your password again: ")
if password == password2 and check_password(password):
break
Explanation:
Create a function named check_password that takes one parameter, password
Inside the function:
Initialize the is_short, has_uppercase, has_lowercase, and has_digit as False. These variables will be used to check each situation
Check the length of the password using len() method. If it is smaller than 8, set is_short as True
Create a for loop that iterates through password. Check each character. If a character is uppercase, set the has_uppercase as True (use isupper() function). If a character is lowercase, set the has_lowercase as True (use islower() function). If a character is a digit, set the has_digit as True (use isdigit() function).
When the loop is done, check the value of is_short, has_uppercase, has_lowercase, and has_digit. If is_short is False and other values are True, return True. Otherwise, return False
Create an indefinite while loop, that asks the user to enter password twice. Check the entered passwords. If they are equal and the check_password function returns True, stop the loop. This implies that both passwords are same and password is valid.
Which of these options is an example of a nested structure?A.
for loop
B.
while loop
C.
if-then-else loop
D.
if else inside a for loop
Answer:
D. if else inside a for loop
Explanation:
Write a Console Java program that asks the user to enter one sentence on the keyboard. Output on the console:
1) The number of words in the sentence
2) A count of each alphabet in the sentence in alphabetical order (ignore zero counts, ignore Upper/Lowercase difference. That is, count 'A' and 'a' as the same) . Assume that the user will enter a sentence with alphabets. No need to validate user entry. Example: Sentence: This is a great Fall Semester Number of words: 6 a-3, e-4. f-1, g-1, h-1, i-2, l-2, m-1, r-2 , s-4, t-3
Answer:
Here is the JAVA program:
import java.util.Scanner; //to accept input from user
public class Main{ //class name
public static void main(String[] args){ //start of main function
String sentence; //to store the input sentence
int i, length; //declare variables
int count[] = new int[256]; //creates a counter array
Scanner input = new Scanner(System.in); //creates Scanner class object to accept input from user
System.out.println("Enter a sentence: "); //prompts user to enter a sentence
sentence = input.nextLine(); //scans and reads the entire sentence string from user
String[] words = sentence.split("\\s+"); //splits the sentence into an array with separator as one or more white spaces and stores this array in words
System.out.println("Number of words: " + words.length); //display the number of words in sentence by using length which returns the length of the words array
sentence = sentence.toLowerCase(); // converts the sentence into lower case to ignore case sensitivity
sentence = sentence.replaceAll("\\s+",""); //removes the empty spaces from sentence
length = sentence.length(); //stores the length of the sentence string into length variable
for (i = 0; i < length; i++) { //iterates through the length of the sentence
count[(int) sentence.charAt(i)]++; } //counts occurrence of each alphabet in the sentence and stores it in count array
for (i = 0; i < 256; i++) { displays occurrence of alphabet in sentence
if (count[i] != 0) { //if count array is not empty
System.out.println((char) i + "-" + count[i]); }}}}
//prints each alphabet and its count
Explanation:
The program prompts the user to enter a sentence. Suppose the user enters "We won" so
sentence = "We won"
Now this sentence splits into an array with white space as separator and stored in words array. So words array has two words of sentence now i.e. "We" and "won"
Next words.length is used to return the length of words array. So length of words array is 2 hence
number of words = 2
Next the sentence is converted to lower case and spaces are removes so sentence becomes:
wewon
sentence.length() returns the length of sentence which is 5.
Next the for loop is used. At each iteration of this loop occurrence each character of sentence is added to the count[] array. charAt() is used to return a character at each index position of string. So the frequency of every character is counted and stored in count array.
Next is a for loop that is used to display each alphabet in the sentence along with its frequency in alphabetic order.
Hence the entire program gives the output:
Number of words: 2 e-1 n-1 o-1 w-2
The screenshot of the output of example given in the question is attached.
How computer can affect the life of people?
The early success of Microsoft was cemented by the release of which software product:
A) Altair BASIC
B) MS-DOS for the IBM PC
C) IBM’s OS/360
D) P/M
Answer:
MS-DOS for the IBM PC
Explanation:
Shortly after its launch most personal computer companies adopted MS-DOS as their operating system.
Answer:
basically B
Explanation:
the person above is correct
How do I write this in binary number ?
1/3 ~ 100001.010101...
an exact value cannot be found; therefore, the zeros in ones in this binary representation of 1/3 alternate forever.
Which of the following ports offers a fast connection that could be used to download and watch your favorite TV shows?
Ethernet
modem
FireWire
USB
Answer:
Ethernet
Explanation:
Ethernet cables provide a fast, wired connection to the internet
Answer: The answer should be FireWire. FireWire ports are used for audio/video output.
Solve the recurrence relation.
S(1)=1
S(n)= S(n-1)+(2n-1) for n>=2
Answer:
hope that will help you
1. What is MEK? What is it used for?
Answer:
MEK is a liquid solvent used in surface coatings, adhesives, printing inks, chemical intermediates, magnetic tapes and lube oil dewaxing agents. MEK also is used as an extraction medium for fats, oils, waxes and resins. It is a highly efficient and versatile solvent for surface coatings.
You are allowed to use up to 5 images from one artist or photographer without
violating Copyright laws
In a new module named removeMinimum.py Write a function calledremoveMin()that removes the minimum value from a list. Youcannotuse the existingminfunction nor the existing remove method. Of a list has more than one copy of theminimum value, remove only the rst occurrence. [HINT: Create your own minfunction that nds the minimum element in a list and use it in a separate functionremoveMin(). Use help(list.remove) in your console for more information abouttheremove()method for lists]Here is a sample console run of how your function should work:
Answer:
The removeMin() function is as follows:
def removeMin(mylist):
mylist.remove(min(mylist))
print(mylist)
Explanation:
This line declares the function removeMin()
def removeMin(mylist):
This line removes the minimum item in the list
mylist.remove(min(mylist))
This line prints the remaining items in the list
print(mylist)
Which function will add a name to a list of baseball players in Python?
append()
main()
print()
sort()
Answer: B I took the test
Explanation:
The function that will add a name to a list of baseball players in Python is main(). The correct option is b.
What is python?Python is a popular computer programming language used to create software and websites, automate processes, and analyze data. Python is a general-purpose language, which means it may be used to make many various types of applications and isn't tailored for any particular issues.
A function is a section of code that only executes when called. You can supply parameters—data—to a function. The main() function in Python serves as the point at which any software application is executed.
Since the program only runs when it is executed directly, and not if it is imported as a module, the execution of the program can only begin when the main() function is declared in Python.
Therefore, the correct option is b, main().
To learn more about python, refer to the link:
https://brainly.com/question/28966371
#SPJ2
Which of the following statements is true of wireless cellular networks? Check all of the boxes that apply.
They operate on a grid pattern.
They must conform to IEEE 802.11 standards.
They search for signals to confirm that service is available.
They provide voice communications and Internet connectivity.
Answer:
1,3,4
Explanation:
They operate on a grid pattern
They search for signals to confirm that service is available.
They provide voice communications and Internet connectivity.
Answer:1, 3, 4
Explanation:edge 2023
Next, Kim decides to include a diagram of a frog’s life cycle in her presentation. She wants to use an image that is part of a previous presentation stored on her laptop. Which actions can help her work with two presentations at once to copy and paste the image? Check all that apply.
Click Move Split.
Use the Alt+Tab keys.
Use the Windows+Tab keys.
Choose Arrange All in the View tab.
Select Fit to Window in the View tab.
Choose Switch Windows in the View tab.
Answer:
B, C, D, and F are correct answers
Explanation:
On edg
Answer: use alt+tab keys
Use the windows+tab key
Choose arrange all in the view tab
Choose switch windows in the view tab
Explanation:
Kiera decided to enroll in college because her friends told her it was a good idea and they wanted her to follow their lead. Kiera’s not sure about becoming a college student. Which statement has the most impact on Kiera’s family’s future?
Which step is first in changing the proofing language of an entire document?
Answer:
A) Click the Language button on the Status bar
Explanation:
After you do this proceed to find the language you want to change the proofing to.
What is the value of the variable result after these lines of code are executed?
>>> a = 10
>>> b = 2
>>> c = 5
>>> result = a * b - a / c
The value of the variable is
.
Answer:
18
Explanation:
If you take the formula, and you substitute the values of the variables, it will be:
10 * 2 - 10 / 5
Then if you remember the order of math operations, it will be:
(10 * 2) - (10 / 5)
Which reduces to:
20 - 2 = 18
The value of the variable result is 18
The code is represented as follows:
Python code:a = 10
b = 2
c = 5
result = a * b - a / c
Code explanation;The variable a is initialise to 10The variable b is initialise to 2Lastly, the variable c is initialise to 5Then the arithmetic operation variable a multiplied by variable b minus variable a divided by variable c is stored in the variable "result".
Printing the variable "result" will give you 18.
Check the picture to see the result after running the code.
learn more on coding here: https://brainly.com/question/9238988?referrer=searchResults
The email application used by Jim’s office is sending emails with viruses attached to them to user’s computers. What step should Jim try first to resolve the issue?
A. Downgrade the email software to an older, previous version
B. Buy a newer email program and migrate the office computers to that program
C. Switch from open source software to proprietary software
D. Check for and install patches or software updates
Answer:
A
Explanation:
4.5 Code Practice
Write a loop that inputs words until the user enters STOP. After each input, the program should number each entry and print in this format:
(This code must be in python, also if a minor explanation can be added to the bottom that would be nice. But also long as u can help I will be fine)
i = 0
while True:
user_input = input("Please enter the next word: ")
if user_input == "STOP":
break
i += 1
print("#{}: You entered {}".format(i,user_input))
print("All done. {} words entered.".format(i))
First we set i equal to zero so that we can keep track of how many words we input.
We set while True so that its a continuous loop until a certain condition is met to break out of the loop.
user_input is set equal to whatever word the user enters.
our if statement tells us to break out of the while loop if the user inputs "STOP"
If the user does not enter STOP i is set equal to itself plus 1. This just means we add one to i for every new word entered.
Then we print whichever word is entered.
After the while loop, we print All done and the quantity of words entered.
Answer:
c = 0
word = input("Enter a word: ")
while word!="STOP":
c = c+1
print("#" + str(c) + ": You entered "+str(word))
word = input("Please enter the next word: ")
print("All done. "+str(c)+" words entered.")
Complete the sentence. the binary number represented by the voltage graph below is
11010100=43
is applied by 8-bit
The binary number represented by the voltage graph below is 00110110.
A bit (i.e., a 'binary digit'), refers to the smallest unit of data of a computer, which only can take two different values: either zero (0) or one (1).In general, voltages around five Volts (5 V) represent 1, whereas voltages around zero (0 V) represent 0. Voltage signals used to indicate either zero (0) or one (1) are referred to as bits.In conclusion, the binary number represented by the voltage graph below is 00110110.
Learn more in:
https://brainly.com/question/9480337
Q10: You cannot rename a compressed folder.
Click slowly twice the folder.
Right click and choose rename.
Fix the 2 error codes.
1 // DebugSix2.java
2 // Display every character between Unicode 65 and 122
3 // Start new line after 20 characters
4 public class DebugSix2
5 {
6 public static void main(String args[])
7 {
8 char letter;
9 int a;
10 final int MIN = 65;
11 final int MAX = 122;
12 final int STOPLINE1 = 85;
13 final int STOPLINE2 = 122;
14 for(a = MIN; a <= MAX; a++)
15 letter = (char)a;
16 System.out.print(" " + letter);
17 if((a == STOPLINE1) & (a == STOPLINE2))
18 System.out.println();
19 System.out.println("\nEnd of application")
20 }
21 }
1 // DebugSix4.java
2 // Displays 5 random numbers between
3 // (and including) user-specified values
4 import java.util.Scanner;
5 public class DebugSix4
6 {
7 public static void main(String[] args)
8 {
9 int high, low, count;
10 final int NUM = 5;
11 Scanner input = new Scanner(System.in);
12 // Prompt user to enter high and low values
13 System.out.print("This application displays " + NUM +
14 " random numbers" +
15 "\nbetween the low and high values you enter" +
16 "\nEnter low value now... ");
17 low = input.nextInt();
18 System.out.print("Enter high value... ");
19 high = input.nextInt();
20 while(low == high)
21 {
22 System.out.println("The number you entered for a high number, " +
23 high + ", is not more than " + low);
24 System.out.print("Enter a number higher than " + low + "... ");
25 high = input.nextInt();
26 }
27
28 while(count < low)
29 {
30 double result = Math.random();
31 // random() returns value between 0 and 1
32 int answer = (int) (result * 10 + low);
33 // multiply by 10 and add low -- random is at least the value of low
34 // only use answer if it is low enough
35 if(answer <= low)
36 {
37 System.out.print(answer + " ");
38 ++count;
39 }
40 }
41 System.out.println();
42 }
43 }
Answer:
See Explanation
Explanation:
Considering the first program: DebugSix2.java
The following statement needs to be terminated
System.out.println("\nEnd of application")
as
System.out.println("\nEnd of application");
Then, the loop needs to be enclosed as this:
for(a = MIN; a <= MAX; a++){
letter = (char)a;
System.out.print(" " + letter);
if((a == STOPLINE1) & (a == STOPLINE2))
System.out.println();}
Considering the first program: DebugSix4.java
You only need to initialize variable count to 0 as this:
count = 0
I've added the correct source code as an attachment
Which IEEE standards define Wi-Fi technology?
network standards
802.11 standards
111.82 standards
fidelity standards
Answer:
802.11 standards
the answer is:
b. 802.11 standards
12. Write C statement(s) that accomplish the following. a. Declare int variables x and y. Initialize x to 25 and y to 18. b. Declare and initialize an int variable temp to 10 and a char variable ch to 'A'. c. Update the value of an int variable x by adding 5 to it. d. Declare and initialize a double variable payRate to 12.50. e. Copy the value of an int variable firstNum into an int variable tempNum. f. Swap the contents of the int variables x and y. (Declare additional variables, if necessary.) g. Suppose x and y are double variables. Output the contents of x, y, and the expression x 12 / y - 18. h. Declare a char variable grade and set the value of grade to 'A'. i. Declare int variables to store four integers. j. Copy the value of a double variable z to the nearest integer into an int variable x.
Answer:
a.
int x = 25;
int y = 18;
b.
int temp = 10;
char ch ='a';
c.
x += 5;
d.
double payRate = 12.5;
e.
int tempNum = firstNum;
f.
int tempp = x;
x = y;
y = tempp;
g.
printf("Value of x = %f\n",x);
printf("Value of y = %f\n",y);
printf("Arithmetic = %f\n",(x + 12/y -18));
h.
char grade = 'A';
i.
int a,b,c,d;
a = 5; b = 2; c = 3; d = 6;
j.
int x = round(z);
Explanation:
The answers are straight forward.
However, I'll give a general hint in answering questions like this.
In C, variable declaration is done by:
data-type variable-name;
To declare and initialise the variable, you do;
data-type variable-name = value;
So, for questions that requires that we declare and initialise a variable, we make use of the above syntax..
Take (a) for instance:
int x = 25;
int y = 18;
Same syntax can be applied to (b), (d), (e), (h) & (I)
For question (c);
This can be done in two ways;
x = x + 5;
Or
x+=5;
Both will give the same result.
For question (f):
We start by initialise a temporary variable that stores x.
Then we store the value of x in y.
Then we store the content of the temporary variable to y.
This swaps the values of x and y
For question (g):
When printing a double variable in C, we make use of '\f' as a string format
For question (j):
The round function is used to round up a double variable to integer.
Sukhi needs to insert a container into her form to collect a particular type of information. Which object should she insert?
text box
form field
field code
image
Answer:
text box
Explanation:
When it comes to collecting information such as the user's name, telephone number, address, etc., it is important to insert a text box into the form field. This can be done in several ways, such as giving the user the freedom to type her own response in the text box or making it "pre-filled." A text box with pre-filled value means that the user cannot type anything in the box because it has an existing value (default value). The text box may also give a "hint" in order to let the user know of possible values he can choose.
Answer:
A- text box
Explanation: ;)
Which type of network involves buildings in multiple cities connecting to each other?
Answer:
Power lines
Explanation:
Because their everywhere
Answer:
WAN
Explanation:
A network consisting of multiple LANs in
separate locations.
A company with LANs in three major cities, all
connected through WAN links, usually leased from a
telecommunications provider
Surrendering to digital distractions will likely result in better grades true or false
Answer:
False
Explanation:
Being distracted isn't gonna result in better grades
This program will calculate the rise in ocean levels over 5, 10, and 50 years, Part of the program has been written for you. The part that has been written will read in a rise in ocean levels (per year) in millimeters. This value is read into a variable of type double named risingLevel. You will be completing the program as follows Output the value in risingLevel. This should be the first line of output. The output should be as follows (assume risingLevel has a value of 2.1) Level: 2.1 The number of millimeters higher than the current level that the ocean's level will be in 5 years (assuming the ocean is rising at the rate of risingLevel per year). This is your second line of output. The output will be as follows Years: 5, Rise: 10.5 The number of millimeters higher than the current level that the ocean's level will be in 10 years (assuming the ocean is rising at the rate of risingLevel per year). This is your third line of output. The output will be as follows (for a risingLevel" of 2.1 Years: 10, Rise: 21 The number of millimeters higher than the current level that the ocean's level will be in 50 years (assuming the ocean is rising at the rate of risingLevel per year). This is your final line of output.The output will be as follows (for a risingLevel" of 2.1) Years: 50, Rise: 105 For each of the above you need to output the number of years and the total rise in ocean levels for those years. This is all based on the value in risingLevel For example: ArisingLevel of 2.1 for 5 years would have the following output: Level: 2.1 Years: 5, Rise: 10.5 Years: Years: 50, Rise: 105 10, Rise: 21 Your output must have the same syntax and spacing as above
Answer:
Here is the C++ program:
#include <iostream> //to use input output functions
using namespace std; //to identify objects cin cout
int main(){ //start of main method
double risingLevel; //declares a double type variable to hold rising level
cin>>risingLevel; //reads the value of risingLevel from user
cout<<"Level: "<<risingLevel<<endl; //displays the rising level
cout << "Years: 5, Rise: " << risingLevel * 5<<endl; //displays the rise in ocean level over 5 years
cout << "Years: 10, Rise: " << risingLevel * 10<<endl; //displays the rise in ocean level over 10 years
cout << "Years: 50, Rise: " << risingLevel * 50<<endl; //displays the rise in ocean level over 50 years
}
Explanation:
The program works as follows:
Lets say the user enters rising level 2.1 then,
risingLevel = 2.1
Now the first print (cout) statement :
cout<<"Level: "<<risingLevel<<endl; prints the value of risingLevel on output screen. So this statement displays:
Level: 2.1
Next, the program control moves to the statement:
cout << "Years: 5, Rise: " << risingLevel * 5<<endl;
which computes the rise in ocean levels over 5 years by formula:
risingLevel * 5 = 2.1 * 5 = 10.5
It then displays the computed value on output screen. So this statement displays:
Years: 5, Rise: 10.5 Next, the program control moves to the statement:
cout << "Years: 10, Rise: " << risingLevel * 10<<endl;
which computes the rise in ocean levels over 10 years by formula:
risingLevel * 10 = 2.1 * 10 = 21
It then displays the computed value on output screen. So this statement displays:
Years: 10, Rise: 21
Next, the program control moves to the statement:
cout << "Years: 50, Rise: " << risingLevel * 50<<endl;
which computes the rise in ocean levels over 50 years by formula:
risingLevel * 50 = 2.1 * 50 = 105
It then displays the computed value on output screen. So this statement displays:
Years: 50, Rise: 105 Hence the output of the entire program is:
Level: 2.1 Years: 5, Rise: 10.5 Years: 10, Rise: 21 Years: 50, Rise: 105
The screenshot of the program and its output is attached.
Research the disadvantages of the computer and explain them.
Answer:
Too much sitting-affects the back and makes our muscles tight
Carpal tunnel and eye strain-moving your hand from your keyboard to a mouse and typing are all repetitive and can cause injuries
Short attention span and too much multitasking-As you use a computer and the Internet and get immediate answers to your questions and requests, you become accustomed to getting that quick dopamine fix. You can become easily frustrated when something doesn't work or is not answered in a timely matter.