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
expeople1 [14]
3 years ago
11

Write two cin statements to get input values into birthMonth and birthYear. Then write a statement to output the month, a dash,

and the year. End with newline. The program will be tested with inputs 1 2000, and then with inputs 5 1950. Ex: If the input is 1 2000, the output is: 1-2000 Note: The input values come from user input, so be sure to use cin statements, as in cin >> birthMonth, to get those input values (and don't assign values directly as in birthMonth
Computers and Technology
1 answer:
snow_lady [41]3 years ago
6 0

Answer:

// here is code in c++.

#include <bits/stdc++.h>

using namespace std;

// main function

int main() {

// variables to read birth month and year

int birthMonth,birthYear;

cout<<"Enter the birth month:";

// read the birth month

cin>>birthMonth;

cout<<"Enter the birth Year:";

// read the birth year

cin>>birthYear;

// print the output

cout<<birthMonth<<"-"<<birthYear<<endl;

return 0;

}

Explanation:

Declare two variables "birthMonth" and "birthYear". Read the value of birthMonth and birthYear from user. Then print the birth month and birth year and a dash(-) in between them.

Output:

Enter the birth month:1                                                                                                                                      

Enter the birth Year:2000                                                                                                                                    

1-2000  

Enter the birth month:5                                                                                                                                      

Enter the birth Year:1950                                                                                                                                    

5-1950

You might be interested in
You want to read about Web journals. which keywords would best help you find this information?
ololo11 [35]
The answer is (B) and (D) web or journal, <span>web Not journal


</span> Keyword is part of search engine optimization. Search engine optimization is not that heard. A keyword in a sentence is that significant word used to find info when doing your research.
Always, pick keywords that indicate main concepts of your topic. When searching, connect your keywords with Boolean values like AND, OR, and NOT





6 0
3 years ago
Jamal is a graphic designer.a. What hardware tool would you suggest for his computing system? Include an explanation and the cos
Schach [20]

Answer:

Mac computer is the correct answer for option "a" in this question.

Adobe flash is the correct answer for option "b" in this question.

Mac OS  is the correct answer for option "c" in this question.

Explanation:

  • Hardware: Graphic designers must use Mac computers for the best graphic designing.

They support many of the software programs, graphic designers use. Whether the graphic designer chooses Mac or PC, it is important that the computer have a fast processing speed, large amount of hard drive storage and large monitor.

  • <u><em>Cost:</em></u> Approx $5999
  • Software:  Graphic designers must use Adobe flash for the best graphic designing.

Adobe flash help designers easily take graphic design to the Web using basic HTML language.It also helps in motion graphics,web designing etc.

  • <u><em>Cost:</em></u> Adobe Flash is free to install and use. Adobe Flash editing software starts at $99.
  • Operating system: Graphic designers must use Mac OS for the best graphic designing. Mac OS supports most of the software programs and  it inspired Microsoft Corporation to develop its own GUI.
  • <u><em>Cost:</em></u> The current version of Mac OS X costs $29.99 from the Mac's App Store.

3 0
4 years ago
Chris needs to take the opposite of a Boolean value. Which operator does so:
alina1380 [7]
B is the best answer
5 0
3 years ago
Write a program that asks the user for three strings. Then, print out whether the first string concatenated to the second string
ipn [44]

Answer:

import java.util.Scanner;

public class num5 {

   public static void main(String[] args) {

       Scanner in = new Scanner(System.in);

       System.out.println("Enter The First String");

       String str1 = in.next();

       System.out.println("Enter The Second String");

       String str2 = in.next();

       System.out.println("Enter The Third String");

       String str3 = in.next();

       String oneAndTwo = str1+str2;

       if(str3.equals(oneAndTwo)){

           System.out.println(str1+" + "+str2+" is equal to "+str3+"!");

       }

       else

           System.out.println(str1+" + "+str2+" is not equal to "+str3+"!");

   }

}

Explanation:

  • Implemented in Using Java Programming Language
  • Import Scanner Class to prompt and receive users' input
  • Create three string variables and store the three values entered by the user (str1, str2 and str3)
  • Concatenate str1 and str2 using the + operator and assign to a new variable
  • Use the if statement with Java's .equals() method to check for equality of the new string with the third string
  • Print the appropriate message if the equal or not
8 0
3 years ago
If you must use a credit card while in college what are some ways you can keep from getting in credit card debt?
marin [14]

Answer:

Pay attention to what you buy and limit yourself to an amount of money everyday.

Explanation:

This is just a simple way from spending a lot and limits your everyday spendings when you actually leave an amount for yourself.

3 0
4 years ago
Other questions:
  • An example of software is
    9·2 answers
  • How to remove info from a broken laptop and transfer?
    5·1 answer
  • Which of the following is the best example of a manager with a delegator leadership style
    13·2 answers
  • does someone know of a website where I can find free essays or assignments already answered (right or wrong, ain't matter), kind
    15·1 answer
  • Meaning of page break​
    8·1 answer
  • Classify the following skills: communication, creativity, and independence.
    15·1 answer
  • if ur parent gets mad at u and says something then u say something, why do they say "stop back talking'' if ur just starting a c
    7·2 answers
  • What is the largest place value in a 12 bit binary number?
    10·1 answer
  • In python
    9·1 answer
  • Python 3.12 LAB: Input and formatted output: Right-facing arrow Given input characters for an arrowhead and arrow body, print a
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!