logo Hurry, Grab up to 30% discount on the entire course
Order Now logo

Ask This Question To Be Solved By Our ExpertsGet A+ Grade Solution Guaranteed

expert
Garard BerwickkCriminology
(5/5)

912 Answers

Hire Me
expert
Cole GrayyEconomics
(5/5)

637 Answers

Hire Me
expert
Bidit SadhukhanStatistics
(/5)

570 Answers

Hire Me
expert
Wyatt RyessEconomics
(5/5)

698 Answers

Hire Me
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:

 

     ***********

     *****  *****

     ****      ****

     ***          ***

     **              **

     *                  *

 **              **

 ***          ***

 ****      ****

 *****  *****

 ***********

  1. B.: The output will be different for another number as input.

 

  1. 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 +   ……

  1. B.: You are not allowed to use any library function.

 

  1. Consider you will be given five quiz marks of a class of 10 students.
  2. Write a program to find out how many students have got more than 40 in at least two quizzes.
  3. Print the sum of best four quiz marks of each of the student
  4. Finally, print the highest of such total marks as obtained in (b) 
  1. 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

 

  1. 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:

  1. If the integer is of 1 digit, print the (sum of the last 2 digits of your id)th bit of its binary representation.
  2. 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.
  1. 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.
  2. 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