Catherine took her camera to the repair shop. The technician at the shop told her that acid had leaked into her camera. What could be the possible reason for acid leaking into Catherine’s camera?

A. She used the camera even though the battery was almost empty.
B. She wiped the camera lens with a moist cloth.
C. She left the camera in harsh daylight.
D. She left fully discharged batteries in her camera.

Answers

Answer 1

Answer:

B

Explanation:


Related Questions

Are AWS Cloud Consulting Services Worth The Investment?

Answers

AWS consulting services can help you with everything from developing a cloud migration strategy to optimizing your use of AWS once you're up and running.

And because AWS is constantly innovating, these services can help you keep up with the latest changes and ensure that you're getting the most out of your investment.

AWS consulting services let your business journey into the cloud seamlessly with certified AWS consultants. With decades worth of experience in designing and implementing robust solutions, they can help you define your needs while executing on them with expert execution from start to finish! AWS Cloud Implementation Strategy.

The goal of AWS consulting is to assist in planning AWS migration, design and aid in the implementation of AWS-based apps, as well as to avoid redundant cloud development and tenancy costs. Project feasibility assessment backed with the reports on anticipated Total Cost of Ownership and Return on Investment.

Learn more about AWS consulting, here:https://brainly.com/question/29708909

#SPJ1

. Find the sum of the squares of the integers from 1 to MySquare, where
MySquare is input by the user. Be sure to check that the user enters a positive
integer.

Answers

Answer:

in c

Explanation:

#include <stdio.h>

int sumSquares(int n) {

   if(n == 0) return 0; else if (n == 1) return 1; else return (n*n) + sumSquares(n - 1);

   }

   int main() {

       int mySquare;

       puts("Enter mySquare : ");

       scanf("%d", &mySquare);

       if(mySquare < 0) mySquare *= -1;// makes mySquare  positive if it was negative

printf("Sum of squares: %d", sumSquares(mySquare));

   }

To fill the entire background of a container use ___, it enlarges until it fills the whole element


repeat:both


full


cover


fill

Answers

Answer:

cover

Explanation:

What is the easiest way to create a resume in Word with predefined content that can be replaced with your information?

Answers

The easiest way to create a resume in Word with predefined content that can be replaced with your information is to use a resume template.

What is resume?

A resume, often known as a curriculum vitae (CV) in English outside of North America, is a document written and utilised by an individual to present their background, abilities, and accomplishments. Resumes can be used for a variety of reasons, but they are most commonly utilised to find new job. A CV often includes a "summary" of relevant employment experience and education. The resume is frequently one of the first items a potential employer sees about the job seeker, along with a cover letter and sometimes an application for employment, and is typically used to screen applicants, often followed by an interview.

To learn more about resume

https://brainly.com/question/14178136

#SPJ13

10+2 is 12 but it said 13 im very confused can u please help mee

Answers

Mathematically, 10+2 is 12. So your answer is correct. However, if you are trying to write a code that adds 10 + 2, you may need to troubleshoot the code to find where the bug is.

What is troubleshooting?

Troubleshooting is described as the process through which programmers detect problems that arise inside a specific system. It exists at a higher level than debugging since it applies to many more aspects of the system.

As previously stated, debugging is a subset of troubleshooting. While debugging focuses on small, local instances that can be identified and fixed in a single session, troubleshooting is a holistic process that considers all of the components in a system, including team processes, and how they interact with one another.

Learn more about Math operations:
https://brainly.com/question/199119
#SPJ1

The index is the ____________ of a piece of data.

An individual piece of data in a list is called an __________.

For Questions 3-5, consider the following code:

stuff = []




stuff.append(1.0)

stuff.append(2.0)

stuff.append(3.0)

stuff.append(4.0)

stuff.append(5.0)




print(stuff)


What data type are the elements in stuff?

What is the output for print(len(stuff))?

What is the output for print(stuff[0])?

Consider the following code:

price = [1, 2, 3, 4, 5]

This code is an example of a(n) ______________ _____________.

Group of answer choices

number list

int list

price list

initializer list

Answers

Answer:

The index is the position of a piece of data in a list.

An individual piece of data in a list is called an element.

The elements in stuff are float data type.

The output for print(len(stuff)) is 5, which is the number of elements in the stuff list.

The output for print(stuff[0]) is 1.0, which is the first element of the stuff list.

The code price = [1, 2, 3, 4, 5] is an example of a list that contains integer elements. We can call this list an integer list or simply a list.

In Coral Code Language - A half-life is the amount of time it takes for a substance or entity to fall to half its original value. Caffeine has a half-life of about 6 hours in humans. Given the caffeine amount (in mg) as input, output the caffeine level after 6, 12, and 18 hours.

Ex: If the input is 100, the output is:

After 6 hours: 50.0 mg
After 12 hours: 25.0 mg
After 18 hours: 12.5 mg
Note: A cup of coffee has about 100 mg. A soda has about 40 mg. An "energy" drink (a misnomer) has between 100 mg and 200 mg.

Answers

To calculate the caffeine level after 6, 12, and 18 hours using the half-life of 6 hours, you can use the formula:

Caffeine level = Initial caffeine amount * (0.5 ^ (time elapsed / half-life))

Here's the Coral Code to calculate the caffeine level:

function calculateCaffeineLevel(initialCaffeineAmount) {

 const halfLife = 6; // Half-life of caffeine in hours

 const levelAfter6Hours = initialCaffeineAmount * Math.pow(0.5, 6 / halfLife);

 const levelAfter12Hours = initialCaffeineAmount * Math.pow(0.5, 12 / halfLife);

 const levelAfter18Hours = initialCaffeineAmount * Math.pow(0.5, 18/ halfLife);

 return {

   'After 6 hours': levelAfter6Hours.toFixed(1),

   'After 12 hours': levelAfter12Hours.toFixed(1),

   'After 18 hours': levelAfter18Hours.toFixed(1)

 };

}

// Example usage:

const initialCaffeineAmount = 100;

const caffeineLevels = calculateCaffeineLevel(initialCaffeineAmount);

console.log('After 6 hours:', caffeineLevels['After 6 hours'], 'mg');

console.log('After 12 hours:', caffeineLevels['After 12 hours'], 'mg');

console.log('After 18 hours:', caffeineLevels['After 18 hours'], 'mg');

When you run this code with an initial caffeine amount of 100 mg, it will output the caffeine levels after 6, 12, and 18 hours:

After 6 hours: 50.0 mg

After 12 hours: 25.0 mg

After 18 hours: 12.5 mg

You can replace the initialCaffeineAmount variable with any other value to calculate the caffeine levels for different initial amounts.

for similar questions on Coral Code Language.

https://brainly.com/question/31161819

#SPJ8

7. Complete the following problem below in java
The program will first display a menu that enables the users to choose whether they
want to view all students 'records or view only the records of a specific student by the
student's id. See sample below.
MENU
1, View all students' records
2. View a student's records by ID
Please enter your choice 1
If the user types in for Choice 1, it displays this:
StudentID | Quiz1 | Quiz2 | Mid-Term | Final |
1232
| 10 | 23
56
2343
| 45
143
124
| 78 |
2343
| 34
145
145
145
13423
| 67 16 165
|56|
Example:
11232
145
If the user types in for Choice 2, it will ask the user to enter in an ID. If the user enters in
an invalid ID, the user has to keep entering one in until a correct one is entered. Once a
valid ID is entered, will display the students ID, Quiz1, Quiz2, Mid-Term, and Final
grade.
| 10 | 23
145
| 56 |

7. Complete the following problem below in javaThe program will first display a menu that enables the

Answers

Answer:

import java.util.Scanner;

public class Linkify {

   public static void main(String[] args) {

       int[][] records = {

           {1232, 10, 23, 45, 56},

           {2343, 45, 43, 24, 78},

           {2343, 34, 45, 45, 45},

           {3423, 67, 65, 65, 56}

       };

       

       Scanner input = new Scanner(System.in);

       int choice;

       

       do {

           System.out.println("MENU");

           System.out.println("1. View all students' records");

           System.out.println("2. View a student's records by ID");

           System.out.print("Please enter your choice: ");

           choice = input.nextInt();

           

           switch(choice) {

               case 1:

                   System.out.println("| StudentID | Quiz1 | Quiz2 | Mid-Term | Final |");

                   for(int i = 0; i < records.length; i++) {

                       System.out.printf("| %-9d | %-5d | %-5d | %-8d | %-5d |\n",

                                         records[i][0], records[i][1], records[i][2],

                                         records[i][3], records[i][4]);

                   }

                   break;

               case 2:

                   System.out.print("Enter a student ID: ");

                   int id = input.nextInt();

                   boolean found = false;

                   for(int i = 0; i < records.length; i++) {

                       if(records[i][0] == id) {

                           System.out.printf("| %-9d | %-5d | %-5d | %-8d | %-5d |\n",

                                             records[i][0], records[i][1], records[i][2],

                                             records[i][3], records[i][4]);

                           found = true;

                           break;

                       }

                   }

                   if(!found) {

                       System.out.println("Invalid ID, please try again.");

                   }

                   break;

               default:

                   System.out.println("Invalid choice, please try again.");

                   break;

           }

           

           System.out.println();

       } while(choice != 1 && choice != 2);

       

       input.close();

   }

}

Explanation:

This program first initializes a 2D array called records with the student records data. It then displays a menu with two choices: 1) view all student records, or 2) view a specific student's record by ID.

The program uses a do-while loop to keep displaying the menu and accepting input until the user chooses either option 1 or option 2. Inside the switch statement, the program either loops through the entire records array to print all student records or prompts the user to enter a student ID and searches the records array for a matching ID to print the corresponding record.

The printf method is used to format the output into columns with fixed widths. If an invalid choice or ID is entered, an error message is displayed and the menu is displayed again. Once the user chooses either option 1 or option 2, the program exits.

discuss MIS as a technology based solution must address all the requirements across any
structure of the organization. This means particularly there are information to be
shared along the organization

Answers

MIS stands for Management Information System, which is a technology-based solution that assists organizations in making strategic decisions. It aids in the efficient organization of information, making it easier to locate, track, and manage. MIS is an essential tool that assists in the streamlining of an organization's operations, resulting in increased productivity and reduced costs.

It is critical for an MIS system to address the needs of any organization's structure. This implies that the information gathered through the MIS should be easily accessible to all levels of the organization. It must be capable of handling a wide range of activities and functions, including financial and accounting data, human resources, production, and inventory management.MIS systems must be scalable to meet the needs of a company as it expands.

The information stored in an MIS should be able to be shared across the organization, from the highest to the lowest level. This feature allows for smooth communication and collaboration among departments and employees, which leads to better decision-making and increased productivity.

Furthermore, MIS systems must provide a comprehensive overview of a company's operations. This implies that it must be capable of tracking and recording all relevant information. It should provide a real-time picture of the company's performance by gathering and analyzing data from a variety of sources. As a result, businesses can take quick action to resolve problems and capitalize on opportunities.

For more such questions on Management Information System, click on:

https://brainly.com/question/14688347

#SPJ8

in python Simple geometry can compute the height of an object from the object's shadow length and shadow angle using the formula: tan(angleElevation) = treeHeight / shadowLength. Given the shadow length and angle of elevation, compute the tree height.

Sample output with inputs: 0.4 17.5
Tree height: 7.398881327917831

Answers

Answer:

import math

angle = float(input('Enter Angle: '))

shadowLength = float5(input('Enter Shadow Length: '))

tree_height = math.tan(angle)*shadowLength

print('Tree Height = {}'.format(tree_height))

Explanation:

From the equation given, the first step is to derive the equation for calculating the Tree Height.

In order to calculate the tangent of an angle, the math module has to be imported. math module allows the program to perform advanced math operations.

The program then prompts the user to input values for angle and shadow length.

The inputted values are converted to floats and used in the equation that was derived for Tree height.

Three height is evaluated and the result is printed to the screen

in python Simple geometry can compute the height of an object from the object's shadow length and shadow

TCP is a more dependable protocol than UDP because TCP is_____ latent/connectionless/connection-oriented/encapsulated

Answers

Answer:

connection-oriented

Explanation:

Answer:

TCP is a more dependable protocol than UDP because TCP is

connection-oriented

Explanation:

Because I took a guess and that was the  

How does a MIPS pseudo-instruction (as defined in the textbook) differ from a built-in MIPS hardware instruction (i.e., true-op)?

Answers

A pseudo-instruction is an instruction that is not recognized by the hardware of a MIPS processor. It is basically a way for the programmer to write code that is easier for them to read and understand. It is then translated by the assembler into one or more true-op instructions, which are instructions that the processor can actually execute.

What is MIPS?
MIPS (Microprocessor without Interlocked Pipeline Stages) is a Reduced Instruction Set Computing (RISC) architecture developed by MIPS Technologies, which is now a subsidiary of Wave Computing. It is widely used in embedded systems, such as consumer electronics and network routers, as well as in supercomputers and workstations. MIPS is a load/store architecture, meaning that data must be moved between the processor and memory in order to be operated on.

To know more about MIPS
https://brainly.com/question/15396687
#SPJ1

what is the fullform of BIT​

Answers

▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

The full Form of BIT is "Binary digit" which is the basic unit of information in computing . A Binary digit can be 0 or 1 . 0 represents off state & 1 represents on state .

▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

writer an obituary about macbeth​

Answers

Answer:

hi

Explanation:

What is the best GPU for the computer I am building.

Answers

Answer:

If it is a gaming pc, you should use a high end gpu such as Nvidia Gtx 1650+ or if u want rtx, you should also go and buy a very high 350v power.

Explanation:

If it is general, you should use something in Intel Hd Graphics series but not more than 3000 below.

If it is for both, best I can recommend is Gtx 1650

If it is mining BTC, ETC etc. you should get BEST graphics card there is out there for gaming.

Four data channels (digital), each
transmitting at 1 Mbps, use a
satellite channel of 1 MHz. Design
an appropriate configuration, using
FDM.

Answers

Answer:

To configure the four 1 Mbps data channels over the 1 MHz satellite channel using Frequency Division Multiplexing (FDM), each of the four channels should be allocated 250 kHz of bandwidth. The total bandwidth of the four channels combined is then 1 MHz, which matches the capacity of the satellite channel. The resulting frequency division multiplexing configuration will thus consist of four different channels separated by 250 kHz each, allowing each channel to transmit data at 1 Mbps

Explanation:

Advika needs to send files from one computer to another computer. Which of the following methods is the simplest ways to accomplish this task?

Answers

Make sure the two PCs are joined with the same Wi-Fi networks. Locate the file you want to send using File Explorer.

What is a computer?

A laptop is an electronic tool for handling data or information. It has the power to store, retrieve, and process data. You may already be aware of the fact that a computer may be used to make a report, send emails, play games, and surf the Internet.

What component of a computer is most vital?

Your computer's "brain" is the central developed the ability (CPU), often known as the processor. The complex calculations and programming that your computer performs while running apps or programs are all handled by the CPU.

To know more about computer visit:

https://brainly.com/question/21474169

#SPJ1

How is a cryptocurrency exchange different from a cryptocurrency
wallet?

A There is no difference since all wallets are hosted on exchanges.

B Exchanges are only used to make transactions, not to store cryptocurrency.

C Exchanges are offline whereas wallets are always connected to the internet.

D An exchange controls your keys but you control your cryptocurrency.

Answers

Exchanges are only used to make transactions, not to store cryptocurrency. Option B

What is Cryptocurrency exchanges versus cryptocurrency wallets?

Cryptocurrency exchanges are platforms that allow users to trade various cryptocurrencies for other digital assets or fiat currency. While some exchanges may offer temporary storage solutions, their primary function is to facilitate transactions between users.

On the other hand, cryptocurrency wallets are designed to store, send, and receive cryptocurrencies securely. Wallets can be hardware-based, software-based, or even paper-based, and they help users manage their private keys, which are essential for accessing and controlling their cryptocurrency holdings.

Find more exercises related to Cryptocurrency exchanges;

https://brainly.com/question/30071191

#SPJ1

True or False: Busy people prefer your email as one big paragraph rather than adding line breaks for new sections/paragraphs. You need to gauge each situation and make the best decision at the time.

Answers

Based on the information given regarding how email should be written, it can be deduced that the statement is false.

Importance of emails.

It should be noted that email is an important method that is used for communication. It's fast, cheap, and easily accessible.

People do not prefer your email as one big paragraph rather, it's important to add line breaks for new sections or paragraphs. This is essential to convey the information effectively.

In conclusion, using email us also beneficial for businesses to reach their customers.

Learn more about emails on:

https://brainly.com/question/24558412



Display “Welcome to (your name)’s fuel cost calculator.”

Ask the user to enter name of a trip destination.

Ask the user to enter the distance to that trip destination (in miles) and the fuel efficiency of their car (in mpg or miles per gallon).

Calculate the fuel required to get to destination and display it.

Use the formula: Fuel amount = Distance / Fuel efficiency, where Fuel is in gallons, Distance is in miles and Fuel efficiency is in miles per gallon.

Your program should follow Java convention for variable names (camelCase).

Ask the user to enter fuel price (in dollars per gallon) in their area.

Compute trip cost to get to destination and display it.

Use the formula: Trip fuel cost = Fuel amount x Fuel price, where trip fuel cost is in dollar amount, fuel is in gallons, and fuel price is in dollars per gallon.

You need to convert this mathematical formula to a Java statement. Be sure to use the right operator symbols! And, as before, follow Java convention for variables names (camelCase).

Compute and display total fuel cost for round trip, to reach and return from destination, using the formula: Round Trip Fuel Cost = 2 x Trip fuel cost

You need to convert this mathematical formula to a Java statement!

Compute and display number of round trips possible to Nashville, 50 miles away, with $40 worth of fuel. Use the fuel efficiency and fuel price entered by user earlier. Perform the computation in parts:

One can compute how much fuel can be bought with $40 from:

Fuel bought = Money available / Fuel cost = 40 / Fuel price, where fuel bought is in gallons and fuel price is in dollars per gallon.

One can compute fuel required for one round trip:

Fuel round trip = 2 * distance / fuel efficiency = 2 * 50 / fuel efficiency, where fuel round trip is in gallons and fuel efficiency is in miles per gallon

Compute number of round trips possible by dividing the amount of fuel that can be bought by the amount of fuel required for each round trip (Formula: round trips = fuel bought / fuel round trip).

Note that this value should be a whole number, and not a fraction.

Use integer division! Type cast the division quotient into int by writing (int) in front of the parenthesized division.

Display “Thank you for using (your name)’s fuel cost calculator.”

Answers

The code required is given as follows:

public class FuelCostCalculator {

public static void main(String[] args) {

System.out.println("Welcome to ChatGPT's fuel cost calculator.");

   // Get user input

   Scanner scanner = new Scanner(System.in);

   System.out.print("Enter the name of the trip destination: ");

   String destination = scanner.nextLine();

   System.out.print("Enter the distance to " + destination + " (in miles): ");

   double distance = scanner.nextDouble();

   System.out.print("Enter your car's fuel efficiency (in miles per gallon): ");

   double fuelEfficiency = scanner.nextDouble();

   System.out.print("Enter the fuel price in your area (in dollars per gallon): ");

   double fuelPrice = scanner.nextDouble();

   

   // Calculate fuel required and trip cost

   double fuelAmount = distance / fuelEfficiency;

   double tripFuelCost = fuelAmount * fuelPrice;

   double roundTripFuelCost = 2 * tripFuelCost;

   

   // Calculate number of round trips possible to Nashville

   double fuelBought = 40 / fuelPrice;

   double fuelRoundTrip = 2 * 50 / fuelEfficiency;

   int roundTrips = (int) (fuelBought / fuelRoundTrip);

   

   // Display results

   System.out.println("Fuel required to get to " + destination + ": " + fuelAmount + " gallons");

   System.out.println("Trip fuel cost to " + destination + ": $" + tripFuelCost);

   System.out.println("Round trip fuel cost to " + destination + ": $" + roundTripFuelCost);

   System.out.println("Number of round trips possible to Nashville: " + roundTrips);

   

   System.out.println("Thank you for using ChatGPT's fuel cost calculator.");

}

}

What is the rationale for the above response?  

The above Java code is a simple console application that calculates fuel costs for a trip based on user input. It takes in user inputs such as the destination name, distance, fuel efficiency, and fuel price.

The program then uses these inputs to calculate the fuel required to reach the destination, the trip fuel cost, round trip fuel cost, and the number of round trips possible to a nearby location. Finally, it outputs the results to the console. The code uses basic arithmetic operations and variable assignments to perform the calculations.

Learn more about Java at:

https://brainly.com/question/29897053

#SPJ1

The Microsoft Assessment and Planning (MAP) Toolkit is used to: verify that the domain controller has no software applications installed on the system. configure the software applications on a remote server. install other software applications on a domain controller. limit access to various resources.

Answers

Answer:

verify that the domain controller has no software applications installed on the system.

Explanation:

Microsoft Assessment and Planning (MAP) Toolkit is described as an automated medium for multi-product planning and assessment between different servers and desktops. It can be used by Data Administrators to obtain vital information about a client's server.

MAP Toolkit can also be used to verify the software information in a domain.


What is a program? - define and explain

Answers

Answer:

a series of coded software instructions to control the operation of a computer or other machine.

Explanation:

a set of instructions that process input, manipulate data, and output a result. For example, Microsoft Word is a word processing program that allows users to create and write documents.

Linda wants to change the color of the SmartArt that she has used in her spreadsheet. To do so, she clicks on the shape in the SmartArt graphic. She then clicks on the arrow next to Shape Fill under Drawing Tools, on the Format tab, in the Shape Styles group. Linda then selects an option from the menu that appears, and under the Colors Dialog box and Standard, she chooses the color she wants the SmartArt to be and clicks OK. What can the option that she selected from the menu under Shape Fill be

Answers

Answer: Theme colors

Explanation:

Based on the directions, Linda most probably went to the "Theme colors" option as shown in the attachment below. Theme colors enables one to change the color of their smart shape.

It is located in the "Format tab" which is under "Drawing tools" in the more recent Excel versions. Under the format tab it is located in the Shape Styles group as shown below.

Linda wants to change the color of the SmartArt that she has used in her spreadsheet. To do so, she clicks

What is the significance of backing up data on a computer?

Backing up data allows you to browse the Internet more quickly.
Your computer will never become infected with a virus.
A copy of your work can be saved in case the computer crashes.
The web cache will be cleared regularly.

Answers

Answer:

the answer is c

Explanation:

i got it right

Answer:

c

Explanation:

edg2020

The science of how an object reacts to its motion through air is called _______________. (12 letters)
HURRY!!!

ANSWER CORRECTLY AND YOULL GET BRAINLIEST

Answers

Explanation:

friction drag that is your answer 12 letters

Answer:

drag

Explanation:

im not the brightest but in the sentients it should have "drag" in it but u can listen to others answers to make sure

Suppose a computer runs at least two of following processes: A for movie watching, B for file downloading, C for word editing, D for compiling

Suppose a computer runs at least two of following processes: A for movie watching, B for file downloading,

Answers

Answer: This may not be the answer you are looking for but, In order for a computer to run multiple things at once you need to have a memory cell that is kept at a cool 13.8 Degrees celsius for it to work at max capacity.A internal fan to keep the internal parts at 15.3 degrees. The Arctic F12 and Arctic F12-120 is a good fan for that.

Explanation:

Which of the following is the MOST important reason for creating separate users / identities in a cloud environment?​

Answers

Answer:

Because you can associate with other

Answer:

Explanation:

To avoid cyberbully

I made a mistake. I'm building my first PC and I bought a Ryzen 7 3800x and planning on getting a 2070 super (if I can). What I did wrong was not buy the motherboard first. I don't know what to get. I also have 32 DDR4 memory. Options?

Answers

Answer: Motherboard

Explanation:

You cant start to get an idea of you build before you get your motherboard it tells you the type of RAM the number of fans and the type of GPU you can have and it needs to match your Ryzen 7,  if that's what your asking

Assume that an int variable age has been declared and already given a value. Assume further that the user has just been presented with the following menu:

S: hangar steak, red potatoes, asparagus
T: whole trout, long rice, brussel sprouts
B: cheddar cheeseburger, steak fries, cole slaw
(Yes, this menu really IS a menu!)
Write some code that reads the String (S or T or B) that the user types in into a String variable choice that has already been declared and prints out a recommended accompanying drink as follows: if the value of age is 21 or lower, the recommendation is "vegetable juice" for steak, "cranberry juice" for trout, and "soda" for the burger. Otherwise, the recommendations are "cabernet", "chardonnay", and "IPA" for steak, trout, and burger respectively. Regardless of the value of age, your code should print "invalid menu selection" if the character read into choice was not S or T or B.
ASSUME the availability of a variable, stdin, that references a Scanner object associated with standard input.
Instructor Notes:
Hint:

Use .equals for String comparison, e.g.
if (choice.equals("B")) instead of
if (choice == "B") // BAD

You might want to skip this one and do section 3.6 (which covers String comparison) beforehand.

Answers

Using the knowledge of computational language in C++ it is possible to write a code that assume that an int variable age has been declared and already given a value

Writting the code:

#include<stdio.h>

#include<conio.h>

int main()

{

//variables to rad choice and age

char choice;

int age;

//read age and choice

printf("\tEnter your age: ");

scanf("%d", &age);

//fflush the keyboard buffer before reading choice

fflush(stdin);

printf("\tEnter your choice: ");

scanf("%c", &choice);

//print the invalid message if the choice is otherthan the S,T,B

if(choice!='S' && choice !='T' && choice !='B')

{

printf("Invalid menu choice");

getch();

}

else if (age <22)

{

if (choice =='S')

{

printf("\tvegetable juice");

}

else if (choice =='T')

{

printf("\tcranberry juice");

}

else if (choice == 'B')

{

printf("\tsoda");

}

}

else

{

if (choice == 'S')

{

printf("\tcabernet");

}

else if (choice =='T')

{

printf("\tchardonnay");

}

else if (choice == 'B')

{

printf("\tIPA");

}

}

//pause the console output until user press any key on keyboard

getch();

}

See more about C++ at brainly.com/question/19705654

#SPJ1

Assume that an int variable age has been declared and already given a value. Assume further that the

Help, needed right now!!!

Help, needed right now!!!

Answers

Answer: its code

Explanation:

Other Questions
A nurse is giving an enema to a client who doubles over in pain with severe cramping. what intervention would be appropriate in this situation? promoter doesn't initiate chemical reaction, why? Question 2 of 25Read the quotation below from a high school science student.We found that a new type of plastic grocery bag requiredhalf as much energy to recycle as the old type of plasticgrocery bag.What is the student doing?A. Forming a hypothesisB. Making a predictionC. Making random discoveriesD. Making a conclusionSUBMIT the picture is attached The scientist who worked with uranium in the late 1800s was _____.1) Rutherford2) Curie3) Becquerel4) Bohr Please help me with this please help I'll give brainliest Which letter represents the environmental conditions necessary to form hornfels? b. BC Cd. D When planning a campaign, the first thing an advertiser thinks about should be:the tools available to build a display adthe advertisers daily budgetthe tools available to optimize the campaignthe advertisers goals Which artist lived in Germany in the 19th century and was one of the mostprominent German Romantics?Johannes VermeerWinsor McCayHonor DaumierCaspar David Friedrich What is slope intercept form of the points (3,2) and (0,4) All of the following should be done post-repair EXCEPT: She dreamed she would get a job that would bring her______ security How did the people overthrow the government in the cuban revolution Solve for y 6x - 2y = 12A. y= -3x + 6B. y= 3x - 6C. -3x + 6D. -3x - 6 suppose that uses one hour of labor to produce . then it trades that output for the other good at a price ratio of / Which of the following terms is used in connection with a municipal securities underwriting?A) Agreement among underwriters.B) Cooling-off period.C) In-registration.D) Effective date. What is the density of a sponge that has a mass of 100g and a volume of 10 mL? A water wave most resembles what ? O light waveO transverse waveO longitudinal wave According to the core knowledge approach, the domain-specific innate knowledge systems that infants are born with include which of the following? (Select all that apply)A. spaceB. languageC. object permanenceD. number sense