Question: 1. Consider the code below. The data type of Mess.Y is: ______ struct Guess { char X; int Y; }; Guess Mess; 2. Consider the
1. Consider the code below. The data type of Mess.Y is: ______
struct Guess
{
char X;
int Y;
};
Guess Mess;
2. Consider the data type LOCATION that has the following data members:
float float
+---------------+-------------+
| xCoordinate | yCoordinate |
+---------------+-------------+
Declare a LOCATION array Tracker that holds the 4 most recent "GPS"
locations a vehicle has been parked.
__________________________________________________
3. chmod: WARNING: can't access prog.cpp
chmod: WARNING: can't access ans.cpp
// --------------------------------------------------------------------
// 1. Read values into the second, third and fourth elements of array A.
// 2. Read size of array [0-5]. [NO PROMPT]
// 3. Determine whether array is in sorted ascending order (empty=>sorted).
// 4. Print result (SORTED or UNSORTED)
//
// Example: input 6 7 8 4 ==> output SORTED
// input 3 5 4 3 ==> output UNSORTED
// input 3 5 4 1 ==> output UNSORTED
// --------------------------------------------------------------------
#include
using namespace std;
int main()
{
int A[5] = {5,3,6,8,1};
cout << endl; return 0; //DO NOT DELETE.
}//main
==============
==> (1) File 'prog.cpp' has been placed in the testing directory.
==> (2) Work in a different window, in the testing directory
==> (3) Edit, compile and test the code in file prog.cpp.
==============
4. ________ is the name of the function that should be called to terminate the
program immediately because a situation occurred that makes it impossible or
unreasonable to run the program to completion with correct results.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
