Interstate highway numbers

Assignment Help Basic Computer Science
Reference no: EM132200898

Interstate highway numbers

Primary U.S. interstate highways are numbered 1-99. Odd numbers (like the 5 or 95) go north/south, and evens (like the 10 90) go east/west. Auxiliary highways are numbered 100-999, and service the primary highway indicated by the rightmost two-digits. Thus, the 405 services the 5, and the 290 services the 90.

Given a highway number, indicate whether it is a primary or auxiliary highway. If auxiliary, indicate what primary highway it serves. Also indicate if the (primary) highway runs north/south or east/west.

If the input is 90, the output is: The 90 is primary, going east/west.

Starting code:

#include <iostream>

using namespace std;

int main() {

  int highwayNumber;

  cin >> highwayNumber;

  /* Start code here. */

  return 0;

}

Reference no: EM132200898

Questions Cloud

What is the precise winning percent that earns owner : Graph the relationship between quality (0
What is the relationship between a swap file : Give an example of both, how they are used and what are the conditions in which they are used. What is the relationship between a swap file, a page file and vir
Write a java program to create a binary search tree : Once the binary tree has been constructed write a function to reverse the binary search tree created in the earlier step.
Evolution of a data warehouse : Briefly describe the factors which have led to the evolution of a data warehouse?
Interstate highway numbers : Primary U.S. interstate highways are numbered 1-99. Odd numbers (like the 5 or 95) go north/south, and evens (like the 10 90) go east/west.
What is the certainty equivalent of the new gamble : Now suppose Joe decides to make a plan to reduce his consumption a little in each good year in order to have a bit more money in the bad year.
Defines the language given by the regular expression : Explain in words the language defined by the regular expression - draw a DFA that defines the language given by the regular expression.
Write a java program for client-server directory : The first two are for joining and leaving the list of players who are online and are willing to play. The last is to retrieve the list of online players.
Relationship between hadoop and mapreduce : Explain the relationship between Hadoop and MapReduce?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Form of the knapsack problem

One form of the knapsack problem is as follows: We are given a set of integers, A = a1, a2, ... , aN, and an integer, K. Is there a subset of A whose sum is exactly K?

  Security management

Reading and Research Assignment #1 Topic: Security Management 1. Search the Web and locate three (3) Web sites that relate to the topic. These sites could be white papers or research documents found on research databases, commercial or non-commercial..

  Explain windows command line and forms applications

1. Explain Windows Command Line and Forms applications? 2. Demonstrate Windows Form design?

  What is the rate of return of the acquisition

The machine has a life of 7 years, and it is expected to generate $15 000 in revenues in each year of its life. MARR is set at 20%.

  How a website can be compliant with web standards

Search the Web for information about "Web standards" and "accessiblity." Describe how a website can be compliant with Web standards, but

  Organization uses number of items

An organization uses number of items of a equipment to produce goods. Each item is at one LOCATION, of one TYPE and has a DETAILED_DISCRIPTION.

  Explain how fuzz based systems work

Explain how fuzz based systems work and provide a detailed example of a system that utilises fuzzy logic.

  Plot the input and output

1. Consider the audio system in a car. Some people like to hear a lot of bass. Give an equation, in your preference of time or frequency domain, for a bass boost

  Calculate poisson''s ratio

A Resistance-wire strain gauge uses soft iron wire of small diameter. Gauge factor is +4.2. Neglect piezo-resistive effect. Calculate Poisson's ratio.

  Advantages and disadvantages of the wan technology

What WAN technology would you recommend for this ski resort to connect their two locations to exchange data? Be sure to defend your recommendation.

  Loss prevention and data de-identification critical concerns

Why are data loss prevention and data de-identification critical concerns for enterprises or governments and what are the characteristics of appropriate control

  Governments and economists encourage such change

If technological change increases structural unemployment, why do most governments and economists encourage such change? Explain

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd