(Geometry: area of a triangle)
Write a C++ program that prompts the user to enter three points (x1, y1), (x2, y2), (x3, y3) of a triangle and displays its area.
The formula for computing the area of a triangle is:
s = (side1 + side2 + side3) / 2
area = square root of s(s - side1)(s - side2)(s - side3)

Sample Run:
Enter three points for a triangle: 1.5 -3.4 4.6 5 9.5 -3.4
The area of the triangle is 33.6

Answers

Answer 1

A C++ program that prompts the user to enter three points (x1, y1), (x2, y2), (x3, y3) of a triangle and displays its area is given below:

The C++ Code

//include headers

#include <bits/stdc++.h>

using namespace std;

//main function

int main() {

//variables to store coordinates

float x1,x2,y1,y2,x3,y3;

cout<<"Please Enter the coordinate of first point (x1,y1): ";

// reading coordinate of first point

cin>>x1>>y1;

cout<<"Please Enter the coordinate of second point (x2,y2): ";

// reading coordinate of second point

cin>>x2>>y2;

cout<<"Please Enter the coordinate of third point (x3,y3): ";

// reading coordinate of third point

cin>>x3>>y3;

//calculating area of the triangle

float area=abs((x1*(y2-y3)+x2*(y3-y1)+x3*(y1-y2))/2);

cout<<"area of the triangle:"<<area<<endl;

return 0;

}

Read more about C++ program here:

https://brainly.com/question/20339175
#SPJ1


Related Questions

Help plz

Which of the following statements are true about cyberbullying:

1. Cyberbullying uses electronic communication to bully a person.

11. Cyberbullying is a crime in many states.

III. Instances of cyberbullying do not affect the digital footprint of the victim.

IV. Cyberbullying hurts real people even though we can't always see their reactions
online.

I and IV

O ll and III

O 1, 11, and IV

All of the above

Answers

1 and IV are the are the right answers because cyber bullying is online and it hurts real people but you can’t see there reaction.

The following statements are true about cyberbullying: Cyberbullying uses electronic communication to bully a person. Cyberbullying hurts real people even though we can't always see their reactions.

What is cyberbullying?

The use of mobile phones, instant messaging, e-mail or social networking sites to intimidate or harass someone is known as cyberbullying.

The correct answer is "I and IV." Statement I is true because cyberbullying is defined as using electronic communication to bully a person.

Statement IV is also true because even though we may not be able to see the victim's reactions online, cyberbullying can still have real-life consequences and can hurt the victim emotionally or mentally.

Statement II is false because cyberbullying is a crime in many states, and statement III is also false because instances of cyberbullying can affect the victim's digital footprint.

Hence, the correct statements are "I and IV".

To learn more about cyberbullying click here:

https://brainly.com/question/8142675

#SPJ2

You want to read input from the user to know how many apples they would like
to buy. Which statement should you use to read in a number from the user?
var applesToBuy = readLine("How many apples would you lik
e? ");
o
var applesToBuy - println("How many apples would you like?
Dj
var applesToBuy - readInt("How many apples would you like?
1);
var applesToBuy
= nextInt("How many apples would you like?
")

Answers

Answer:

var applesToBuy = readLine("How many apples would you lik

e? ");

Explanation:

It asks the user to enter answer the question and it stores the answer into the applesToBuy variable.

Its right dont worry.

In the given scenario, if we use "InputStream" class object that inputs value from the user-end, in which we use "readInt" keyword. In Java, this function of the DataInputStream class reads 4 input bytes and returns an integer value. This method takes the next 4 bits from the input stream, transforms them to integers, and would then returns.

And the wrong choice can be defined as follows:

For choice 1, it use the "readLine" method which inputs the string value.For choice 2, it use the "println" method which prints value.For choice 4, the "nextInt" method is the part of "Scanner" class.

Therefore, the answer is "Option 3", which is  "var applesToBuy - readInt("How many apples would you like?");".

Learn more:

brainly.com/question/20637377

help please i dont know​

help please i dont know

Answers

Answer:

Project launch

Explanation:

Project launch

how to write a code that determines if a number is odd or even?
the code should start with a variable declaration

Answers

Answer:

//code in c++

#include <iostream>

using  namespace std;

int main() {

   int a;

   cin>>a;

   if(a%2==0){

       cout<<"Even number";

   }

   else{

       cout<<"Odd number";

   }

return 0;

Explanation:

Alicia is a network administrator and is setting up her company's network. Which of the following should she use to display the ethernet interfaces within Linux?

Answers

Alicia should use the following command to display the ethernet interfaces within Linux:

root at the rate kali2:-#config.

What do you mean by Ethernet interface?

An Ethernet interface may be defined as a type of interface that involves a circuit board or card installed in a personal computer or workstation, as a network client.

A networking interface allows a computer or mobile device to connect to a local area network (LAN) using Ethernet as the transmission mechanism.

A network interface is the point of interconnection between a computer and a private or public network. A network interface is generally a network interface card (NIC) but does not have to have a physical form. Instead, the network interface can be implemented in software.

Therefore, the command that Alicia is used to displaying the ethernet interfaces within Linux is mentioned above.

To learn more about Ethernet interface, refer to the link;

https://brainly.com/question/28930681

#SPJ1

please help me ASAP!

please help me ASAP!

Answers

Answer:

loser

Explanation:

The answer is B. The crisis management plan acts as net for any sudden crises and provides aid to the issue.

Why is it important to use correct syntax?

ANSWER: D) to ensure the programs run properly and return expected results

Answers

Answer: True

Explanation:

Answer:

D

Explanation:

If your options are

a) to demonstrate a sophisticated programming style

b) to demonstrate a flexible programming style

c)to ensure that programs will work on any computer platform

d) to ensure that programs run properly and return expected results

Then yes this is very much correct!

An employee has been working on his homework during his breaks at work.
He brings his flash drive in with his current assignment on it and plugs it into
his computer. The company operates on an intranet network. What risk does
this employee present?

A. If the employee's assignment file from home has a virus, it can
infect the company computer when it is opened at work.

B. Flash drives have their own antivirus that makes them safe.

C. There is no risk, since the intranet is completely secure from
outside networks and viruses.

D. The employee would have to get on the Internet at work in order to
present a risk.

Answers

If the employee's assignment file from home has a virus, it can infect the company computer when it is opened at work. Option A

Bringing a flash drive with personal files and connecting it to a company computer introduces a potential risk to the company's network and systems. Here's why:

Virus Transmission: If the employee's assignment file contains a virus, malware, or any other malicious software, it can easily spread to the company's computer when the file is accessed. The virus could then infect the company's network, compromise data, or disrupt operations.

Lack of Antivirus Scanning: While some flash drives may have built-in antivirus protection, it is not foolproof. Flash drives can still be carriers of malware, and relying solely on their built-in protection is not sufficient. The company's computer may not have the same level of security measures or antivirus software to scan the files properly.

Intranet Security vs. External Threats: While intranet networks are generally more secure than external networks, they are not completely immune to risks. Intranets can still be vulnerable to internal threats, including infected files brought in from external sources.

Uncontrolled External Connections: Although the question mentions the company operating on an intranet network, it doesn't specify that the computer is not connected to the internet. If the employee connects to the internet using the company's computer, there is an added risk of exposing the network to external threats. Option A

For moresuch questions on virus visit:

https://brainly.com/question/30022912

#SPJ11

Convert 108/10 to binary

Answers

Explanation:

The answer would be 1101100

Drag each tile to the correct box.
Match the certifications to the job they best fit.
CompTIA A+
Cisco Certified Internetwork Expert (CCIE)
Microsoft Certified Solutions Developer (MCSD)
help desk technician
network design architect
software developer

Answers

Answer:

software developer- microsoft certified solutions developer

help desk technician- CompTIAA+
network design architect- Cisco certified internetwork expert

Explanation

edmentum

What is one lighting technique that is used to simulate a strong sun?

Answers

Answer:

Heat lamp.

Explanation:

Like the sun, a heat lamp gives off light and heat, mimicking the actions of a sun. To simulate a strong sun, turn the heat lamp up higher to create brighter light and warmer heat.

Hope this helps!

Manufactured computers and cell phones are part of which industry? Electronics Chemicals Machinery Metal products

Answers

Answer:

The correct answer is the electronic industry

Hope this helps

Answer:

Electronics

Explanation:

A digital footprint is .

Answers

Your digital footprint is the trail of 'electronic breadcrumbs' you leave behind when you use the internet. It can include the websites you visit, the photos you upload and your interactions with other people on social networks.

Answer: is something you must manage

How quickly a drug enters your bloodstream also depends on

Answers

depends on the active ingredients in the drug?

What are 3 key factors in defining cost on cloud storage

Answers

i'm not sure sorry

I hope someone else can help you with this question

______ is defined as the level of power and control that an individual has over their learning.

A.
Student agency

B.
E-Learning

C.
Educational agency

D.
Independence

Answers

Answer:

B, E-Learning

Explanation:

Use a method from the JOptionPane class to request values from the user to initialize the instance variables of Election objects and assign these objects to the array. The array must be filled. ​

Use a method from the JOptionPane class to request values from the user to initialize the instance variables

Answers

To use the JOptionPane class in Java to request values from the user and initialize instance variables of Election objects and assign them to an array, you can follow the steps given in the image:

What is the JOptionPane class

The code uses JOptionPane. showInputDialog to show a message box and get information from the user. IntegerparseInt changes text into a number.

After completing a process, the elections list will have Election items, and each item will have the information given by the user.

Learn more about JOptionPane class from

brainly.com/question/30974617

#SPJ1

Use a method from the JOptionPane class to request values from the user to initialize the instance variables

The dealer’s cost of a car is 85% of the listed price. The dealer would accept any offer that is at least $500 over the dealer’s cost. Design an algorithm that prompts the user to input the list price of the car and print the least amount that the dealer would accept for the car. C++

Answers

Here is an algorithm in C++ that prompts the user to input the list price of the car and prints the least amount that the dealer would accept for the car:

#include <iostream>

using namespace std;

int main() {

   double list_price, dealer_cost, min_accepted_price;

   const double DEALER_COST_PERCENTAGE = 0.85;

   const double MIN_ACCEPTED_PRICE_OVER_COST = 500;

   cout << "Enter the list price of the car: ";

   cin >> list_price;

   dealer_cost = list_price * DEALER_COST_PERCENTAGE;

   min_accepted_price = dealer_cost + MIN_ACCEPTED_PRICE_OVER_COST;

   cout << "The least amount the dealer would accept for the car is: $" << min_accepted_price << endl;

   return 0;

}

The algorithm starts by including the library iostream and declaring the namespaces. Then it declares the variables that will be used in the program (list_price, dealer_cost, min_accepted_price) and the constants that will be used (DEALER_COST_PERCENTAGE and MIN_ACCEPTED_PRICE_OVER_COST). Then it prompts the user to enter the list price of the car. Next, it calculates the dealer's cost by multiplying the list price by the dealer cost percentage and the minimum amount the dealer would accept by adding the dealer's cost to the minimum accepted price over cost. Finally, it prints the least amount the dealer would accept for the car.

The intent of a Do query is to accomplish a goal or engage in an activity on a phone.

Answers

False. The intent of a Do query is to accomplish a goal or engage in an activity on a phone.

The intent of a Do query

A computer query is a request for information or data made to a computer system or a database. It involves specifying specific criteria or conditions to retrieve relevant information from a database or perform a specific action.

Queries are commonly used in database management systems, where they allow users to search, filter, and sort data based on specific criteria. A query typically consists of a structured query language (SQL) statement that defines the desired data and any conditions or constraints to be applied.

Read mroe on  query here query

#SPJ1

a. Draw the hierarchy chart and then plan the logic for a program needed by Hometown Bank. The program determines a monthly checking account fee. Input includes an account balance and the number of times the account was overdrawn. The output is the fee, which is 1 percent of the balance minus 5 dollars for each time the account was overdrawn. Use three modules. The main program declares global variables and calls housekeeping, detail, and end-of-job modules. The housekeeping module prompts for and accepts a balances. The detail module prompts for and accepts the number of overdrafts, computes the fee, and displays the result. The end-of-job module displays the message Thanks for using this program.


b. Revise the banking program so that it runs continuously for any number of accounts. The detail loop executes continuously while the balance entered is not negative; in addition to calculating the fee, it prompts the user for and gets the balance for the next account. The end-of-job module executes after a number less than 0 is entered for the account balance.


Hierarchy chart and pseudocode required

Answers

The Hierarchy Chart for the program needed by Hometown Bank is given below:

                Main Program

                   |

               -------------

              |             |

      Housekeeping module  Detail module

              |             |

     Prompts for balance   Computes fee

         and accepts input  and displays result

              |

        -----------------

       |                 |

   End-of-job module    Detail loop (while balance >= 0)

       |

   Displays message "Thanks for using this program"

Pseudocode for Main Program:

Declare global variables

Call Housekeeping module

Call Detail module

Call End-of-job module

Pseudocode for Housekeeping Module:

Prompt for balance

Accept input for balance

Pseudocode for Detail Module:

Detail loop:

  while (balance >= 0)

     Prompt for number of overdrafts

     Accept input for number of overdrafts

     Compute fee: 1 percent of balance - 5 dollars * number of overdrafts

     Display result

     Prompt for balance

     Accept input for balance

Pseudocode for End-of-job Module:

Display message "Thanks for using this program"

Read more about pseudocode here:

https://brainly.com/question/24953880

#SPJ1

True/False. Debugging and sequencing are the same process; just different
terms.

Answers

False
debugging is the process of detecting flaws and removing them from code
sequencing is the order that commands are executed by computer

What is Dynamic Host Configuration Protocol

Answers

Answer:

The Dynamic Host Configuration Protocol (DHCP) is a network management protocol used on Internet Protocol (IP) networks, whereby a DHCP server dynamically assigns an IP address and other network configuration parameters to each device on the network, so they can communicate with other IP networks.

Answer: Dynamic Host Configuration Protocol (DHCP) is a network management protocol used to automate the process of configuring devices on IP networks, thus allowing them to use network services such as DNS, NTP, and any communication protocol based on UDP or TCP.

Explanation:

DHCP stands for dynamic host configuration protocol and is a network protocol used on IP networks where a DHCP server automatically assigns an IP address and other information to each host on the network so they can communicate efficiently with other endpoints.

Find extreme value. C++
Assign variable biggestVal with the largest value of 5 positive floating-point values read from input.
Ex: If the input is 17.9 8.7 1.2 17.7 9.2, then the output is:
17.9
Note:
--The first value read is the largest value seen so far.
--All floating-point values are of type double
------------------------
#include
#include
using namespace std;

int main() {
double inputVal;
double biggestVal;
int i;

/* Your code goes here */

cout << biggestVal << endl;

return 0;
}

Answers

Answer:

Here's the updated code with comments and the implementation to find the largest value:

#include <iostream>

#include <iomanip>

using namespace std;

int main() {

double inputVal;

double biggestVal;

int i;

Explanation:

// Read the first input value and assign it to biggestVal

cin >> biggestVal;

// Loop through the remaining input values

for (i = 1; i < 5; i++) {

   cin >> inputVal;

   // Check if the new value is greater than the current biggestVal

   if (inputVal > biggestVal) {

       biggestVal = inputVal;

   }

}

// Output the largest value

cout << fixed << setprecision(1) << biggestVal << endl;

return 0;

Theatre seat booking - Java program
Part A

A new theatre company called ‘New Theatre’ has asked you to design and implement a new Java program to manage and control the seats that have been sold and the seats that are still available for one of their theatre sessions. They have provided you with their floorplan in which we can see that the theatre is composed of 3 rows, each with a different number of seats: 12, 16 and 20 retrospectively.

Task 1) Create a new project named Theatre with a class (file) called Theatre (Theatre.java) with a main method that displays the following message ‘Welcome to the New Theatre’ at the start of the program. Add 3 arrays (one for each row) in your program to keep record of the seats that have been sold and the seats that are still free. Row 1 has 12 seats, row 2 has 16 seats and row 3 has 20 seats. 0 indicates a free seat, 1 indicates an occupied (sold) seat. At the start of the program all seats should be 0 (free). This main method will be the method called when the program starts (entry point) for all Tasks described in this work.

Task 2) Add a menu in your main method. The menu should print the following 8 options: 1)Buy a ticket, 2) Print seating area, 3) Cancel ticket, 4) List available seats, 5) Save to file, 6) Load from file, 7) Print ticket information and total price, 8) Sort tickets by price, 0) Quit. Then, ask the user to select one of the options. Option ‘0’ should terminate the program without crashing or giving an error. The rest of the options will be implemented in the next tasks. Example:

-------------------------------------------------
Please select an option:
1) Buy a ticket
2) Print seating area
3) Cancel ticket
4) List available seats
5) Save to file
6) Load from file
7) Print ticket information and total price
8) Sort tickets by price
0) Quit
------------------------------------------------
Enter option:

Tip: Think carefully which control structure you will use to decide what to do after the user selects an option (Lecture Variables and Control Structures).

Task 3) Create a method called buy_ticket that asks the user to input a row number and a seat number. Check that the row and seat are correct and that the seat is available. Record the seat as occupied (as described in Task 1). Call this method when the user selects ‘1’ in the main menu.

Task 4)
A) Create a method called print_seating_area that shows the seats that have been sold, and the seats that are still available. Display available seats with the character ‘O’ and the sold seats with ‘X’. Call this method when the user selects ‘2’ in the main menu.
The output should show the following when no tickets have been bought:

OOOOOOOOOOOO
OOOOOOOOOOOOOOOO
OOOOOOOOOOOOOOOOOOOO

After purchasing a ticket for row 1, seat 6, and a ticket for row 3, seat 10, using option ‘1’ in the menu, the program should display the following:

OOOOOXOOOOOO
OOOOOOOOOOOOOOOO
OOOOOOOOOXOOOOOOOOOO

B) Update your code to align the display such that shows the seats in the correct location, and the stage, as shown below:

***********
* STAGE *
***********

OOOOOX OOOOOO
OOXXXXXX OOOOOXXX
XXOOOOXXXO XXXOOOXXXX

Task 5) Create a method called cancel_ticket that makes a seat available again. It should ask the user to input a row number and a seat number. Check that the row and seat are correct, and that the seat is not available. Record the seat as occupied (as described in

Task 1). Call this method when the user selects ‘3’ in the main menu.

Task 6) Create a method called show_available that for each of the 3 rows displays the seats that are still available. Call this method when the user selects ‘4’ in the main menu.

Example at the start of the program:

Enter option: 4

Seats available in row 1: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12.
Seats available in row 2: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16.
Seats available in row 3: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20.

Task 7) Create a method called save that saves the 3 arrays with the row’s information in a file. Call this method when the user selects ‘5’ in the main menu.

Task 8) Create a method called load that loads the file saved in Task 7 and restores the 3 arrays with the row’s information. Call this method when the user selects ‘6’ in the main menu.

Answers

Here's the Java program to implement the tasks described:

import java.io.*;

import java.util.*;

public class Theatre {

   private static final int ROWS = 3;

   private static final int[] SEATS_PER_ROW = {12, 16, 20};

   private static final int TOTAL_SEATS = SEATS_PER_ROW[0] + SEATS_PER_ROW[1] + SEATS_PER_ROW[2];

   private static final int[][] seats = new int[ROWS][];

   private static final Scanner scanner = new Scanner(System.in);

   private static boolean isModified = false;

   public static void main(String[] args) {

       // initialize seats to be all free

       for (int i = 0; i < ROWS; i++) {

           seats[i] = new int[SEATS_PER_ROW[i]];

       }

       // display welcome message

       System.out.println("Welcome to the New Theatre");

       int option;

       do {

          // print menu

           System.out.println("Please select an option:");

           System.out.println("1) Buy a ticket");

           System.out.println("2) Print seating area");

           System.out.println("3) Cancel ticket");

           System.out.println("4) List available seats");

           System.out.println("5) Save to file");

           System.out.println("6) Load from file");

           System.out.println("7) Print ticket information and total price");

           System.out.println("8) Sort tickets by price");

           System.out.println("0) Quit");

           System.out.print("Enter option: ");

           option = scanner.nextInt();

           scanner.nextLine(); // consume the newline character

           switch (option) {

               case 1:

                   buyTicket();

                   break;

               case 2:

                   printSeatingArea();

                   break;

               case 3:

                   cancelTicket();

                   break;

               case 4:

                   showAvailable();

                   break;

               case 5:

                   save();

                   break;

               case 6:

                   load();

                   break;

               case 7:

                   printTicketInfoAndTotalPrice();

                   break;

               case 8:

                   sortTicketsByPrice();

                   break;

               case 0:

                   System.out.println("Thank you for using our system. Goodbye!");

                   break;

               default:

                   System.out.println("Invalid option. Please try again.");

           }

       } while (option != 0);

   }

   private static void buyTicket() {

       System.out.print("Enter row number (1-" + ROWS + "): ");

       int row = scanner.nextInt() - 1; // convert to 0-based index

       if (row < 0 || row >= ROWS) {

           System.out.println("Invalid row number. Please try again.");

           return;

       }

       System.out.print("Enter seat number (1-" + SEATS_PER_ROW[row] + "): ");

       int seat = scanner.nextInt() - 1; // convert to 0-based index

       if (seat < 0 || seat >= SEATS_PER_ROW[row]) {

           System.out.println("Invalid seat number. Please try again.");

           return;

       }

       if (seats[row][seat] == 1) {

           System.out.println("Seat already taken. Please choose another seat.");

           return;

       }

       seats[row][seat] = 1;

       isModified = true;

       System.out.println("Ticket purchased successfully.");

   }

   private static void printSeatingArea() {

       System.out.println("***********");

       System.out.println("*  STAGE  *");

       System.out.println("***********");

       for (int i = 0; i < ROWS; i++) {

         

What is the explanation of the above code?

The program manages and controls the seats sold and available for a theatre session.

It starts by displaying a welcome message and a menu with several options, including buying a ticket, printing the seating area, canceling a ticket, listing available seats, saving and loading from a file, and sorting tickets by price.

Each option is implemented as a separate method. The program keeps track of the seats that have been sold and the seats that are still available using three arrays, one for each row. It displays the seating area using 'X' for sold seats and 'O' for available seats, and includes the stage.

The program allows users to buy and cancel tickets, list available seats, and save/load data to/from a file.

Learn more about Java Codes;
https://brainly.com/question/30479363
#SPJ1

Computer programmers are responsible for writing code that tells computers commands to follow.

True
False

Answers

True is the correct answer.

Answer:

True

Explanation:

the answer is true

Azure subscription storage1 virtual machines: service endpoint

Answers

Microsoft's cloud storage solution is the Azure Storage platform. Azure Storage offers huge scalability, security, and high availability.

What exactly is a storage service endpoint in Azure?

Endpoints give you the ability to limit access to your vital Azure service resources to just your virtual networks. Service Endpoints makes it possible for private IP addresses in the VNet to access an Azure service's endpoint without the use of a public VNet IP address.

What happens when a service endpoint for Azure storage is enabled?

With the use of virtual network service endpoints, you can completely block public internet access to these resources by securing Azure Storage accounts to your virtual networks. The best routing is provided by service endpoints, which always keep traffic going to Azure Storage on the backbone network of Azure.

To know more about Azure service visit:

https://brainly.com/question/30373354

#SPJ1

You work at a print shop that produces marketing materials, and your manager asks you to install a new printer. The printer comes with two options for drivers. One uses PCL, and the other uses Postscript. Which driver is the best option and why

Answers

Since you work at a print shop that produces marketing materials, and your manager asks you to install a new printer. The drivers that is best is PCL, because it can be used in the office to print physical document while the Postcript can only be used for online document or pdf and since it is office job, PCL is the best.

What is PCL  printer?

PCL use depends on the device. This indicates that certain printed data, typically graphical data like fill areas, underlines, or fonts, is created by the drivers for this language by using the printer hardware. As a result, the print job can be processed by the computer fast and effectively. The production and processing of page data must then be finished by the printer.

Note that If you typically print from "Office" programs in general, use the PCL driver. If you wish to print PDFs more quickly or use professional DTP and graphics tools for the majority of your printing, pick the PostScript driver.

Learn more about printer driver from

https://brainly.com/question/14230829
#SPJ1

An employee’s total weekly pay equals the hourly wage multiplied by the total number of regular hours, plus any overtime pay. Overtime pay equals the total overtime hours multiplied by 1.5 times the hourly wage. Write a program that takes as inputs the hourly wage, total regular hours, and total overtime hours and displays an employee’s total weekly pay.

Answers

Answer:

Assuming this is Python, I would do something like the following:

Explanation:

hourWage= float(input ("What is your hourly wage?: "))

regularHours= float(input ("How many regular hours did you work this week?: "))

overtimeHours= float(input ("How many overtime hours did you have this week?: "))

overtimeWage= (1.5*hourWage)

totalWeeklyPay= (hourWage*regularHours)+(overtimeHours*overtimeWage)

print= ("Your total weekly pay is: " ,totalWeeklyPay)

I hope this works!

Following are the program to calculate weeklyPay value:

Program Explanation:

Defining a variable "Wage, Hour, Hours" that uses the float with the input method to take float value from the user-end.After input value, a "weeklyPay" is declared that calculates the value by the formula.After calculating the value a print method is declared that prints its calculated value.

Program:

Wage = float(input("Enter hourly wage: "))#defining a variable Wage that inputs float value

Hour = float(input("Enter total number of regular hours: "))#defining a variable Hour that inputs float value

Hours = float(input("Enter overtime hours: "))#defining a variable Hours that inputs float value

weeklyPay = (Wage*Hour) + (1.5*Wage*Hours)#defining a variable weeklyPay that calculates the values

print (weeklyPay)#defining a print method that prints weeklyPay value

Output:

Please find the attached file.

Learn more:

brainly.com/question/8020777

An employees total weekly pay equals the hourly wage multiplied by the total number of regular hours,

4. Why is the performance of a computer so dependent on a range of technologies such as semiconductor, magnetic, optical, chemical, and so on

Answers

It should be noted that the performance of a computer is dependent on them in order to meet the challenges hat are associated with the applications.

What is a computer?

A computer simply means an electronic machine that can be used to make one's work easier and faster.

The performance of a computer so dependent on a range of technologies such as semiconductor, magnetic, optical, chemical, etc. This is vital in order to meet the challenges that are associated with the activities in the real world environment.

Learn more about computers on:

https://brainly.com/question/24540334


Spreadsheet software enables you to organize, calculate, and present numerical data. Numerical entries are called values, and the
instructions for calculating them are called.

Answers

Answer:

It's called coding frame

Other Questions
-eHow can you protect yourself from biological hazards associated with humansources?Select the 3 answer options that apply.Practice personal hygieneWash your handsStay vaccinated A faculty member wants to portray athletic coaches as overpaid. Which measure of center would she report as the summary statistic for the salary of coaches that would make the salary seem much larger than members of the teaching faculty 15 . A company's flexible budget for 12,000 units of production showed sales, $48,000; variable costs, $18,000; and fixed costs, $16,000. The net income you would expect the company to earn if it produces and sells 15,000 units is: Divergent plate boundaries are when platescollidemove past each othermove apart The current and voltage of new ultrathin CIGS solar cells vary based on temperature. The graph shows the current, in milliamps per square centimeter (mA/cn), and voltage, in volts (V), atvarious temperatures, in degrees Kelvin (K)Which of the following best estimates the rate of change of voltage, in volts per degree Kelvin (V/K)? As a result of the treaty of vessels Germany lost land which two countries? Help me! I'm lost!The wall in in the shape of a rectangle. The wall is 3m wide and 2.5m high. .The tiles are rectangles 20cm wide and 25cm high. The tiles are sold in boxes. There are 20 tiles in each box. Each box of tiles costs 8.50.Work out the total cost of the boxes of tiles Andy needs to buy.You must show all your working. Four equivalent forms of a quadratic function are given. Which form displays the zeros of function h? A. h(x) = -4(x 2)(x + 2) B. h(x) = -2(2x2 8) C. h(x) = -4x2 + 16 D. h(x) = -4(x2 4) 2 triangles. One triangle has side lengths x, 3 units, 4 units. The other triangle has side lengths 11 units, y, 8 units. The two figures are the image and preimage of a dilation. Find the lengths of the missing sides. x = units, y = units can someone plss help fastt I WILL GIVE BRAINLIEST PLSS HELPP!! 1. In a shelter 15% of the animals are puppies, 45%are cats, and the rest are adult dogs. Based on thisinformation, if there are 50 animals at the shelter howmany are adult dogs?A. 60B. 20C. 30D. Not Here A block of weighing sublimes (converts from solid to gas) in a container at . How much work has been done if the gas is allowed to expand against an external pressure of atm under isothermal conditions FILL THE BLANK.Research by Zigarmi and Roberts (2017) suggested that followers feel positive about their job when ______. A. leaders treat all of their employees in the same way regardless of situation B. followers perceive a match between their own needs and their leader's behavior C. followers are situated in groups where everyone has complementary personality traits D. leaders use mostly supportive behaviors with females and directive behaviors with males Which one of these salts will form a neutral solution on dissolving in water? KNO2 NaCN NaCl NH4NO3 FeCl3 Nathan is buying a cell phone for his business. The regular price of the cell phone is $ 179. If he buys the cell phone in the next two weeks, he will receive a 20% discount. What will the sale price be if he buys the cell phone tomorrow? * what two numbers add to -18 and multiply to 81 pleeeaaasseeee help (questions in photo) will mark brainliest 1) : 2) : Which track terminates in the reticular formation? a. spinocerebellar tract. b. spinothalamic tract. c. dorsal columns. d. reticulospinal tract. 17. Find the sum of the measures of the angles of the figure.