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
denis23 [38]
3 years ago
15

If the algorithm does not have instructions for unanticipated results, the computer program will

Computers and Technology
1 answer:
bixtya [17]3 years ago
7 0
ANSWER: The computer program will ✔ halt . A(n) ✔ recipe is an algorithm.

BRAINLIEST please and good luck!
You might be interested in
8.9 Code Practice
jolli1 [7]

Answer: Here you go, change it however you like :)

Explanation:

v = [24, 20, 29, 32, 34, 29, 49, 46, 39, 23, 42, 24, 38]

usr = int(input("Enter number: "))

print(f"Index: {v.index(usr)}") if usr in v else print(-1)

5 0
3 years ago
Read 2 more answers
a user's given name followed by the user's age from standard input. Then use an ofstream object named outdata (which you must de
RUDIKE [14]

Answer:

See explaination for program code

Explanation:

#include <iostream>

#include <string>

#include <fstream>

using namespace std;

int main() {

string name;

int age;

cout << "Enter name of user: ";

getline(cin, name);

cout << "Enter age of user: ";

cin >> age;

ofstream outdata("outdata");

outdata << name << " " << age << endl;

outdata.close();

return 0;

}

4 0
3 years ago
Between the div tags below, type the code for a link to the second.html page. Use "Go to the Second Page" as the link text
marysya [2.9K]

A code for a link to the second.html page is given by <div>Go to the Second Page</div>.

<h3>What is a div tag?</h3>

A div tag is an abbreviation for division tag and it can be defined as a type of HTML tag that is designed and developed to break (divide) a webpage into several elements with their respective layout attributes.

In this scenario, a code for a link to the second.html page is given by <div>Go to the Second Page</div>.

<u>Note:</u> "Go to the Second Page" serves as the link text.

Read more on div tag here: brainly.com/question/14075748

#SPJ1

4 0
2 years ago
Which one of the following is a benefit of using a contact group?
lisov135 [29]

Answer:

There are some benefit of using a contact group.

Explanation:

An email address collection consists of a contact group (formerly known as a "distribution list."). You can send an E-mail or invitation to meet to all addresses at the same time by using a contact group. In the messages, task requests, requests for meetings, and other contact groups you can include contact groups. Another advantage of contact groups is that they categorize your contacts so that a particular person can be found more easily in future. Depending on how far you want to reach with your contact organization, you can contact one group or more groups

6 0
3 years ago
Can you debug the following code using the given test code?public class SavingAccount{ // interest rate for all accounts private
Lyrx [107]

Answer:

Explanation:

The reason the code was not working was due to a couple of errors. First, the SavingAccount class needed to be public so that it can be accessed within the same file. Secondly, the savingsBalance variable was set to final and therefore could not be modified, the final keyword needed to be removed. Lastly, the constructor for the SavingAccount class was incorrect. Constructors do not use the keyword void and instance class variables need to be referenced using the this keyword.

class SavingAccount{

   // interest rate for all accounts

    private static double annualInterestRate = 0;

    private double savingsBalance;

   public SavingAccount(double savingsBalance) {

       this.savingsBalance = savingsBalance;

   }

   public void calculateMonthlyInterest() {

        savingsBalance += savingsBalance * ( annualInterestRate / 12.0 );

    }// end method calculateMonthlyInterest

   // modify interest rate

   public static void modifyInterestRate( double newRate ) {

        annualInterestRate = ( newRate >= 0 && newRate <= 1.0 ) ? newRate : 0.04;

    } // end method modifyInterestRate

   // get string representation of SavingAccount

   public String toString() { return String.format( "$%.2f", savingsBalance );

    } // end method toSavingAccountString

}// end class SavingAccount

// Using this test codepublic

//

class SavingAccountTest{

   public static void main(String[] args) {

       SavingAccount s1 = new SavingAccount(400);

       SavingAccount s2 = new SavingAccount(1000);

       SavingAccount.modifyInterestRate(0.05);

       System.out.printf("SavingAccount 1 is: %s\nSavingAccount 2 is: %s", s1, s2);

       s1.calculateMonthlyInterest(); s2.calculateMonthlyInterest();

       System.out.printf("\nSavingAccount 1 after the interest is: %s\nSavingAccount 2 after the interest is: %s", s1, s2);

       SavingAccount.modifyInterestRate(.025);

       s1.calculateMonthlyInterest();

       s2.calculateMonthlyInterest();

       System.out.printf("\nSavingAccount 1 after the new interest is: %s\nSavingAccount 2 after the new interest is: %s", s1, s2); }}

6 0
3 years ago
Other questions:
  • The email application used by Jim’s office is sending emails with viruses attached to them to user’s computers. What step should
    13·2 answers
  • How do computers use input and output to get and give the information that they need to solve problems?
    10·1 answer
  • Explain the use of keyboard shortcuts and key combinations. You are at the tenth page of a 20-page document. You need to make ch
    14·1 answer
  • Mario wants to make his document accessible to technology users. He first needs to access the Accessibility Checker. He can do t
    14·1 answer
  • When a project manager can look at the progress towards the goals set, this is considered...?
    11·2 answers
  • What is the name of the formal procedure scientists use to study the world around them?
    14·2 answers
  • What determines the color of a rock?
    11·2 answers
  • What is the Purpose and function of the Global Positioning System (GPS)?
    7·1 answer
  • Qué es un bloque de programación?
    5·1 answer
  • Consider the following code: x = 9 y = -2 z = 2 print (x + y * z) What is output? 9 13 14 5
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!