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
aivan3 [116]
3 years ago
15

Give a regular expression for binary numbers. They can be integers or binary fractions. A leading - sign is always allowed. Lead

ing 0's are not allowed except when the integer part is 0. When the binary points is present, then neither the integer part nor the fractional part are allowed to be empty. If the integer part has more than 3 bits, then grouping with commas is required. Examples: Allowed: -0 1,111,010 -1,111.00 Not allowed: .11 1000 The 4-letter alphabet consists of 0, 1, dot, and comma.
Computers and Technology
1 answer:
Dmitry_Shevchenko [17]3 years ago
6 0

Solution :

We have to provide an expression for the binary numbers. There can be binary fractions or integers. Whenever there is leading 0, it is not allowed unless the integer part is a 0.

Thus the expression is :

$(-+ \in )$ $[(1+10+11+100+101+110+111)(,000+,001+,010+,011+,111+,100+,101+,110)^*$ $(\in +.(0+1)^*(0+1))+(0.(0+1)^*(0+1))]$

You might be interested in
Which guidelines should you follow when adding tables or spreadsheets to your presentations?
zhenek [66]
<span>What guidelines should you follow when adding tables or spreadsheets to your presentations?

a. Limit the number of columns to four.
b. Make them large enough so they can be seen by your audience.
c. Use a small font size (10-point or less) so all of your information fits on the slide.
d. Use at least eight rows.
e. Use column and row headers that are appropriate and descriptive.</span>

A, B, E are the answers. I know this is a different script but should help you if need be.
5 0
4 years ago
Read 2 more answers
Philip is thinking about customizing his motorcycle. A paint job, saddlebags, and a radio would cost $600. His motorcycle is old
Vikki [24]

Answer:

He will temporarily have less money in his bank account is the correct answer.

Explanation:

Philip is considering customizing his motorcycle. A saddlebags, a paint job, and a radio will cost $600. His motorcycle is vintage, so he already realized maybe sometime in the past two years he would required to get any other bike. To analyze the options, he builds a cost-benefit analysis table. He considers this, he might have less funds at that moment in his banking account.

7 0
4 years ago
sure the provided file named Furniture.cpp is open. The file includes variable declarations and output statements. Read them car
larisa [96]

This question is incomplete. The complete question is given below:

In this lab, you complete a partially written C++ program that is provided for you. The program, which was written for a furniture company, prints the name of the furniture item, its retail price, its wholesale price, the profit made on the piece of furniture, a sale price, and the profit made when the sale price is used.

Instructions

Ensure the provided file named Furniture.cpp is open.

The file includes variable declarations and output statements. Read them carefully before you proceed to the next step.

Design the logic and write the C++ code that will use assignment statements to:

Calculate the profit (profit) as the retail price minus the wholesale price

Calculate the sale price (salePrice) as 25 percent deducted from the retail price

Calculate the sale profit (saleProfit) as the sale price minus the wholesale price.

Execute the program by clicking the Run button. Your output should be as follows:

Item Name: TV Stand

Retail Price: $325

Wholesale Price: $200

Profit: $125  

Sale Price: $243.75

Sale Profit: $43.75

Code

// This program calculates profits and sales prices for a furniture company.

#include <iostream>

#include <string>

using namespace std;

int main()

{

string itemName = "TV Stand";

double retailPrice = 325.00;

double wholesalePrice = 200.00;

double salePrice;

double profit;

double saleProfit;

     

// Write your assignment statements here

     

cout << "Item Name: " << itemName << endl;

cout << "Retail Price: $" << retailPrice << endl;

cout << "Wholesale Price: $" << wholesalePrice << endl;

cout << "Profit: $" << profit << endl;  

cout << "Sale Price: $" << salePrice << endl;

cout << "Sale Profit: $" << saleProfit << endl;

return 0;

Answer:

#include <iostream>

#include <string>

#include <iomanip>

using namespace std;

int main()

{

  string itemName = "TV Stand";

  double retailPrice = 325.00;

  double wholesalePrice = 200.00;

  double salePrice;

  double profit;

  double saleProfit;

  profit=retailPrice-wholesalePrice;

  salePrice=retailPrice-retailPrice*.25;

  saleProfit=salePrice-wholesalePrice;

  cout<<fixed<<setprecision(2);

  cout << "Item Name: " << itemName << endl;

  cout << "Retail Price: $" << retailPrice << endl;

  cout << "Wholesale Price: $" << wholesalePrice << endl;

  cout << "Profit: $" << profit << endl;

  cout << "Sale Price: $" << salePrice << endl;

  cout << "Sale Profit: $" << saleProfit << endl;

  return 0;

}

Explanation:

  • Calculate profit on retailPrice by subtracting wholesalePrice from the retailPrice.
  • set salePrice as 25% by multiplying it with 0.25.
  • Calculate the profit on sale price by subtracting wholesalePrice from the salePrice.  
  • Finally print the values of item name, retail price, wholesale price, profit, sale price and sale profit respectively.

7 0
4 years ago
Who wants to play kahoot
Lapatulllka [165]

Answer:me

Explanation:

5 0
4 years ago
Read 2 more answers
Cad software is used to _______
Sholpan [36]

Answer:

Answer: Programs are software which is used to do a particular task. Explanation: The Program is a set of information or parameter used for a particular task and then executed by the programming language software

Explanation:

no explanation needed

4 0
4 years ago
Read 2 more answers
Other questions:
  • Which type of network is created when you use encrypted tunnels between a computer or a remote network and a private network thr
    13·1 answer
  • A network engineer arrives at work and discovers that many users are having problems when attempting to connect to the company n
    9·2 answers
  • ​Which SQL keyword is used to search for records?
    8·1 answer
  • Sending an email to customer support before looking through the site and reading the frequently asked questions is an example of
    5·1 answer
  • Which of the following best describes the protocols used on the Internet?
    9·1 answer
  • Which of the following is a setting in both the Transparency panel and the Mirror panel?
    10·1 answer
  • Internet Security: How can you work securely on the internet? What actions should be avoided and what are the pitfalls?
    9·1 answer
  • Write an algorithm and draw a flowchart to count the digits present in the given integer. ​
    9·1 answer
  • Which keyboard shortcut do we use to turn on APC?​
    13·1 answer
  • Which of the following statements are true regarding models? Select 3 options.
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!