Questions: 1 978

Answers by our Experts: 1 850

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

We've been dealing with integers too much, it's time for float to shine!





Instructions:



Input five float numbers.


Print out the float numbers in one line, separated by spaces, and make sure you only print up to 1 decimal place.


Add the first four float numbers and check if their sum is greater than the fifth float number. Print out "Yes" if they are.


Input



1. First float number



2. Second float number



3. Third float number



4. Fourth float number



5. Fifth float number



Output



The first five lines will contain message prompts to input the five float numbers.


The next line contains the inputted float numbers.


The last line contains "Yes" if the condition is true.



Enter·the·first·number:·1.1


Enter·the·second·number:·1.2


Enter·the·third·number:·1.3


Enter·the·fourth·number:·1.4


Enter·the·fifth·number:·1.1


1.1·1.2·1.3·1.4·1.1


Yes


Wedding game

Input


1. First number

2. Second number

3. Third number

Output

The first three lines will contain message prompts to input the three numbers.

The last line contains the product of the three numbers with 1 decimal place.

Enter·the·first·number:·1.6
Enter·the·second·number:·-2
Enter·the·third·number:·-1
Product·=·3.2









In a local government meeting, community leaders are required to identify one SDG, out of the 17 goals, that is most important to local PNG communities. Each community leader is required to select their goal of choice only once. The vote is recorded as a number from 1 to 17. The number of community leaders voting is unknown beforehand, so the votes are terminated by a value of zero (0). Votes not within and not inclusive of the numbers 1 to 17 are invalid (spoilt) votes. A file, sdGoals.txt contains the list of goals. The first goal is listed as SDG 1, the second as SDG 2 and so forth. The goals are followed by the number of votes for the goal.

Write a program to read the data and evaluate the results of the selection. Print all the output to a file called sdgSelection.txt

The program output should specify the total number of votes and the number of invalid votes. This is followed by the votes received for each SDG and the winning (top) selection SDG.



In a local government meeting, community leaders are required to identify one SDG, out of the 17 goals, that is most important to local PNG communities. Each community leader is required to select their goal of choice only once. The vote is recorded as a number from 1 to 17. The number of community leaders voting is unknown beforehand, so the votes are terminated by a value of zero (0). Votes not within and not inclusive of the numbers 1 to 17 are invalid (spoilt) votes. A file, sdGoals.txt contains the list of goals. The first goal is listed as SDG 1, the second as SDG 2 and so forth. The goals are followed by the number of votes for the goal.

Write a program to read the data and evaluate the results of the selection. Print all the output to a file called sdgSelection.txt

The program output should specify the total number of votes and the number of invalid votes. This is followed by the votes received for each SDG and the winning (top) selection SDG.


a C program that declare an array of five characters using a WHILE loop and sort the elements in row one in alphabetical order using a nested FOR loop and IF statement and print the sorted characters using a WHILE loop

how to write a c program for recommendation system for online purchase


count number of processes created by 4 fork system call


 Write a program that receives one command line argument: the name  of a text file. Your program will work as follows:  

 Start out by creating a child process.  

 The child process calls exec to run cat command with command line argument that  the parent received. 




1.   Write a Linux shell script that allow the user to enter a choice based on the following options: 

 

 

A – Delete a file in current directory

B – Create a directory in current directory. 

C – Change a file access mode to 755.

D – Rename a file to another name

E – Copy a file to another directory. 

 

If the user entered any other choices than the above, prompt the user to pick only A – E. 

 

Provide the shell script along with the sample output screenshot. Refer to the attached rubrics as a guide. Print a copy of the rubrics to be attached with this lab report.  


LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS