In computer programs, algorithms and flowcharts are used as prototypes of an actual program
The algorithmThe algorithm of the program is as follows:
Input a, b, cCalculate d using d = b*b - 4 * a * cIf d < 0, print "Complex roots"ElseCalculate x₁ using x₁ = (-b + sqrt(d))/4 * a * c)Calculate x₂ using x₂ = (-b - sqrt(d))/4 * a * c)Print x₁ and x₂EndThe flowchartThis is always in represented using a diagram
See attachment for the flowchart.
Read more about flowchart and algorithms at:
https://brainly.com/question/16763367
#SPJ1
When creating an if() statement, when are curly braces required?
A. when there is only one statement line related to the test condition
B. when there are two or more statement lines related to the test condition
C. never
D. always
Answer:
B. When there are two or more statements lines related to the test condition.
Sorry if I got it wrong.
A square QR code contains 40×40 tiny squares (pixels) where each tiny square represents a 0 or a 1. Calculate how many bytes of data can be stored on the QR code
Answer:
Explanation:
QR Codes are made of multiple rows and columns. The combination of these rows and columns makes a grid of modules (squares). There can be a maximum of 177 rows and 177 columns which means the maximum possible number of modules is 31,329. With the eye, these are just small squares and mean very little, but the exact arrangement of those modules allows the QR Code to encode its data. This means that, unlike traditional barcodes which are 1 dimensional and use 1 row of lines, QR Codes use 2 dimensions which allows them to store a lot more data in the same area of space.
You add a filter by condition, and set the condition to [Weight]>50. How will this affect your data? in tableau
It will only show items whose weight is over 50 is the way it will this affect data. When the computed field is utilized in the filter, only items with a weight greater than 50 are kept.
How do the person filter by condition in Tableau?There are five steps involved in it that are given below-
In the Filter Window, go to the 'Condition' tab.Select the 'By field' radio button.From the drop-down list, choose the name of the filtered field.Choose an aggregation type from the drop-down menu, such as Sum, Average, or Median.From the drop-down menu, select the operator.Thus, It will only show items whose weight is over 50
For more details about person filter by condition in Tableau, click here:
https://brainly.com/question/25531734
#SPJ1
When evaluating an OR operator, what is necessary for execution.
A. Only one condition can be true
B. One condition must be true
C. Both conditions must be true
Answer:
B
Explanation:
Numerous engineering and scientific applications require finding solutions to a set of equations. Ex: 8x + 7y = 38 and 3x - 5y = -1 have a solution x = 3, y = 2. Given integer coefficients of two linear equations with variables x and y, use brute force to find an integer solution for x and y in the range -10 to 10.
Ex: If the input is:
8
7
38
3
-5
-1
Then the output is:
x = 3 , y = 2
Use this brute force approach:
For every value of x from -10 to 10
For every value of y from -10 to 10
Check if the current x and y satisfy both equations. If so, output the solution, and finish.
Ex: If no solution is found, output:
There is no solution
Assume the two input equations have no more than one solution.
Note: Elegant mathematical techniques exist to solve such linear equations. However, for other kinds of equations or situations, brute force can be handy.
The brute strength method determines if each x and y value satisfies both conditions. To do this, we must iterate through each result in the specified range and insert them into both models.
What are Elegant mathematical technique?ALGORITHM :
1. Take the values of all coefficients and SET flag = FALSE
2. Run a FOR loop for x in range (-10, 11). 11 won't be included.
2a. Inside the first FOR, start the y FOR loop in range(-10,11). 11 won't be included
2b. Inside the y FOR loop, check IF for a particular value of x and y both the equations satisfied.
2c. If yes, set flag TRUE and print values of x and y.
2d. ELSE the flag stays FALSE.
END FOR Y
END FOR X
3. Check if flag = FALSE, then print NO SOLUTION
PYTHON CODE :
a=int(input()) #taking input for each coefficient
b=int(input())
c= int(input())
a1= int(input())
b1= int(input())
c1= int(input())
flag = False
for x in range(-10,11): #checking for all values of x in range -10 to 10
for y in range(-10,11): #checking for all values of x in range -10 to 10
if (a x + b y – c == 0) and (a1*x + b1*y - c1 == 0) : #checking if the x and y values satisfy the equation
flag = True #setting the flag if solution is found
print('Solution : x = {-10, 10}, y = {-10, 10}'.format(x,y)) #if they satisfy print x & y
if flag = False : #if flag stays false, that means there is no solution
print('No solution')
OUTPUT : The output is given below.
More about the Elegant mathematical technique link is given below.
https://brainly.com/question/27934739
#SPJ1
If 294.00 units are made and demand is 287.00. Your fixed expenses are $1257.00. Your variable cost per unit is $2.25. Your Sales price is 6.49. The variable expenses for the day is?
If the 294.00 units are made and the cost per unit is $2.25 then variable expenses for the day is $661.5.
Given that 294.00 units are made and the variable cost per unit is $2.25
We have to find variable expenses for the day.
Total variable expenses for the day are a product of the output and the variable cost per unit.
So the variable expenses = no. of output x variable cost per unit
Variable expenses = 294 x 2.25
Variable expenses = 661.5
Hence the variable expenses for the day is $661.5
Learn more about variable expenses here: https://brainly.com/question/8225307
#SPJ10
The layer of ISO/OSI model organizes bits into logical data unit
Options:
(a) transport
(b) data-link
(c) network
(d) physical
Answer:
Physical Layer
Explanation:
Physical Layer: It is responsible for the actual physical connection between
the devices. The physical layer contains information in the
form of bits.
Write short notes on the following:
I. keyboard ii.Control unit iii.printer
Answer:
- the Keyboard:
The keyboard is a handheld device used to input alphabet, numbers, symbols and characters to a monitor. It also houses the special manipulative and function keys.
- the Control Unit:
The control unit is a component of the CPU which directs the operation of the processor.
- the Printer:
The printer is an external hardware output device which takes electronic data stored on a device and creates a hard copy.
What are three benefits of sharing on social media?
Answer:
reach more organization
get viral to whole entire nation
it also enhance to people's knowledge and quatable understandment
1.- Make a program that loops and perform powers of 5 on each loop.
In each lap the operator is asked IF YOU WISH TO CONTINUE (1 or 0) if the operator enters a zero it will no longer continue to spin. IN CODE C++
A program that loops and performs powers of 5 on each loop.In each lap the operator is asked IN CODE C++ the C++ Program for the given hassle announcement is as follows:#include the use of namespace std.
What is the energy of a variety of?The energy of a variety of says how usually to apply the range in a multiplication. Powers also are known as Exponents or Indices. For example, eight^2 might be known as “eight to the energy 2” or “eight to the second one energy”, or simply “eight square.
C++ Program for the given hassle announcement is as follows:#include the use of namespace std;int main() > base;cout << "nEnter the exponent: "; //asks the user for keyboard input for exponent cin>>exponent; for (int i = 1; i <=exponent; i++) //iterate {through|thru|via">via 1 until exponent { num=num*base; //base is multiplied (e.g. 2*2*2.....n) until n, wherein n is exponent } cout <<"n"<strength of "<go back 0;}Sample Output:Stdin InputsRead more about the loops :
https://brainly.com/question/26497128
#SPJ1
➪ How many types of Engineering are there in the world ?
⛄
Answer:
in bohot terms engineering can be divided into four main categories chemical civil electrical and mechanical enginearing each of these types of require different skills and engineer education
There are mainly five types of engineers found in the world. Each of them has a different set of skills and knowledge concerning their relative field.
Who is called an Engineer?An Engineer may be defined as an individual who formats, designs, modifies, and creates machinery or technical equipment like software programs, construction buildings, bridges, etc.
The five types of Engineers are as follows:
Civil Engineers. Chemical Engineers.Electrical Engineers. Mechanical Engineers. Computer Engineers.Civil engineers deal with the construction of buildings, bridges dams, airports, etc. Chemical engineers are associated with developing the products such as medicines, petrochemicals, plastics, etc.
Electrical engineers design and develop the manufacturing of electrical equipment like navigation systems, radar, communication systems, electric motors, etc.
Mechanical engineers always maintain their focus on manufacturing power-producing and power-using machines like electric generators, gas turbines, refrigerators, air-conditioners, etc.
Computer engineers deal with designing, manufacturing, and examining all software operated within an institution's computer system.
All such types of engineers work in their respective fields for designing, and manufacturing products and their delivery which makes the life of an individual easy, efficient, and reliable.
Therefore, it is well described above.
To learn more about Engineers, refer to the link:
https://brainly.com/question/17169621
#SPJ1
what are the effects of information systems in the management of corona ?
The effects of information systems in the above are:
It is used for Remote access and working remotely.Managing supply chain issues.What is impact of information system?Information systems is one that has helped to lower the number of levels in an organization by giving managers with a lot of information to monitor larger numbers of workers.
Note that The effects of information systems in the above are:
It is used for Remote access and working remotely.Managing supply chain issues.Learn more about information systems from
https://brainly.com/question/14688347
#SPJ1
Briefly explain the importance of doing backup in systems administration and explain in detail any three methods for performing backup!?
Answer:
Importance of backup in system administration:
Backups are crucial in system administrations for preserving continuity and protecting against specific types of hardware failures, service interruptions, and human mistakes. To aid a company in recovering from an unexpected catastrophe, backup copies make it possible to restore data to a previous point in time. To safeguard against primary data loss or corruption, it is essential to save a copies of data on a different media. When a system administrator create a backup, he makes a copy of the data that you can restore if your main data is lost. These errors may be the consequence of faulty hardware or software, corrupted data, or a human error like a targeted attack or an unintentional deletion. System backup and recovery is therefore a crucial skill for system administrators as well as the companies they work for.
Three methods for performing backup:
Disk image: A efficient method to back up not only the files and directories but also everything else on the system is by creating a disk image. If a user have a disk image, the user can restore everything, including the operating system, applications, data, and more, so the user won't have to worry about any difficulties. Placing the disk image-containing DVD into the DVD-ROM to restore the backup. Additionally, just attach an external HDD to the computer if the user have a disk image that they made.External hard drive: The most common backup method is to use an external hard drive or even a USB flash drive. An HDD can be easily, quickly, and affordably backed up. It is effective since consumers may carry their portable backup with them wherever they go. Cloud backup: Cloud backup or Online backup has been around for a while, but not many people really utilize it. But the greatest backup technique by far is cloud backup. The user does not have to worry about hardware problems because their files are saved in the cloud and can be accessed from anywhere because the backups are automatically produced and everything is synchronized. It is one of the greatest methods to backup, especially when you consider that the contents are encrypted and stored securely.
What is the result of the following code?
int x = 1;
switch(x)
{
case 1: printf( "Help" );
case 0: printf( "Me" );
break;
case 2: printf( "Hello World" );
}
A. HelpMe
B. Help
C. Help Me
D. Hello World
Answer:
B: Help
Explanation:
During the execution of this switch statement, it will print "Help" because that's the only case that matches the value of x, it will not print "Me" because that case does not match, so it will fall through that case into the break statement.
What federal law requires manufacturers to put care labels on their garments and fabrics sold by the yard?
What is wrong with this case statement -> case 2:
A. cases must be capitalized
B. cases must use a ; and not a :
C. nothing
Answer:
C: Nothing
Explanation:
Assuming this case is acting upon a switch on an integral value, there is nothing wrong with this case header.
var x = 10;
switch (x)
{
case 2:
Console.WriteLine("The value of 'x' is 2!");
}
Why do we need to connect computers"
Answer:
batteries cant last connected to nothing forever probably
4.24 LAB: Exact change
Write a program with total change amount as an integer input, and output the change using the fewest coins, one coin type per line. The coin types are Dollars, Quarters, Dimes, Nickels, and Pennies. Use singular and plural coin names as appropriate, like 1 Penny vs. 2 Pennies.
Ex: If the input is:
0
or less than 0, the output is:
No change
Ex: If the input is:
45
the output is:
1 Quarter
2 Dimes
The Exact change program is an illustration of conditional statements;
Conditional statements are used to make decisions
The Exact change programThe Exact change program written in java programming language, where comments explain each action purposes
import java.util.*;
public class Money{
public static void main(String [] args){
Scanner input = new Scanner(System.in);
// Declare Variables
int amount, dollar, quarter, dime, nickel, penny;
// Prompt user for input
System.out.print("Amount: ");
amount = input.nextInt();
// Check if input is less than 1
if(amount<=0) {
System.out.print("No Change"); }
else {
// Convert amount to various coins
dollar = amount/100; amount = amount%100;
quarter = amount/25; amount = amount%25;
dime = amount/10; amount = amount%10;
nickel = amount/5; penny = amount%5;
// Print results
if(dollar>=1) {
if(dollar == 1) { System.out.print(dollar+" dollar\n");}
else { System.out.print(dollar+" dollars\n"); }
}
if(quarter>=1){
if(quarter== 1){System.out.print(quarter+" quarter\n");}
else{System.out.print(quarter+" quarters\n");}
}
if(dime>=1){
if(dime == 1){System.out.print(dime+" dime\n");}
else{System.out.print(dime+" dimes\n");} }
if(nickel>=1){
if(nickel == 1){System.out.print(nickel+" nickel\n");}
else{System.out.print(nickel+" nickels\n");}}
if(penny>=1){
if(penny == 1) {System.out.print(penny+" penny\n");}
else { System.out.print(penny+" pennies\n"); }}}}}
Read more about conditional statements at:
https://brainly.com/question/11073037
#SPJ1
You get a text. It is a reminder from your dentist’s office that you have an appointment tomorrow. It says to type “1” to confirm or “2” to cancel the appointment. You accidentally type a “3” and nothing happens. How could the input validation be improved?
Answer:
Redo the one you want
Explanation:
Redo the "1" if you are confirming the appointment
Or "2", if you do not.
Do not fret over this worse, comes to worse call your dentist back and explain you hit the 3 by mistake and then tell them your decision .
Complete the sentence about bias and equity.
There is a lack of
in the field of computer science.
Answer:
diversity
Explanation:
Complete the sentence about bias and equity.
There is a lack of
diversity
in the field of computer science.
got it right
Answer:Below
Explanation:
What is an operating system on an IBM computer?
a. GUI
b. Microsoft Windows
c. Mac OSX
Answer:
Microsoft Windows
Explanation:
2. Why do old video games have large pixels and images with jagged edges?
Because that was the style at the time.
Because it allowed for larger files.
Because it allowed for smaller files.
Because smaller pixels didn't exist.
Answer:
A
Explanation:
cuz yea
work done by computer as per the instructions is called
Answer:
The process of storing and then performing the instructions is called “running,” or “executing,” a program. By contrast, software programs and procedures that are permanently stored in a computer's memory using a read-only (ROM) technology are called firmware, or “hard software.”
Explanation:
hope it helps you and give me a brainliest
Answer: A computer obeying its orders
Explanation:
The process of storing and then performing the instructions is called “running,” or “executing,” a program. By contrast, software programs and procedures that are permanently stored in a computer's memory using a read-only (ROM) technology are called firmware, or “hard software.”
Question 7 * What is the default powerpoint standard layout A Blank B Title slide C Title only D. Comparison
Answer:
B. Title slide layout is the default PowerPoint standard layout.
What is CPU? List its major parts.
Answer:
The central processing unit is the brain of the computer. it is the part of the computer which performs manipulations. it is also called the microprocessor.
components of the CPU: The control unit, the arithmetic and logic unit, the register and the memory unit.
I hope you understand:-):-)
The layer of the ISO/OSI responsible for source to destination delivery.
Options:
(a) transport
(b) network
(c) data-link
(d) session
Answer:
(b) network
Explanation:
The Network Layer is the OSI Model's third layer. It is in charge of packet transport from source to destination or host to host across various networks. The layer receives data from the transport layer, adds a header to it, and sends it to the data link layer.
of
tion
TCP/IP was developed in the 1960s to enable university scientists to locate other computers on the Internet.
Select one:
O True
O False
Answer:
True
Explanation:
What’s the main purpose of a personality test?
Answer:
Which of following is not anelectroyte
Suppose that you have the following definitions:
struct time Type
struct tourType
{
int hr;
double min;
int sec;
string cityName;
int distance;
timeType travelTime;
};
};
a. Declare a variable destination of type tourType.
b. Write C++ statements to store the following data in destination: cityName - Chicago, distance -- 550
miles, travelTime - 9 hours and 30 minutes.
c. Write the definition of a function to output the data stored in a variable of type tourType.
d. Write the definition of a value-returning function tat inputs data into a variable of type tourType.
e. Write the definition of a void function with a reference parameter of type tourType to input data in a
variable of type to tourType
Suppose that you have the following definitions:struct time Type struct tourTypen the variable destination of type your type are tourType input(){cout<<"Enter the city, distance and time in hr and min"<>destination.city name;
What is C++ statements?Expression statements. These statements examine an expression for its aspect outcomes or for its go-back value. Null statements. These statements may be supplied in which a declaration is needed with the aid of using the C++ syntax however in which no motion is to be taken.
#include#includethe use of namespace std;struct timeType;struct tourType;tourType destination;tourType input(){cout<<"Enter the city, distance and time in hr and min"<>destination.cityName;cin>>destination.distance;cin>>destination.travelTime.hr;cin>>destination.travelTime.min;go back destination;}void display()cityName;d.distance = t->distance;d.travelTime.hr = t->travelTime.hr;d.travelTime.min = t->travelTime.min;">int main().Read more about the variable :
https://brainly.com/question/2804470
#SPJ1
Build python
Prompt the user for the length,width and height of a room.
Calculate the area of the floor. (length*width)
Calculate the volume of the room. (length*width*height)
Display the area and volume to the user.
Open a file named “roomdata.txt”.
Write the area and volume to the file.
Answer:
You'd have to create a "roomdata.txt" file before writing to it.
Explanation:
#Python Geometry
lenght = int(input("Enter lenght: "))
width = int(input("Enter width: "))
height = int(input("Enter height: "))
def floor_area(area);
area = 0
area = lenght * width
return area
def room_volume(vol);
vol = 0
vol = lenght * width * height
return vol
print ("Area of floor = ", floor_area, "/n Volume of room = ", room_volume)
f = open ("roomdata.text", "w")
f.write("Area of floor = ", floor_area, "/n Volume of room = ", room_volume)
f.close()