Write a regular expression that matches the day of year such as "1-1-2018" or "7/4/1776". Dates like "9-31-1955", "3/29-2018", and"5-28/1956" should not be matched. time). Edit View Insert Format Tools Table

COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
1st Edition
ISBN:9780357392676
Author:FREUND, Steven
Publisher:FREUND, Steven
Chapter9: Formula Auditing, Data Validation, And Complex Problem Solving
Section: Chapter Questions
Problem 5EYW
icon
Related questions
Question
Question 10
Write a regular expression that matches the day of year such as "1-1-2018" or "7/4/1776". Dates like "9-31-1955", "3/29-2018", and"5-28/1956" should not be matched.
time).
Edit View Insert Format Tools Table
12pt v
Paragraph v BIU A
To
!!!
Transcribed Image Text:Question 10 Write a regular expression that matches the day of year such as "1-1-2018" or "7/4/1776". Dates like "9-31-1955", "3/29-2018", and"5-28/1956" should not be matched. time). Edit View Insert Format Tools Table 12pt v Paragraph v BIU A To !!!
Question 11
What will be the possible outputs for the following program before the lines a, b and c? Format your answer this way:
Line a:
" Outputis) here
Line b:
" Outputis) here
Line c
I Outputis) here
#include <iostream
#include <thread
#include <mutex>
using namespace std;
mutex ml;
mutex m2;
void funcA() {
for (int i = 0; i < 3; i++)
cout « i;
void funcB() {
uni que_lockamutex 1(m1);
for (int i = 6; i < 9; i++){
if (i == 8)
return;
cout <« i;
void funcC) {
m2. lock();
for (int i = 3;i < 6; i++)
cout <« i;
int main ) {
thread thi(funcA);
thread th2(funcA);
th1.join(); th2.join(); // a
thread th3(funcB);
thread th4(funcB);
th3. join(); th4.join(); // b
thread th5(funcC);
thread th6(funcC);
th5. join(); th6.join(); // c
return 0;
Transcribed Image Text:Question 11 What will be the possible outputs for the following program before the lines a, b and c? Format your answer this way: Line a: " Outputis) here Line b: " Outputis) here Line c I Outputis) here #include <iostream #include <thread #include <mutex> using namespace std; mutex ml; mutex m2; void funcA() { for (int i = 0; i < 3; i++) cout « i; void funcB() { uni que_lockamutex 1(m1); for (int i = 6; i < 9; i++){ if (i == 8) return; cout <« i; void funcC) { m2. lock(); for (int i = 3;i < 6; i++) cout <« i; int main ) { thread thi(funcA); thread th2(funcA); th1.join(); th2.join(); // a thread th3(funcB); thread th4(funcB); th3. join(); th4.join(); // b thread th5(funcC); thread th6(funcC); th5. join(); th6.join(); // c return 0;
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 3 images

Blurred answer
Knowledge Booster
Data Binding
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L
New Perspectives on HTML5, CSS3, and JavaScript
New Perspectives on HTML5, CSS3, and JavaScript
Computer Science
ISBN:
9781305503922
Author:
Patrick M. Carey
Publisher:
Cengage Learning
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning