1 777
Подписчики
-224 часа
-147 дней
-3630 день
Архив постов
1 777
Program Plan: (Question)
• Prompt the user for the file name, try to open the input file, display an error message and exit the program if the file name is not found.
• Read the first number from the file using the if-condition which reads a number from the file, if any number exists in the file. If no numbers exist in the file, this condition stands failed.
• Repeat a while loop to read all numbers in the file and to find the largest and smallest number in the file.
• Display the largest and smallest numbers in the file.
• Display a message to the user if the file contains no numbers that the file is empty. ANSWER: »https://t.me/learntocodecpp/399«
1 777
[Forwarded from LEARN TO CODE]
GREAT OFFER
FOR (12 +1) STUDENTS ONLY‼️
Are you looking for freshman reading materials?
then look at this gift for 💯% free:
- modules
- exams[ mid, final] of different universities
- reference books
- and different materials in voice and videos
.... are some of them.
first semister courses:-
✅General physics
✅mathematics for natural
✅mathematics for social
✅ logic and critical thinking
✅communicative english
✅ Psychology
✅ Geography
second semister courses:
✅Emerging
✅general biology
✅applied mathematics
✅programming I
✅ civcs and moral education
✅ economics
✅ anthropology
✅communicative english II
....much more!
https://t.me/exbost
https://t.me/exbost
share for your friendhttps://t.me/exbost https://t.me/exbost join learn to code https://t.me/exbost TRUST! YOU GONNA LOVE IT!
1 777
C++ problem@:
An election is contested by five candidates. The candidates are numbered 1 to 5, and the voting is done by marking the candidate number on the ballot paper. Write a program to read the ballots and count the votes cast for each candidate using an array variable count. In case, a number read is outside the range 1 to 5, the ballot should be considered as a “spoiled ballot”, and the program should also count the number of spoiled ballots.
1 777
##" Write a definition for a structure type for records consisting of a person’s
wage rate, accrued vacation (which is some whole number of days), and
status (which is either hourly or salaried). Represent the status as one of
the two char values 'H' and 'S'. Call the type EmployeeRecord.
1 777
#include <iostream>
using namespace std;
int myFun(int);
int main(){
int m;
m = 10;
cout << myFun(m);
return 0;
}
int myFun(int y)
{
if( y == 0 || y == 1 || y == 2 )
{
return 1;
}
else{
return ( y + 1) + myFun( y - 3);
}
}1 777
Repost from Algo programmers
[In reply to Miki Moges]
#include <iostream>
using namespace std;
int myFun(int);
int main(){
int m;
m = 10;
cout << myFun(m);
return 0;
}
int myFun(int y)
{
if( y == 0 || y == 1 || y == 2 )
{
return 1;
}
else{
return ( y + 1) + myFun( y - 3);
}
}1 777
//program to print a string n times without using loop
#include <iostream>
#include <cstdlib>
using namespace std;
void iter(int);
int main() {
int n = 10;
iter(n);
return 0;
}
void iter(int y)
{
string s = "name";
if(y==0)
{
exit;
}
else
{
cout <<s<<endl;
iter(y-1);
}
}1 777
Repost from EvoNext
1. c++ books for beginners
1.1 recommended book for c++
2. python book for beginner
3. java for beginner
*ltc-✌🏿
Уже доступно! Исследование Telegram 2025 — ключевые инсайты года 
