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
koban [17]
3 years ago
12

Write a c program to print all possible marking schemes of 15 questions each with 3.

Computers and Technology
1 answer:
andrey2020 [161]3 years ago
3 0

Answer:

#include <math.h>

#include <stdio.h>

#include <string.h>

#define BASE 3

#define NRQUESTIONS 15

void toABC(int n, char* buf, int base, int size) {

   memset(buf, 'A', size);

   buf[size] = 0;

   while (n && size) {

       buf[--size] = 'A' + (n % base);

       n /= base;

   }    

}

int main()

{

   char buf[16];

   for (int i = 0; i < pow(BASE, NRQUESTIONS); i++) {

       toABC(i, buf, BASE, NRQUESTIONS);

       printf("%s\n", buf);

   }

}

Explanation:

Assuming 3 is the number of possible answers to choose from for each question.

I tackled this by having an integer counter enumerate all values from 0 to 3^15, and then convert each integer to a base-3 representation, using ABC in stead of 012.

You might be interested in
Which of the following is 1000 of a second​
s344n2d4d5 [400]

Answer:

what I don't understand your question

6 0
4 years ago
Is Bluetooth considered a computing innovation?
Scilla [17]

Answer:

yes it is becauuse through bluetooth i can play cod mobile on my phone wiith my ps4 controller

Explanation:

A Bluetooth device works by using radio waves instead of wires or cables to connect with your cell phone, smartphone or computer. Bluetooth is a wireless short-range communications technology standard found in millions of products we use every day – including headsets, smartphones, laptops and portable speakers.

8 0
3 years ago
. Let F(X, Y, Z)=(X + Y + Z)(X + Y + Z)(X + Y + Z)(X + Y + Z). Use a 3-variable K-Map to find the minimized SOP form of this fun
Mrac [35]

Answer:

Kindly see explaination

Explanation:

The k-map van be defined as a map that provides a pictorial method of grouping together expressions with common factors and therefore eliminating unwanted variables. The Karnaugh map can also be described as a special arrangement of a truth table.

Please kindly check attachment for the 3-variable K-Map to find the minimized SOP form of the function in the question.

5 0
3 years ago
Would the book values of microsoft corporation's fixed assets normally approximate their fair market values?
Pepsi [2]
As in official Microsoft courseware? If so, then Yes, they will be the same price no matter where you purchase them.
7 0
3 years ago
Which is TRUE about web-based application software? It is stored completely on a web server instead of your hard drive. It is in
mote1985 [20]

It is TRUE that a web-based application is stored completely on a web server instead of your hard drive.

Explanation:

Web apps can be accessed over the internet over a HTTP network. These applications are hosted on a remote server and can be accessed easily via a browser. We can only go as far downloading them to our desktop but we cannot make adjustments to them after we have downloaded them. All changes are made on a web browser.

Its mechanism is so easy. It is based on client-server architecture. The client will interact with the application by inputting data. The server, on the other hand, will receive, store, and help in retrieving the result. Accessing applications such as Word online or Spreadsheets online is the best example of how web apps can be accessed over the internet.

Learn more about web-based applications:

brainly.com/question/9385062

brainly.com/question/12887254

#LearnWithBrainly

5 0
3 years ago
Other questions:
  • The buses that connect peripheral (typically input and output) devices to the motherboard are often called expansion buses. ____
    5·1 answer
  • Which of the following is FALSE?
    8·1 answer
  • The font size on presentation slides should not be smaller than _____ -point.
    10·1 answer
  • "When an interrupt or a system call transfers control to the operating system, a kernel stack area separate from the stack of th
    11·1 answer
  • I need help. I wanna help a friend by giving him my powerpoint but I dont want him to steal my work. Is their anyway to restrict
    8·1 answer
  • Select the correct navigational path to create the function syntax to use the IF function.
    13·2 answers
  • List six common raster image file types.
    9·1 answer
  • What is the relationship between agile teams and project requirements
    9·1 answer
  • If opening capital is ks 70000 and closing capital is ks 90000 what is the amount of profit or loss​
    14·1 answer
  • 8.10 Code Practice Question 3
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!