Computers and Technology
10.08.2022 22:31
264
368
8
Solved by an expert

Which of these is NOT a mathematical operator used in Python? A. ! B. / C. % D.

Which of these is NOT a mathematical operator used in Python? A. !
B. /
C. %
D. *
Show Answers
melissareid65
melissareid65
5,0(17 marks)
The answer is A. i wouldn’t seen any mathematical question that has to do with “!”
elizabethwaller8104
elizabethwaller8104
4,4(29 marks)

Codes are given below:

Explanation:

Since the language is not specified, I am writing it in c++. I have added comments to explain each line

#include <iostream>

using namespace std;

int main() //Start of main function

{

int feet1, feet2 , inches1, inches2, t_feet, t_inches;  //declaring the variables

cout << "Enter the Feet for the first piece of fabric:"<<endl;

cin >> feet1; //this will take the feet piece1 as an input

cout << "Enter the Inches for the first piece of fabric:"<<endl;

cin >> inches1; //this will take the inches piece1 as an input

cout << "Enter the Feet for the second piece of fabric:"<<endl;

cin >> feet2; //this will take the feet piece2 as an input

cout << "Enter the Inches for the second piece of fabric:"<<endl;

cin >> inches2; //this will take the inches piece2 as an input

t_feet = feet1 + feet2;  //adding the feet

t_inches = inches1 + inches2; //adding the inches

if (t_inches> 11)  //checkimg if the inches are greater than 11

{

   t_feet = t_feet + t_inches/12;  //converting inches to feet that are greater than 12

   t_inches = t_inches%12; //getting the remaining inches after converting them to feet

}

cout <<"The total length: " <<  t_feet <<" feet and" << t_inches <<" inches" << endl;

return 0;

}  //End of main function

Popular Questions about the subject: Computers and Technology

The functional description of the transport layer in the osi model...
Computers and Technology
19.03.2022 04:45
Which tool or mechanism defines what resource a user may access and...
Computers and Technology
27.07.2020 09:39
When will a student most likely need to read a text aloud? o when doing...
Computers and Technology
23.06.2023 21:02
You are the administrative assistant for the psychology department...
Computers and Technology
12.02.2023 11:04
Java1.3.3: output simple text.write a statement that prints the following...
Computers and Technology
20.12.2020 02:13
How was the apollo 11 computer powered need answer now like right now...
Computers and Technology
03.01.2021 20:57
Write a java program to simulate an ecosystem containing two types...
Computers and Technology
30.04.2020 01:25
You have been assigned to work with a web developer to troubleshoot...
Computers and Technology
17.03.2020 06:37
Which of the following commands enables pinging your own computer to...
Computers and Technology
28.10.2022 22:40
In a last-click attribution model, google analytics will attribute...
Computers and Technology
28.09.2022 17:35

New questions by subject

Help plsss I need to answer this...
Physics
06.06.2022 01:02
Solve the Equaition: 7 h = 56...
Mathematics
18.05.2021 22:47
PLEASE HELP I HAVE A TEXT TOMORROW...
Mathematics
12.02.2023 11:01
Can someone please help me...
Mathematics
22.11.2022 20:48
Which Statement is true about figure DEF...
Mathematics
21.08.2020 02:32
why was it critical for good pioneer trails going west to have a decent...
History
06.11.2020 19:52
sarah work at a concession stand for 2 hours and erans 22.50$, but...
Mathematics
26.11.2021 20:25
Anyone mind helping?...
Mathematics
10.10.2022 14:53
#
#
#
#
# #

We expand our knowledge with many expert answers