1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
velikii [3]
3 years ago
15

A parking lot has eight spaces, each with a sensor connected to RIM input A7, A6, ..., or A0. A RIM input being 1 means a car is

detected in the corresponding space. Spaces A7 and A6 are reserved handicapped parking. Write a RIM C program that: (1) Sets B0 to 1 if both handicapped spaces are full, and (2) Sets B7..B5 equal to the number of available non-handicapped spaces.
Mathematics
1 answer:
Zarrin [17]3 years ago
7 0

Answer:

The desired program is as given below: /* Wheel and Ramp To compile: Linux: g++ -o wheelandramp wheelandramp.cpp -lGL -lGLU -lglut -lm Mac: g++ -o wheelandramp wheelandramp.cpp -framework Carbon -framework OpenGL -framework GLUT -lm */ #ifdef __APPLE__ #include <OpenGL/gl.h> // definitions for GL graphics routines #include <OpenGL/glu.h> // definitions for GL input device handling #include <GLUT/glut.h> // deginitions for the GLUT utility toolkit #else #include <GL/gl.h> // definitions for GL graphics routines #include <GL/glu.h> // definitions for GL input device handling #include <GL/glut.h> // deginitions for the GLUT utility toolkit #endif #include <iostream> // definitions for standard I/O routines #include <cmath> // definitions for math library using namespace std; #define WINDOW_WIDTH 800 // window dimensions #define WINDOW_HEIGHT 600 #define RADIUS 40 // wheel radius #define PI 3.1415926536 #define CIRC_INC (2 * PI / 30) #define STARTX (WINDOW_WIDTH)/2 #define STARTY (GROUND_HT)+RADIUS #define GROUND_HT 100 #define RAMP_STARTX 266 #define NONE 0 #define CREATED 1 #define MOVING 2 #define LOCKED 3 #define ROLLING 4 #define GRAVITY 10 // Global values float wheel_x; float wheel_y; float x_inc; float y_inc; float x_speed; float y_speed; float ramp_y; int wheel_status; static float x = WINDOW_WIDTH / 2; static float y = WINDOW_HEIGHT - RADIUS; // Draw a filled circle with center at position (wheel_x, wheel_y)

Step-by-step explanation:

You might be interested in
X + y = 3<br> 3x + 2y = 14
Zepler [3.9K]

Answer:

x = 8 , y = -5

Step-by-step explanation:

Solve the following system:

{x + y = 3 | (equation 1)

3 x + 2 y = 14 | (equation 2)

Swap equation 1 with equation 2:

{3 x + 2 y = 14 | (equation 1)

x + y = 3 | (equation 2)

Subtract 1/3 × (equation 1) from equation 2:

{3 x + 2 y = 14 | (equation 1)

0 x+y/3 = -5/3 | (equation 2)

Multiply equation 2 by 3:

{3 x + 2 y = 14 | (equation 1)

0 x+y = -5 | (equation 2)

Subtract 2 × (equation 2) from equation 1:

{3 x+0 y = 24 | (equation 1)

0 x+y = -5 | (equation 2)

Divide equation 1 by 3:

{x+0 y = 8 | (equation 1)

0 x+y = -5 | (equation 2)

Collect results:

Answer: {x = 8 , y = -5

3 0
4 years ago
$3.00 is ____ % of $1.80
natta225 [31]
1.666666666666667%

3.00/1.80


1.666666666666667 as a fraction is 5/3
8 0
4 years ago
How do you solve for x
ivann1987 [24]
Clear out any fractions by Multiplying every term by the bottom parts. Add or Subtract the same value from both sides. Divide every term by the same nonzero value. Combine Like Terms. Factoring. Expanding (the opposite of factoring) may also help.
3 0
4 years ago
Solve the inequality. Show all work
kaheart [24]

Answer:

all work is shown and pictured

6 0
4 years ago
Read 2 more answers
Please help<br><br> 14 points up for grab
AnnZ [28]

Answer:

200

Step-by-step explanation:

separate the two squares

the squares are 10 x 10 so the area is 100

since there are two of the same size squares that means 100 x 2

there ya go

4 0
3 years ago
Other questions:
  • A piece of circular bread has a diameter of 11 in.
    11·1 answer
  • Fractions and integer operations practice, I need help please.
    14·1 answer
  • 14 round 14494 to the nearest thousandth
    6·1 answer
  • Duas torneiras com um caudal, cada uma de 10 litros/min, enchem um depósito em 15 horas.
    13·1 answer
  • 2⁄5 + 3⁄7 + 5⁄6 = is what?
    14·1 answer
  • Write an algebraic expression for the word expression. Use n for the
    5·1 answer
  • 75/100 reduced by 10
    6·1 answer
  • What is the constant of proportionality in this table?
    13·2 answers
  • HELPP QUICKK PLEASSEEE​
    13·1 answer
  • How to get rid of a square root in the denominator?.
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!