C Programming
Consider you will be given five quiz marks of a class of 10 students. Write a program to find out how many students have got more than 40 in at least two quizzes.
INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS
1. Write a Function that print as follows for input: 6:
***********
***** *****
**** ****
*** ***
** **
* *
|
** **
*** ***
**** ****
***** *****
***********
- B.: The output will be different for another number as input.
- Write a program to compute the sum of the following series up to nth term (take n as use input):
Total = (0 * 1)0 - (1 * 2)2 + (3 * 5)3 - (8 * 13)4 + ……
- B.: You are not allowed to use any library function.
- Consider you will be given five quiz marks of a class of 10 students.
- Write a program to find out how many students have got more than 40 in at least two quizzes.
- Print the sum of best four quiz marks of each of the student
- Finally, print the highest of such total marks as obtained in (b)
- Write a code in C that finds the vowels in a word and regenerate the word sending the vowels at the end of the word successively.
Input: iLoveC
Outout: LvCioe
- Write a code in C to split a line with a character and store the fractioned portions.
Sample input:
Input the line:
Hello, C, a structured programming language, is awesome, however students are not capable of enjoying it
Input the splitting character:
,
Output:
Hello
C
a structured programming languages
is awesome
however students are not capable of enjoying it
#. We will play with the bits of an integer. You will be given an integer, write a code in C which will perform the following tasks:
- If the integer is of 1 digit, print the (sum of the last 2 digits of your id)th bit of its binary representation.
- If the integer is of 2digits flip the (sum of the last 2 digits of your id)th bit of its binary representation.
- If the integer is of more than 2 digits reset the (sum of the last 2 digits of your id)th bits of its binary representation.
- If the integer is of more than 2 digits set the (sum of the last 2 digits of your id)th bits of its binary representation.
- B.: Print each output both in decimal & binary representation.
Related Questions
. The fundamental operations of create, read, update, and delete (CRUD) in either Python or Java
CS 340 Milestone One Guidelines and Rubric
Overview: For this assignment, you will implement the fundamental operations of create, read, update,
. Develop a program to emulate a purchase transaction at a retail store. This program will have two classes, a LineItem class and a Transaction class
Retail Transaction Programming Project
Project Requirements:
Develop a program to emulate a purchase transaction at a retail store. This
. The following program contains five errors. Identify the errors and fix them
7COM1028
Secure Systems Programming
Referral Coursework: Secure
. Accepts the following from a user: Item Name Item Quantity Item Price Allows the user to create a file to store the sales receipt contents
Create a GUI program that:Accepts the following from a user:Item NameItem QuantityItem PriceAllows the user to create a file to store the sales receip
. The final project will encompass developing a web service using a software stack and implementing an industry-standard interface. Regardless of whether you choose to pursue application development goals as a pure developer or as a software engineer
CS 340 Final Project Guidelines and Rubric
Overview The final project will encompass developing a web service using a software stack and impleme