answer.
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]
2 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]2 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
A summer camp cookout is planned for the campers and their families. There is room for 450 people. Each adult costs $7, and each
Tanya [424]

Answer:

\left\{\begin{array}{l}x+y\le 450\\7x+4y\le 1,150\end{array}\right.

Step-by-step explanation:

Let  x be the number of adults and y be the number of campers.

There are rooms for 450 people, so

x+y≤450.

Each adult costs $7, then x adults cost $7x.

Each camper costs $4, then y campers cost $4y.

There is a maximum budget of $1,150, so

7x+4y≤1,150

Hence, you get the system of two inequalities:

\left\{\begin{array}{l}x+y\le 450\\7x+4y\le 1,150\end{array}\right.

3 0
2 years ago
What’s the largest fraction in each group? a. 5⁄6 and 29⁄36 b. 5⁄12 and 3⁄8 c. 2⁄5 and 19⁄45 d. 5⁄7, 13⁄14, and 19⁄21 e. 7⁄11 an
Mariulka [41]
Imagine a cake. OK? Now divide the cake in 2 equal pieces, each one is ½ of the cake.
Now divide each piece in 2 halves; each one is ¼ of the cake. Witch is largest? 1:2=0,5; 1:4=0,25. 0,5>0,25.

5:6=0,83333
29:36=0,80555
0,83>0,80 so 5/6 is the largest.

Do this for each group.

a.5/6
b.5/8
c.19/45
d.13/14
e.7/11
f.1/2
8 0
2 years ago
Read 2 more answers
A company makes 150 bags.
irina [24]
35% chance because the company made 150 bags
4 0
1 year ago
Amee received an end of year bonus of $1550 at work and went on a shopping spree. She spent $225 at the department store, $275 a
atroni [7]

Answer: She has $1022 left.

Step-by-step explanation:

The total amount that Amee received an the end of year as bonus at work is $1550.

She went on a shopping spree, spending $225 at the department store, $275 at the home furnishing store, and $28 at the card shop. Therefore, the total amount that she spent at the department store, the home furnishing store, and the card shop is

225 + 275 + 28 = $528

Therefore, the total amount of her bonus that she has left is

1550 - 528 = $1022

6 0
2 years ago
PLS HELP ASAP PLSSSS!!!!!!!!!!!!!!!!!!!!!!!!!
agasfer [191]

Answer:

592,000

Step-by-step explanation:

The new dimensions are 500, 280, and 200. Multiply 2(500*280 + 500*200 + 280*200) to get the answer

5 0
2 years ago
Read 2 more answers
Other questions:
  • What is the length of the arc that subtends a central angle of 82° for a circle with a radius of 9 centimeters? Use 3.14 for π w
    6·2 answers
  • The distance d that a certain particle moves may be calculated from the expression d = at + bt2 where a and b are constants; and
    9·1 answer
  • Captain Jessica has a ship, the H.M.S Crimson Lynx. The ship is two furlongs from the dread pirate Ishaan and his merciless band
    9·2 answers
  • Emanuel was charged \$32$32dollar sign, 32 for a 14\dfrac29 \text{ km}14 9 2 ​ km14, start fraction, 2, divided by, 9, end fract
    15·2 answers
  • James and Terry open a savings account that has a 2.75% annual interest rate, compounded monthly. They deposit $500 into the acc
    10·1 answer
  • The cross-sectional areas of a right triangular prism and a right cylinder are congruent. The right triangular prism has a heigh
    13·1 answer
  • A college is selling tickets to the annual battle of the bands competition. On the first day
    9·1 answer
  • If ribbon candy costs 2.50 per foot. How many feet can you buy if u have 11.25
    9·1 answer
  • at what x coordinate would a line whose equation is y=2x-3 intersect a perpendicular line whose y intercept is 17​
    11·1 answer
  • Match each transformation of Rx) with its description.
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!