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
mojhsa [17]
3 years ago
15

Write an if statement that prints the message “Application accepted” if the variable workExperience is greater than or equal to

2 or the variable hasCollegeDegree is true.
Computers and Technology
2 answers:
meriva3 years ago
6 0

Answer:

if workExperience>=2 or hasCollegeDegree==True:

   print("Application accepted")

Explanation:

  • In the first line of code, we wrote an if statement that allows us to print a message if and only if the int variable workExperience is greater than 2 or the bool variable workExperience is True
  • In the second line of code, we print the message Application accepted if the if-statement evaluated to True

Note: This code was written in python but you can extend the same concept to any programing language using if, comparison operation, boolean operators and print function.

katovenus [111]3 years ago
4 0
If workExperience >= 2 or CollegeDegree is true:
print “Application accepted”
else:
print “Application denied”

You might be interested in
What is software?
vivado [14]

Answer:

Anything that tells hardware what to do and how to do it.

5 0
1 year ago
Determine the number of bytes necessary to store an uncompressed binary image of size 4000 × 3000 pixels
vladimir2022 [97]

Answer:  1,500,000 bytes.

Explanation:

If we assume that we have an image of 4000 pixels (picture elements) wide, by 3000 pixels height, a complete uncompressed image will be represented by 4000*3000= 12,000,000 pixels.

Now, if we are talking of a binary image, this means that each pixel will have, as a maximum, two possible values, so we will need only one bit per pixel.

This means that  we will need to store 12,000,000 bits.

As we know, 1 byte=8 bits.

So, we will need 12,000, 000/8 bytes ⇒ 1,500,000 bytes in order to store an uncompressed binary image of size 4000 x 3000 pixels.

3 0
2 years ago
Instructions
Thepotemich [5.8K]

The output file stream will be coded as such

   ofstream output_file;

   output_file.open("Ch4_Ex15_Output.txt", ios::out);

   output_file << balance;

   input.close();

   output_file.close();

   return 0;

}

<h3>Output file stream</h3>

Generally, Given the instructions we see that the program will "output account balance before and after withdrawal and service charges"

Therefore we must conclude at the output file stream bearing all information required.

double withdraw(double balance) {

   cout << "Current Balance in the account: " << balance << endl;

   if(balance <= 0) {

       cout << "Insufficent balance" << endl;

       return balance;

   }

   double withdraw;

   cout << "Amount of money for withdraw: "; cin >> withdraw;

   if(withdraw > 500) {

       cout << "$500 per day can be withdrawn!";

       return balance;

   }

   double charge = 0;

   if(balance >= withdraw) {

       balance -= withdraw;

       charge = (withdraw <= 300) ? 0 : (withdraw - 300) * 0.04;

   }

   else {

       char option;

       cout << "Insufficient funds! Service charged $25, Want to withdraw money?(Y/N): ";

       cin >> option;

       if(option == 'Y' || option == 'y') {

           balance -= withdraw;

           charge = 25;

       }

   }

   balance -= charge;

   cout << "balance after Withdraw: " << balance << endl;

   cout << "charge for transaction: " << charge << endl;

   return balance;

}

int main() {

   ifstream input;

   input.open("Ch4_Ex15_Data.txt", ios::in);

   double balance;

   input >> balance;

   balance = withdraw(balance);

   ofstream output_file;

\therefore the output stream is

   output_file.open("Ch4_Ex15_Output.txt", ios::out);

   output_file << balance;

   input.close();

   output_file.close();

   return 0;

}

More on Algorithm

brainly.com/question/11623795

8 0
1 year ago
Yet another variation: A better packet switched network employs the concept of acknowledgment. When the end user’s device receiv
dlinn [17]

Answer:

a. see explaination

b. 0.632

Explanation:

Packet switching is a method of grouping data that is transmitted over a digital network into packets. Packets are made of a header and a payload.

See attachment for the step by step solution of the given problem.

7 0
3 years ago
Give two examples of desktop publishing software
soldier1979 [14.2K]
There are quite a lot of desktop publishing software as of today.
I'll give you the names of some of it.
- Adobe inDesign - one of the most popular
- Corel Draw
- Microsoft Publisher
- Serif
- Ultra Xml
And more.
There are actually a lot if you are just about to check in the internet.
7 0
3 years ago
Other questions:
  • Which keyboard feature is a form feed character?
    14·1 answer
  • Write a Temperature class that will hold a temperature in Fahrenheit, and will provide methods to get and display the temperatur
    5·1 answer
  • Secure Wi-Fi networks and VPNs use _____ to secure data transferred over a network.
    13·1 answer
  • What was one complication caused by the tsunami that struck japan in 2011?
    15·1 answer
  • A film camera with only one lens is known as a(n)?
    11·1 answer
  • In terms of object-oriented programming, after a class is defined,
    11·1 answer
  • What is the different between ethical and legal issues?​
    6·1 answer
  • ______ is a type of computer software that is installed into devices such as printers, print servers, and various types of commu
    5·1 answer
  • Please help if you answer correcly i will give you brainelst!!!!!!!!!!!!!!!!!!
    6·2 answers
  • Please answer quickly :S
    7·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!