Question

Please do 9.11 to 9.17 in C-language. Thanks. It can all be done in the same...

Please do 9.11 to 9.17 in C-language. Thanks.

It can all be done in the same project file

0 0
Add a comment Improve this question Transcribed image text
Answer #1
main.d #include <stdio.h> 3 int main(void) f 4printf(1. -1-In): 6 printf(2-\-In printf(3-1?-In 6 7 printf(4-1-In); 8 printf(5-la-\n); 9 printf(6-b-In 10 printf(7-In-In); 11 printf(8-Ir-In); 12 printf(9-It-In); 13 return

#include <stdio.h>

int main(void) {

printf("1. -\'-\n");

printf("2-\"-\n");

printf("3-\?-\n");

printf("4-\\-\n");

printf("5-\a-\n");

printf("6-\b-\n");

printf("7-\n-\n");

printf("8-\r-\n");

printf("9-\t-\n");

return 0;

}

#include<stdio.h>

int main()

{

char result[1];

int i;

double one = 9876.12345;

for(i=1; i<=9; i++)

{

char format[6] = "%.";

sprintf(result, "%d", i);

strcat(format, result);

strcat(format, "f\n");

printf(format,one);

}

}

/*

OUTPUT

9876.1

9876.12

9876.123

9876.1234

9876.12345

9876.123450

9876.1234500

9876.12345000

9876.123450000

*/

Add a comment
Know the answer?
Add Answer to:
Please do 9.11 to 9.17 in C-language. Thanks. It can all be done in the same...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Need some help on this, thanks. Must be done in C language. Homework 2: Sorting In...

    Need some help on this, thanks. Must be done in C language. Homework 2: Sorting In the second homework you will implement two sorting algorithms of your choice. One sorting algorithm has O(n) complexity while the other has O(n.logn) complexity. The input is student data stored in a file. Student data has the format: Name ID GPA The key for sorting of the O(n) algorithm is the ID while the key for sorting of the O(n.logn) is GPA. Your code...

  • I don't understand this at all. Can someone please explain how/why/when these computations are done? Thanks

    I don't understand this at all. Can someone please explain how/why/when these computations are done? Thanks

  • *This is meant to be done in C++ language only* *Please consider the fact that I'm...

    *This is meant to be done in C++ language only* *Please consider the fact that I'm a beginner and want to be able to follow what you're doing so please write the code as simple and organized as possible. Thanks in advance. Create a program that uses an array(one dimensional) to store the results from a poll of 30 people. Each person was asked to estimate the amount of time, in minutes, that he or she spends on Facebook each...

  • Please help with this exercises in c++ language Thanks Lab Activity #5-More Functions/FILES Exercise# Write a...

    Please help with this exercises in c++ language Thanks Lab Activity #5-More Functions/FILES Exercise# Write a program that will generate 1000 random numbers (all of which are between 10 and 20) and then write all of the even numbers (from those 1000 numbers) to a new file called "myEvenRandoms.txt Exercise #2 (DO ONLY IF WE COVERED ARRAYS OF CHARACT Write a program that will ask the user to enter a sentence. Then create a separate function that will count the...

  • Please guys do NOT solve it if you cannot provide the same way of solution as...

    Please guys do NOT solve it if you cannot provide the same way of solution as the example I give I need it like the picture has a yellow box with all the calculations, so please solve it by Excel and take pictures of the modified excel file, the graph and all the calculations thanks

  • Please do the following project in C++ programming language. You can use a bag to create...

    Please do the following project in C++ programming language. You can use a bag to create a spell checker. The bag serves as a dictionary and contains a collection of correctly of correctly spelled workds. To see whether a word is spelled correctly, you see whether it is contained in the dictionary. Use this scheme to create a spell checker for the words in an external file. To simplify your task, restrict your dictionary to a manageable size. The dictionary...

  • Please complete these C programming questions. Thanks you kindly True/False 1. C is a programming language...

    Please complete these C programming questions. Thanks you kindly True/False 1. C is a programming language 2. C is used only in academic settings 3. C syntax is based on Python 4. C in the acronym ASCII refers to the C language 5, C is a valid name for a variable name 6. C is the character result of 'B' +1

  • Please use java language in an easy way and comment as much as you can! Thanks...

    Please use java language in an easy way and comment as much as you can! Thanks (Write a code question) Write a generic method called "findMin" that takes an array of Comparable objects as a parameter. (Use proper syntax, so that no type checking warnings are generated by the compiler.) The method should search the array and return the index of the smallest value.

  • PLEASE WRITE CLEARLY AND SHOW ALL STEPS SO THAT I CAN UNDERSTAND IT. THANKS Convert the...

    PLEASE WRITE CLEARLY AND SHOW ALL STEPS SO THAT I CAN UNDERSTAND IT. THANKS Convert the following MIPS assembly code into machine language. Write the machine code in hexadecimal. add $t0, $s0, $s1 lw $t0, -10($t1) addi $s1, $0, -20

  • Please answer the following question in c++ language IS INTENDED TO BE DONE BY HAND WITH...

    Please answer the following question in c++ language IS INTENDED TO BE DONE BY HAND WITH POSSIBLE USE OF A CALCULATOR.   YOU NEED TO SHOW SOME WORK BECAUSE THE OBECTIVE IS KNOWING WHAT A PROGRAM IS DOING, NOT RUNNING A PROGRAM. SHOWING HOW YOU GOT ANSWERS IS REQUIRED. The divide and conquer Fast Fourier Transform (FFT) has run time of order    a) O(logn)                       b) O(n logn)   c) O( )   d) O(n)

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT