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
Travka [436]
3 years ago
10

Define a method printFeetInchShort, with int parameters numFeet and numInches, that prints using ' and " shorthand. End with a n

ewline. Ex: printFeetInchShort(5, 8) prints: 5' 8"
Computers and Technology
1 answer:
avanturin [10]3 years ago
7 0

Answer:

Follows are the progrm to this question:

#include <iostream>//defining header file

using namespace std;

void printFeetInchShort (int numFeet , int numInches)//defining a method printFeetInchShort

{

cout<<numFeet <<"'"<<numInches<< " \" ";//print value with ' and "

}

int main()//defining main method

{

printFeetInchShort(5,8);//call method by pssaing integer value

   return 0;

}

Output:

5'8 "  

Explanation:

In the above-given program, a method "printFeetInchShort" is defined, that accepts two integer variable, that is "numFeet and numInches" in its parameters.

  • Inside the method, a print method is used that prints integer variable value with " '  and " " value.
  • At the last step, the main method is defined, which calls the above-given method by passing integer value in its parameters.      

You might be interested in
I need help 50 points and brainiest if you answer
Troyanec [42]

Answer:

200

Explanation:

6 0
3 years ago
Read 2 more answers
Write code that causes a "triangle" of asterisks of size n to be output to the screen. specifically, n lines should be printed o
stealth61 [152]
Like this
#include <stdio.h>void  pa(int n){ if(!n){  printf("\n");return;}printf("*");pa(n-1);}void lines(int n){if(!n)  return;lines(n-1);pa(n);}int   main(void){lines(5);return 0;}
4 0
4 years ago
Please help due today please help me!!!!!
irakobra [83]
A plotter is a special output device used to produce hard copies of large graphs and designs on paper, such as construction maps, engineering drawings, architectural plans and business charts.
~

Computer output devices receive information from the computer, and carry data that has been processed by the computer to the user. Output devices provide data in myriad different forms, some of which include audio, visual, and hard copy media.
~

They are electroacoustic transducers, which convert an electrical signal to a corresponding SOUND.
3 0
3 years ago
Provide an example of making multiple paragraphs tags using html and at least 3 sentences.
DiKsa [7]

Answer:

<p> tag:

The <p> tag in HTML defines a paragraph. These have both opening and closing tag. So anything mentioned within <p> and </p> is treated as a paragraph. Most browsers read a line as a paragraph even if we don’t use the closing tag i.e, </p>, but this may raise unexpected results. So, it is both a good convention and we must use the closing tag.

Syntax:

<p> Content </p>  

Example:

<!DOCTYPE html>  

<html>  

<head>  

   <title>Paragraph</title>  

</head>  

<body>  

   <p>A Computer Science portal for geeks.</p>  

   <p>It contains well written, well thought articles.</p>  

</body>  

</html>

Output:

A computer Science Portal for geeks.

It contains well written, well thought articles.

6 0
3 years ago
Convert 12 bits to bytes​
Genrish500 [490]

Answer:

1.5 bytes

Explanation:

I byte = 8 bit ....

3 0
2 years ago
Other questions:
  • To track website behavior data with google analytics, which steps will you need to complete?
    14·1 answer
  • Java languageThe cost to ship a package is a flat fee of 75 cents plus 25 cents per pound.1. Declare a constant named CENTS_PER_
    5·2 answers
  • Sql provides the ________ technique, which involves placing an inner query within the where or having clause of an outer query.
    8·1 answer
  • How does a main program recieve info from a function in c++?
    6·1 answer
  • A technician is configuring a new SOHO multifunction wireless router at a customer’s location to provide network access to sever
    12·1 answer
  • A local bank has an in-house application which handles sensitive financial data in a private subnet. After the data is processed
    15·1 answer
  • Write a script that inputs a line of encrypted text and a distance value and outputs plaintext using a Caesar cipher. The script
    11·1 answer
  • Dates of birth were entered into a computer program . The data was stored in the format DAY/MONTH/YEAR.The program rejected this
    12·1 answer
  • Develop an algorithm to print the names of the candidates who should receive a refund. A refund is due if the candidate's votes
    7·1 answer
  • __________ is a software-enabled technique that can change the hardcoded mac address to any mac address and thus overcome mac ad
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!