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
Volgvan
3 years ago
8

Sam’s instructor suggests a top-down programming approach. Which of the following should Sam create in order to follow this sugg

estion?
a binary code
an editor
modules
a decimal variable
Computers and Technology
2 answers:
Deffense [45]3 years ago
8 0

Answer:

Modules is the answer

Explanation:

Mark me brainlist?

Pachacha [2.7K]3 years ago
6 0
Modules is the correct answer… hope this helps, if you need any help don’t be afraid to contact me! ;)
You might be interested in
On the Cities worksheet, click cell H13 and enter the function that calculates the total costs for the first city. Copy the func
alex41 [277]

Answer:

1, 511

Explanation:

See attachment

7 0
4 years ago
Hello<br> mini crewmate :) ඞ
Art [367]

Answer:

Hi, thx for the free points, have a great day/night, and stay safe!ඞ

6 0
3 years ago
Read 2 more answers
Where deep convolutional neural network is used in real life
MrMuchimi

Answer:

Business applications of Convolutional Neural Networks. Image Classification - Search Engines, Recommender Systems, Social Media. Face Recognition Applications of RNN is Social Media, Identification procedures, Surveillance. Legal, Banking, Insurance, Document digitization - Optical Character Recognition.

4 0
2 years ago
Write an If...Then statement that assigns 0 to intX when intY is equal to 20
BigorU [14]

Answer:

wh,,what?

Explanation:

3 0
3 years ago
Read 2 more answers
Write a program that converts a number entered in Roman numerals to decimal.
Montano1993 [528]

Answer:

Here is the JAVA program:

import java.util.Scanner;   // for importing scanner class

public class RomanToDecimal{  //class to convert roman numeral to decimal

       static String romNum;  // variable that stores roman numeral

       static int decNum;  //variable that stores decimal number

       public static void main(String args[]) {  //start of the program

              //romtodec object created

              RomanToDecimal romtodec = new RomanToDecimal();  

//call function decimalConversion() that converts roman numeral to decimal

              romtodec. decimalConversion();  

//call function displayRomanNumeral to display the results of conversion

               romtodec. displayRomanNumeral(romNum);

//call function to display the decimal no. of roman numeral

               romtodec . displayDecimalNumber(decNum);   }

//method decimalConversion to convert Roman numeral to decimal

     public void decimalConversion () {

     Scanner scan = new Scanner(System.in);  //to get input

       //prompts user to enter a Roman numeral

     System.out.print("enter a Roman numeral: ");

               romNum = scan.nextLine();  //reads input    

               //stores the length of the entered Roman numeral                                            

                int length=  romNum.length();  

               int number=0;  //initializes number to 0

               int prevNum = 0;  //initializes previous number to 0

          //loops through the length of the input Roman numeral

               for (int i=length-1;i>=0;i--)  

//charAt() method returns the roman numeral symbol at the index i

               { char symbol =  romNum.charAt(i);

       //every symbol will be converted to upper case

                       symbol = Character.toUpperCase(symbol);

//switch statement tests the symbol variable for equality against a list of //numerals given and each numeral is assigned its equal decimal value.

                         switch(symbol)

                       {   case 'I':

                               prevNum = number;

                               number = 1;

                               break;

                            case 'V':

                                    prevNum = number;

                               number = 5;

                               break;

                               case 'X':

                                       prevNum = number;

                               number = 10;

                                break;

                               case 'L':

                                       prevNum = number;

                               number = 50;

                               break;

                               case 'C':

                                        prevNum = number;

                               number = 100;

                               break;

                               case 'D':

                                        prevNum = number;

                               number = 500;

                               break;

                               case 'M':

                                        prevNum = number;

                               number = 1000;

                               break; }          

/*checks if the number is greater than previous number

if the value of current roman symbol (character) is greater than the next

symbol's value. then add value of current roman symbol to the decNum

else subtract the value of current roman symbol from the value of its next symbol. */              

                       if (number>prevNum)

                           { decNum= decNum+number;  }

                       else

                          decNum= decNum-number;  }

//displays the decimal value of the roman numeral

       public static void displayRomanNumeral (String romNum){

               System.out.println ("The Roman numeral "+romNum+" is equal to decimal number"+decNum); }

//displays the number as decimal

           public static void displayDecimalNumber (int decNum){

       System.out.println ("The decimal number is: " + decNum);  } }      

Output:

enter a Roman numeral: MCXIV

The Roman numeral MCXIV is equal to decimal number 1114

Output:

enter a Roman numeral: CCCLIX

The Roman numeral CCCLIX is equal to decimal number 359

Output:

enter a Roman numeral: MDCLXVI

The Roman numeral MDCLXVI is equal to decimal number 1666

5 0
4 years ago
Other questions:
  • The process of saving files to disk is called.<br> A.read<br> B. Write<br> C. Lock<br> D. Protect
    6·1 answer
  • This procedure protects against the loss of data
    5·1 answer
  • A ____ is used to perform a forward-only (sequential) access of the data in the data source while a ____ is used to populate a d
    11·1 answer
  • Declare a Scanner reference variable fileInput, and assign it a newly created Scanner object that is associated with a file name
    10·1 answer
  • You are part of an Information Systems project team. Your job is to ensure that the technology and vendor suggested for use in t
    12·1 answer
  • When you are giving a presentation, which of these elements will help you to explain the content better
    9·1 answer
  • Who watches the show gravity falls, if you do, if you play the theme song for the first episode backwards you get a hiding messi
    11·2 answers
  • Complete the getOdds method so it returns a new ArrayList of Integers containing all odd Integers from the parameter ArrayList v
    13·1 answer
  • Write a paragraph on 'Save Earth Save Life.'​
    12·1 answer
  • When a motherboard fails, you can select and buy a new board to replace it. Suppose the motherboard in your computer has failed
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!