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
morpeh [17]
3 years ago
14

Write a program called playwaltz.py that accepts from standard input, a sequence of 32 integers representing the 32 measures of

a waltz, and plays the waltz to standard audio. Before playing any audio, your program must check if the inputs are correct, and if they are not, must call sys.exit(message) to exit the program with an appropriate error message. The following errors must be handled:
• If the number of measures is not 32, exit with the message "A waltz must contain exactly 32 measures".
• If a minuet measure is not from [1,176], exit with the message "A minuet measure must be from 1, 176)".
• If a trio measure is not from (1,96), exit with the message "A trio measure must be from (1, 96)"
Computers and Technology
1 answer:
Mila [183]3 years ago
6 0

thats a lot of damage Explanation:

You might be interested in
While there are many types of sediments, those that make up sedimentary rocks must be transported by running water.
Yuri [45]
The correct answer would be true
8 0
4 years ago
Jacobson furniture pseudo-code
romanna [79]

Answer:

We need to add four labels Taxable Income, Tax rate, total tax, and Total Due. And in front of them, you can add four textBoxes, or labels or as required.

The Tax rate is 5%.

And

Explanation:

BtnCalc_Click will calculate and display in lblTax

double tax = Convert.ToDouble((textBox1.Text)) * 5/100;

double Roundedtax = Math.Round(tax, 2);

textBox2.Text = Convert.ToString(Roundedtax);

textBox2.Show();

// we can use lblTax instead of textBox2. The further code will be almost change, and we need to use lblTax label instead of textBox2.Text.

BtnCalc_Click will calculate and display in lblTotal

textBox3.Text = Convert.ToString(Convert.ToDouble(textBox1.Text) + Convert.ToDouble(textBox2.Text));

textBox3.Show();

//This is lblTotal or the total Tax. We can use lblTotal label instead of the textBox3.Text.

BtnExit_Click will end the application:

Use this code in this method.

this.Close();

// This closes the application immediately on click on the Exit button.

5 0
4 years ago
What is one potential problem with the following loop? System.out.print("Enter integers. Enter -1 to exit."); System.out.println
iris [78.8K]

Answer:

The answer to this question can be given as  

The potential problem with the loop is it's counts when the user enters -1 from the keyboard, so the count will too many.

Explanation:

In the program there some line is missing. So the right program of the  question can be given as:  

import java.util.*;     //import package for take input from user.

public class Main     //define main class.

{

public static void main(String[] args)//define main function

{

Scanner scan=new Scanner(System.in);          //creating object.

//print values.

System.out.print("Enter integers. Enter -1 to exit.");

System.out.println(" Count of integers entered will be returned.");  

 int n=0,c=0;           //declaring integer variable.

  while (n != -1)             //loop

   {

       n = scan.nextInt();               //take input by user and hold on variable n.  

       c++;

   }

 System.out.println(c);               //print value.

}

}

output:

Enter integers. Enter -1 to exit. Count of integers entered will be returned.

-1

1  

7 0
4 years ago
Which technologies are currently used in health ​
GaryK [48]
1. Portable Monitors. ...
2. Smart Beds. ...
3. Wearable Devices. ...
4. Electronic Health Records. ...
5. Centralized Command Centers. ...
6. Telehealth and Apps.
7 0
2 years ago
What term identifies a blank screen or animation that automatically displays on a computer monitor after a specified period of i
Sveta_85 [38]
The answer is a screensaver
5 0
3 years ago
Other questions:
  • Which examples demonstrate appropriate use of media for a school project? Check all that apply. showing cartoons to teach about
    6·2 answers
  • Using the College Registration example from Section 6.7.3 as a starting point, do the following:
    5·1 answer
  • Select the most likely outcome of making only on-time minimum payments to a credit card with a balance for an entire year?
    7·2 answers
  • (15 POINTS) Integrated Circuits Of Made Up Of _____ That Carry The Electrical Current.
    10·1 answer
  • In Microsoft Word you can access _ the command to the mini toolbar
    14·2 answers
  • A small network used for communication between personal computing devices is known as?
    8·1 answer
  • Organizational Units are typically configured to: prevent companies from sharing resources. ensure that the system password is t
    13·1 answer
  • Company Wizzy is having trouble with network security. Issues with authentication, viruses, malware/spyware, and other network i
    12·1 answer
  • How do I convert years to days on Python. For example, if I were to enter 3 years it should output "You are 1095 days old".
    5·1 answer
  • Which type of word processing programs enables users to include illustrations within the program?
    10·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!