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
Mariulka [41]
3 years ago
14

Assume the availability of a function named oneMore. This function receives an integer and returns one more than its parameter.

So, pass oneMore( 12) and it will return 13. DO NOT DEFINE this function-- just assume it is available. YOUR TASK: write an expression whose value is 5 but in your expression you can only use the integer literal 0. You can not use anything with the digits 1-9 and you cannot use any arithmetic operators like + - * /. But you can use 0 and you can make calls to the function oneMore.
Computers and Technology
1 answer:
jek_recluse [69]3 years ago
7 0

Answer:

oneMore(oneMore(oneMore(oneMore(oneMore(0)))))

Explanation:

  • As a function has been explained which when given an integer results as a next integer. oneMore(given-integer)= next integer
  • As we are restricted to use 0 only and can't use operators like + - * /.
  • We have to obtain a value 5
  • So doing step-by-step:

             (oneMore(0))=1

             (oneMore(oneMore(0)))=2

             (oneMore(oneMore(oneMore(0))))=3

             (oneMore(oneMore(oneMore(oneMore(0)))))=4

             oneMore(oneMore(oneMore(oneMore(oneMore(0)))))=5

You might be interested in
Online transaction processing (OLTP) and online analytical processing (OLAP) are similar MIS strategies used to help with busine
Stels [109]

OLTP ( On-line Transaction Processing )

As the name suggests, this system is designed for handling transactions on web applications.

Examples include Banking system.

OLAP ( On-line Analytical Processing )

As per the name, this system is developed for analyzing and reporting functions for web applications.

These systems form a part of data warehousing.

Examples include data mining for Banking system.

OLTP databases undergo ETL operations to form a part of OLAP system. Data from several OLTP database are extracted as per the requirements, transformed ( formatted and cleaned ) to fit the OLAP requirements, and loaded into the OLAP system.

Similarities

• Both OLTP and OLAP are designed for online processing and support web based applications.

• In both systems, processing is done on large scale owing to their online presence.

Differences

• OLTP is designed to handle daily operation. OLAP is designed for decision support.

• OLTP supports data update and data insert operations. OLAP supports data analysis.

• OLTP supports insert, update and delete operations only. OLAP supports data extraction to support decision making process.

• Transactions form the source of data. Several OLTPs form the source of data.

• In OLTP, transactions are shorter in nature. In OLAP, transactions are longer.

• In OLTP, processing time is shorter. In OLAP, processing time is longer.

• Data modification queries are simpler. Data analysis queries are complex in nature.

• OLTP are normalized up to third normal form. OLAP are not normalized.

• Data in OLTP system are frequently modified. Data in OLAP systems are not frequently modified.

• OLTP should maintain data integrity. Data integrity in OLAP is unaffected.

• OLTP stores only current data. OLAP stores historical data.

• OLAP systems must have periodic back up. OLTP back up is achieved by reloading the databases.

The major differences are discussed above to clarify the functioning of both the systems.

8 0
3 years ago
What properties make it suitable to be used for supportive frames
Rasek [7]

Answer:

Id, Title, onload(), onunload(), rows, cols, style

Explanation:

The properties that make it suitable to be used for supportive frames are as being mentioned above. And you can add to this style as well. The style property can help you add the CSS to your frame. And thus, you are certainly going to find that frames can be a very powerful HTML control, and all these properties make it even more powerful. However, we don't use the frame anymore.

5 0
4 years ago
Cloud Kicks is undergoing a GDPR-focused implementation to ensure access to personal information data is limited to only users w
bija089 [108]

Answer:

Option A.

Explanation:

It is experiencing a GDPR-focused execution to assure only users who require full rights to a corporation's account have access to sensitive information and data. It has a design of their personal account.

So, the Consultant allows particular Account privileges to the sustainable and Sales Procedure teams through which they create Renewals and Sales Operation Account team membership roles and has sales team members allocated to the suitable customers.

5 0
3 years ago
You want to display the process of raising a scholarship request and its approval on a slide. Which element in the presentation
mario62 [17]

The answer is actually a flowchart, since flowcharts are used to show processes. The person who said it's a table is wrong, I just took this test on Plato and got a 5/5.

4 0
4 years ago
Game Changer Technologies has four software teams. Each of them is developing four different examples of its new game app. Which
bagirrra123 [75]

The software development methodology used by the Game Changer teams is called; <u><em>Prototyping</em></u>

<u><em /></u>

We are given that;

- Game changer technologies has four software teams

- Each of the teams develops 4 different examples of the new game app.

Now, since each of them is developing four four different examples of its new game app, the method being used is called prototyping. This is because prototyping is referred to as the early approximation of the final system of a product whereby such a product is built, tested and rebuilt if required until an acceptable prototype is achieved.

When the acceptable prototype is gotten, then it will be used to develop its final game app.

Read more about prototype at; brainly.com/question/25824140

8 0
2 years ago
Other questions:
  • Which events occurred during the Space Race?
    5·1 answer
  • Which term refers to the technical structure of the software, how users interact with the software, and how the software is phys
    10·1 answer
  • In a shooter game, players can play “capture the flag,” which is a multiplayer game in which players of a team need to collect f
    15·2 answers
  • Which event occurs when the user clicks on an html element?
    9·1 answer
  • What is the result when you run the following program?<br> print("2 + 7')<br> print(3 + 1)
    6·2 answers
  • 2min speech on can teachers be replace by technology​
    5·1 answer
  • What is an overview of your opinion of Digital Etiquette? Do not look it up bc I will know!
    7·1 answer
  • Just took a test and I got 5 wrong and I wanted to know the correct answers
    10·1 answer
  • El planeamiento estratégico de una empresa es​
    9·1 answer
  • I NEED THIS DONE NOW ASAP, PLS HELP ME
    13·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!