AP CSA help needed. Java please.

A child’s parents promised to give the child $10 on her twelfth birthday and double the gift on every subsequent birthday until the gift exceeded $1000. Write a Java program to determine how old the girl will be when the last amount is given, and the total amount she received including the last gift.

Thank you!

Answers

Answer 1
#include using namespace std;int main(){int year = 12,value = 10,total = 0;do{year++;value *= 2;total += value;}while(value*2 < 1000);cout << "Age: " << year << endl;cout << "Last gift: " << value << endl;cout << "Total: " << total << endl;cin.get();return 0;

Related Questions

_ is an environment where processors are embedded in objects that communicate with one another via the Internet or wireless networks.

Answers

The right answer will be "The Internet of Things (IoT)".

Connecting computers systems, electromechanical machinery as well as digital ones with distinctive identifications as well as the possibility of transference of information through the internet without interactivity as well as people.Such an IoT system would be a collection of web-enabling connected devices which employ embedded subsystems, particularly CPUs, captors, and networking gear, to gather as well as transmit information from their surroundings and execute upon that.

Learn more about IoT here:

https://brainly.com/question/19995128

True or False, In adversarial searching, agents using the MiniMax algorithm always select the state that has the highest guaranteed net value.

Answers

Answer:

True

Explanation:

The MiniMax algorithm computes the MiniMax decision from the current state. The MiniMax algorithm always is especially known for its usefulness in calculating the best move in two-player games where all the information is available

What software programming language was first
used to power the Internet (.com, .net)?

Answers

Answer:

the answer should be .com, because the very first domain was Symbolics.com

Explanation:

hope this helps, have a great day.

Comparison
Cloud computing and parallel processors

Answers

Anwser is 2/3

Explanation:

What are the things you needed to create a bootable USB Windows Installera​

Answers

Answer:

RUFUS

Explanation:

Try installing rufus software and burn the ISO file on your USB by choosing appropriate partition scheme MBR or GBT.  Usually MBR works for all computers but GPT is for new systems with latest technology.

Software engineer is responsible for defining the level of maturity the software program must perfom at in order to declare software test

a. True
b. False

Answers

Answer:

true

Explanation:

Hope, it helps to you

What method is known as a class's constructor, because it is run automatically when a user instantiates the class

Answers

      A constructor is a special method of a class or structure in object-oriented programming that initializes a newly created object of that type. ... Instead of performing a task by executing code, the constructor initializes the object, and it cannot be static, final, abstract, and synchronized.

Write short note on:
i) keyboard
ii) Web camera

Answers

Um I’m not sure about that
_ Stay positive because failure is sort of success
_ dream big work hard
_no caption the ____ said it all

Run the program and observe the output to be: 55 4 250 19. Modify the numsInsert function to insert each item in sorted order. The new program should output: 4 19 55 250.
#include
#include
using namespace std;
void numsInsert(vector& numsList, int newNum) {
unsigned int i;
for (i = 0; i < numsList.size(); ++i) {
if (newNum < numsList.at(i)) {
// FIXME: insert newNum at element i
break; // Exits the for loop
}
}
// FIXME: change so executes if higher number NOT found
// Change "true" to "i == ??" (determine what ?? should be)
if (true) { // No higher number was found, so append to end
numsList.push_back(newNum);
}
}
void numsPrint(const vector& numsList) {
unsigned int i;
for (i = 0; i < numsList.size(); ++i) {
cout << " " << numsList.at(i) << endl;
}
}

int main() {
vector numsList;
numsInsert(numsList, 55);
numsInsert(numsList, 4);
numsInsert(numsList, 250);
numsInsert(numsList, 19);
numsPrint (numsList);

return 0;
}

Answers

Answer:

#include <iostream>

#include <vector>

using namespace std;

void numsInsert(vector<int>& numsList, int newNum) {

   unsigned int i;

   for (i = 0; i < numsList.size(); ++i) {

       if (newNum < numsList.at(i)) {

           // FIXME: insert newNum at element i

           numsList.insert(numsList.begin() + i, newNum);

           break; // Exits the for loop

       }

   }

   // FIXME: change so executes if higher number NOT found

   // Change "true" to "i == ??" (determine what ?? should be)

   if (i == numsList.size()) { // No higher number was found, so append to end

       numsList.push_back(newNum);

   }

}

void numsPrint(const vector<int>& numsList) {

   unsigned int i;

   for (i = 0; i < numsList.size(); ++i) {

       cout << " " << numsList.at(i) << endl;

   }

}

int main() {

   vector<int> numsList;

   numsInsert(numsList, 55);

   numsInsert(numsList, 4);

   numsInsert(numsList, 250);

   numsInsert(numsList, 19);

   numsPrint(numsList);

   return 0;

}

Explanation:

Write a short note on
i) Printer
i)Speaker
( no problem if u don't know but don't just spam :(.....)​

Answers

A printer is a device that accepts text and graphic output from a computer and transfers the information to paper, usually to standard-size, 8.5" by 11" sheets of paper. Printers vary in size, speed, sophistication and cost.

50 ) What is the cell address of 4th row and 4th column? A) 4D B) E4 оооо C) 04 D) B4​

Answers

Answer:

The cell address of 4th row and 4th column is

4D/D4

List the resulting array after each call of the merge method. Indicate the number of character-to-character comparisons made for each call to merge (line 22 of the merge method at the end of the assignment). Sort the following array of characters into alphabetical order: C Q S A X B T.
01 public static void mergesort (char[] a, int i, int r){
02
03 if (1 >= r) {
04 return;
05 }
06 int middle = (1+r)/2;
07 mergesort(a, l, middle);
08 mergesort(a, middle+1, r);
09 merge(a, l, middle, r);
10 }
11
12 public static void merge (char[] a, int i, int m, int r){
13
14 //copy lower half of the array into b
15 char [] b = new char[m-1+1];
16 for (int i = 0; i <= m-1; i++ ) {
17 b[i] = a (1+i);
18 }
19
20 int i = 0, j m+1, k = 1;
21 while (i <= m-1 && j <= r ) {
22 if (a[j] < b[i]) {
23 a[j];
24 k += 1;
25 j += 1;
26 } else {
27 a[k] b[i];
28 k += 1;
29 i += 1;
30 }
31 }
32 while (i <= m-1) {
33 a[k] b[i];
34 k += 1;
35 i += 1;
36 }
37 while ( j <= r ) {
38 a[k] a[j];
39 k += 1;
40 j += 1;
41 }
42 }

Answers

Answer:

40j

Explanation:

the no. divided by one is that no.

2. Which of these Is NOT part of the definition of Electricity?

A. Ability to do work

B. Closed Circuit

C. Power Supply

D. Movement of electrons

Answers

Answer:

B. closed circuit

Explanation:

please follow me

hope it helps you

What is the TSA motto

Answers

Answer:

the answer is "Learning to lead in a technical word".

Explanation:

Why LinkedIn doesn’t like automation tools?

Answers

Answer:

LinkedIn has clearly mentioned that using LinkedIn automation is against their TOS. They block an account if they suspect any automation activity.

It’s because they want to keep the platform transparent and free of spam. Many users have already called it the worsts social media platform because of spamming.

On the other hand, large companies and brands are endorsing these tools. Many users have got their accounts blocked while many are using LinkedIn automation to grow their business opportunities.

45. _____ is used to create an object. a. Class b. constructor c. User-defined functions d. In-built functions

Answers

Answer: B

Explanation:       A constructor is a special method of a class or structure in object-oriented programming that initializes a newly created object of that type. ... Instead of performing a task by executing code, the constructor initializes the object, and it cannot be static, final, abstract, and synchronized.

In computer programming, a resource which is used to create an object is called: B. constructor.

What is a constructor?

A constructor can be defined as a special method that is designed and developed to enable programmers create and initialize objects in Java programming.

This ultimately implies that, a constructor is a resource which can used to create an object in computer programming.

Read more on constructor here: https://brainly.com/question/26914047

Topic:

Recursion. Use recursion to display the pattern given above. No loops allowed.

See the picture for the pattern​

Answers

Answer:

const SIZE=8

function print(n, s) {

 if (n > 0) {

   process.stdout.write(s);

   print(n-1, s);

 }

}

function main(n=1) {

 if (n<=SIZE) {

   print(SIZE-n, "  ");

   print(n, "* ");

   process.stdout.write("\n");

   main(n+1);

 }

}

main();

Explanation:

Here is a solution in javascript. Note that it uses recursion multiple times to avoid loops.

Select the best answer for the question
17. Which of the following is a design theory that recognizes that many problems are similar to problems that have already been solved?
O A. C-K Theory
O BASE
OC. TRIZ
OD. General Design Theory

Answers

your answer is C my guy

Most shop accidents are caused by?

Answers

Answer:Most shop accidents are caused by÷

liftingpoor light trips and fallsstressdangerous materialsact of shop violencedehydrationextreme tiredness

_____________ is driving a complete reanalysis of what information is collected and how it is presented, navigated, and used internally.

Answers

“Internal Self-Service” is driving a complete reanalysis of what information is collected and how it is presented, navigated, and used internally.

How was Television used when originally invented? How is television used today?

Answers

Explanation:

.......................

Answer:

Than:

Baird's early mechanical television had 30 holes and rotated 12.5 times per second. There was a lens in front of the disk to focus light onto the subject. When light hit the subject, that light would be reflected into a photoelectric cell, which then converted this light energy to electrical impulses.

Now :

Television is an inescapable part of modern culture. We depend on TV for entertainment, news, education, culture, weather, sports—and even music, since the advent of music videos. ... News, current events and historical programming can help make young people more aware of other cultures and people.


8. Which of the following is
most likely to contain a
computer virus?


1.CD-ROM
2.RAM
3.Floppy Disk
4.ROM

Answers

Answer:

4. A floppy Disk

Explanation:

This is because it can be transfered from one device to another. So, if one device is infected with a virus, it'll be affected

[tex].[/tex]

in media literacy,
how does media influence public? and the press

⚫ analyze or compare the influences of social media
⚫ analyze the ethics or journalist, news outlets, etc​

Answers

what is mean by computers

Suppose you are asked to design a rotating disk where the number of bits per track is constant. You know that the number of bits per track is determined by the circumference of the innermost track, which you can assume is also the circumference of the hole. This, if you make the hole in the center of the disk larger, the number of bits per track increases, but the total number of tracks decreases. If you let r denote the radius of the platter, and x · r the radius of the hole, what value of x maximizes the capacity of the disk?

Answers

Answer:

suppose i was i would tell them i dont know and walk away

Explanation:

in thoery this is correct

you said suppose so i answerd

there is no use in reporting or getting this taken down

nether is it right

im not stealing points

Because in thoery its an answer

THIS IS MY PROTEST

what are the functions of an input device​

Answers

to provide data and control signals to an information processing system such as a computer or other information appliance.

Answer:

This article does not cite any sources.

In computing, an input device is a piece of equipment used to provide data and control signals to an information processing system such as a computer or information appliance. Examples of input devices include keyboards, mouse, scanners, cameras, joysticks, and microphones.

Egovernment involves the use of strategies and technologies to transform government by improving the delivery of services and enhancing the quality of interaction between the citizen-consumer within all branches of government.

a. True
b. False

Answers

I guess the answer True

When it comes to memory, why is it important to have enough storage space on a hard drive when using many RAM intensive programs?

Answers

Answer:

Memory and storage are important concepts to master in Information Technology. ... This type of memory is volatile which means that the actual data disappears when the computer loses power. Because memory needs to be much faster than storage, it is rather more expensive than storage per GB.

Explanation:

software.
Q4..
Microsoft word is an example of
(A) System
(1) word processor
(°) Presentation software
(P) Spreadsheet

Answers

Ms Word is an example of a word processor.

One example of a Word Processor is Microsoft Word, but other word processing applications are also widely used.

Saving means

A) Copying data from memory to disk

B) Copying data from disk to
memory

C) Preserving a program

D) Storing data in a program

Answers

Answer:

To copy data from a temporary area

When it comes to different ways of storing data on the device in a cross-platform manner, what is convenient about both native iOS and Android platforms?

a. they both provide secure file i/o
b. they both provide key-value, file i/o and sqlite data storage
c. the both provide the exact same system calls, since both platforms rely on ARM processors
d. they both provide the exact same APIs, regardless of language used

Answers

A - both provide secure file i/o
Other Questions
I need help with this question Which of the following is NOT true of the Pharaohs?A. They had absolute control of their subjectsB. They all came from the same familyC. They were believed to be godsD. They directed the army in case of conflict Explica que nos expresa el autor en la siguiente estrofa del poema. Valor 3 puntosPero mudo y absorto y de rodillascomo se adora a Dios ante su altar,como yo te he querido; desengate,as no te querrn! A student conducts an experiment to determine the speed of a toy car at the bottom of a ramp after it is released from different heights on the ramp. The student makes one measurement for each height.What is one way that the student could improve the experiment?use a different ramp for each heightperform multiple trials for each release height instead of just oneuse a different timer for heightperform one trial for each measurement but use a different car for each height The measures of the angles of a triangle are shown in the figure below. Solve for x. PLEASEEEEE HELLLLPPP A 7-meter roll of yellow fabric costs $24.64. What is the unit price? Metallic bonds are responsible for many properties of metals, such as conductivity. Why is this possible? (1 point)Metals have low electronegativity, so they are conductive because they pass charges easily.An attraction between a positive charge and a negative charge is created.O The bonds can shift because valence electrons are held loosely and move freely.OTwo metals bonded together are going to be more conductive than a metal bonded with a nonmetal. write down the types of polynomial according to number of terms of the polynomial ? Is this image tag graffiti throw graffiti or peice graffiti? Someone help me please lol Pls answer this quastionA ____________ is the smallest functional and structural unit of all living organisms.An ___________ is any living thing that carries out its own life processes.____________ was the first to describe cells. He looked at the bark of a cork tree under a microscope.Why are most cells small?Cells are small because their size is __________ by their outer barrier.As the cell grows, they will require _______ nutrients and produce ______ waste products. If cells get too large, they cannot take in ________ nutrients or get rid of enough wastes.The __________to _________ ratio of a cell is the ratio of the outer surface to the cells volume. The ________ the cell, the ________ this ratio.What is cell theory?The cell theory lists three basic characteristics of all cells and organisms.________________________________________________________________________________________________________________________________________________________________________Notable scientists:Robert Hooke was the first to describe cells. He looked at the bark of a cork tree under a microscope._____________________ was the first to describe living cells._____________________ concluded that all plants are made of cells_____________________ determined that all animal tissues are made of cells_____________________ proposed that cells could form only from the division of other cellsWhich theory does this fall under? ____________________ organismsMulticellular organismsMade up of one cellMade up of _____ than one cellThe single cell must carry out all life functionsThese organism have _____________ cell functionsDescribe the differences between the two types of cells. ProkaryotesEukaryotes_______________________________________________________________DNA is found in the _________________________________________________________________________________DNA is found in the _____________________ define about the different types of silk found around the world Please help ASAP!!!! Investigate in the newspaper about Nepali workers taken advantages of in foreign countries and find out the causes for it. make the sentence plural, The teacher gave the child a word of advice Find the circumference of a circle that has a diameter of 70 cm. What long-term effect did the Civil War have on American industry? create 5 problems using all operations that has a solution of 5 How are Jean Bilbalo Joints and Reginald Jean-Marys opinions connected to each other?